2 lines
7.9 KiB
JavaScript
2 lines
7.9 KiB
JavaScript
|
import{C as Y,D as Z,N as ee,O as te,w as le,F as ae,J as oe,P as ue,Q as ne,R as se}from"./element-plus.ff90c99c.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{f as pe,b as re,d as de}from"./index.9acc1fa4.js";import{u as me}from"./vue-router.6d4cf914.js";import{u as ce}from"./usePaging.bd7a7dec.js";import{u as _e}from"./useDictOptions.85871a3e.js";import{g as fe,a as be}from"./task_template.e88710d8.js";import{d as N,s as ye,r as B,$ as q,aq as Fe,o as n,c as V,W as a,Q as o,u as e,F as U,a9 as P,P as i,U as y,R as v,a as D,V as ve,j as we,T as Be,n as L}from"./@vue.f8dfc830.js";import"./lodash.ffb5376d.js";import{_ as ke}from"./edit.vue_vue_type_style_index_0_lang.ab33516f.js";import{_ as Ee}from"./edit_admin.vue_vue_type_style_index_0_lang.e5394cf3.js";import{_ as Ce}from"./edit_village.vue_vue_type_style_index_0_lang.b86d2a23.js";import{d as Ve}from"./dict.d8314400.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./axios.f9df025a.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.d1ea016b.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.4e7fd6e6.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./index.6e7b2ec9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./map.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.a9c91559.js";import"./dialog_index_personnel.vue_vue_type_script_setup_true_name_companyLists_lang.5ce15cba.js";import"./role.67d6c03b.js";import"./create_task_template.885b2406.js";import"./dialog_commodity.vue_vue_type_script_setup_true_name_companyLists_lang.e47c36d8.js";const De={class:"mt-4"},xe={class:"flex justify-end mt-4"},he=N({name:"taskTemplateLists"}),ge=N({...he,setup(Ae){var g,A,$;const d=ye(),x=B([]),r=B(!1),_=me(),u=q({id:"",company_id:"",title:"",admin_id:"",money:"",type:"",status:"",content:""}),k=B(10);(g=_.query)!=null&&g.id&&(u.id=_.query.id),(A=_.query)!=null&&A.company_id&&(u.company_id=_.query.company_id),($=_.query)!=null&&$.company_type&&(k.value=_.query.company_type);const I=q([{id:1,name:"\u663E\u793A"},{id:2,name:"\u9690\u85CF"}]),E=B([]),j=s=>{E.value=s.map(({id:t})=>t)},{dictData:C}=_e(""),{pager:F,getLists:f,resetParams:O,resetPage:Q}=ce({fetchFun:be,params:u}),J=async()=>{var s,t;r.value=!0,await L(),(s=d.value)==null||s.open("add"),(t=d.value)==null||t.setFormData({company_id:u.company_id})},W=async s=>{var t,m;r.value=!0,await L(),(t=d.value)==null||t.open("edit"),(m=d.value)==null||m.setFormData(s)},h=async s=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:s}),f()};return Ve({type_id:10}).then(s=>{x.value=s.lists}),f(),(s,t)=>{const m=Y,c=Z,T=ee,S=te,b=le,z=ae,R=oe,G=re,p=ue,H=ne,K=ie,w=Fe("perms"),M=se;return n(),V("div",null,[a(R,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[a(z,{class:"mb-[-16px] formtabel",model:e(u),inline:""},{default:o(()=>[a(c,{"label-width":"100px",label:"\u4EFB\u52A1\u540D\u79F0",prop:"title"},{default:o(()=>[a(m,{class:"w-[280px]",modelValue:e(u).title,"onUpdate:modelValue":t[0]||(t[0]=l=>e(u).title=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),a(c,{"label-width":"100px",label:"\u521B\u5EFA\u4EBA",prop:"admin_id"},{default:o(()=>[a(m,{class:"w-[280px]",modelValue:e(u
|