2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{B as j,C as q,M as K,N as z,w as G,D as H,I as J,O as W,P as X,Q as Y}from"./element-plus.b0ecf6ae.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.ebbecf1a.js";import{u as ee}from"./usePaging.2ad8e1e6.js";import{u as te}from"./useDictOptions.adeec031.js";import{i as oe}from"./examined.984daa3a.js";import"./lodash.ffb5376d.js";import"./index.9e5a9063.js";import ae from"./audit_other.6d52851d.js";import le from"./audit_town_market.50fd192d.js";import{d as S,s as V,r as h,$ as ue,af as se,o as u,c as d,U as e,L as l,u as t,T as ne,a7 as re,K as p,R as C,M as x,a as T,Q as w,k as ie,n as pe}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.f9df025a.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.4b0c77cb.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"./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.40d5feba.js";import"./index.3a572f9b.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const me={class:"mt-4"},ce={key:0,style:{color:"#f56c6c"}},de={key:1,style:{color:"#67c23a"}},_e={key:2,style:{color:"#e6a23c"}},fe={class:"flex mt-4 justify-end"},ke=S({name:"flowLists"}),lt=S({...ke,setup(ve){const y=V(),E=V(),m=h(!1),b=h(1),r=ue({name:"",check_status:"",type:"1,4"}),L=h([{id:1,name:"\u5F85\u5BA1\u6838"},{id:2,name:"\u5DF2\u901A\u8FC7"},{id:3,name:"\u672A\u901A\u8FC7"}]),P=h([]),R=n=>{P.value=n.map(({id:a})=>a)},{dictData:A}=te(""),{pager:c,getLists:_,resetParams:$,resetPage:M}=ee({fetchFun:oe,params:r}),D=async(n,a="edit")=>{var f,i,k,v;b.value=n.type,m.value=!0,await pe(),n.type==1?((f=y.value)==null||f.open(a),(i=y.value)==null||i.setFormData(n)):n.type==4&&((k=E.value)==null||k.open(a),(v=E.value)==null||v.setFormData(n))};return _(),(n,a)=>{const f=j,i=q,k=K,v=z,F=G,N=H,g=J,s=W,O=X,I=Z,U=se("perms"),Q=Y;return u(),d("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(N,{class:"mb-[-16px]",model:t(r),inline:""},{default:l(()=>[e(i,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"name"},{default:l(()=>[e(f,{class:"w-[280px]",modelValue:t(r).name,"onUpdate:modelValue":a[0]||(a[0]=o=>t(r).name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5BA1\u6838\u72B6\u6001",prop:"name"},{default:l(()=>[e(v,{modelValue:t(r).check_status,"onUpdate:modelValue":a[1]||(a[1]=o=>t(r).check_status=o),placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",clearable:"",class:"w-[280px]"},{default:l(()=>[(u(!0),d(ne,null,re(t(L),(o,B)=>(u(),p(k,{key:B,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,null,{default:l(()=>[e(F,{type:"primary",onClick:t(M)},{default:l(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(F,{onClick:t($)},{default:l(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),x((u(),p(g,{class:"!border-none",shadow:"never"},{default:l(()=>[T("div",me,[e(O,{data:t(c).lists,onSelectionChange:R},{default:l(()=>[e(s,{label:"ID",prop:"id"}),e(s,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task.title","show-overflow-tooltip":""}),e(s,{label:"\u4EFB\u52A1\u63CF\u8FF0",prop:"task.content","show-overflow-tooltip":""}),e(s,{label:"\u4EFB\u52A1\u91D1\u989D",prop:"task.money","show-overflow-tooltip":""}),e(s,{label:"\u4EFB\u52A1\u63D0\u4EA4\u65F6\u95F4",prop:"task.update_time","show-overflow-tooltip":""}),e(s,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name","show-overflow-tooltip":""}),e(s,{label:"\u7247\u533A\u7ECF\u7406",prop:"area_manager","show-overflow-tooltip":""}),e(s,{label:"\u5BA1\u6838\u72B6\u6001",prop:"check_status","show-overflow-tooltip":""},{default:l(({row:o})=>[o.check_status==3?(u(),d("span",ce,"\u672A\u901A\u8FC7")):w("",!0),o.check_status==2?(u(),d("span",de,"\u5DF2\u901A\u8FC7")):w("",!0),o.check_status==1?(u(),d("span",_e,"\u5F85\u5BA1\u6838")):w("",!0)]),_:1}),e(s,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:o})=>[o.check_status<=1?x((u(),p(F,{key:0,type:"primary",link:"",onClick:B=>D(o,"edit")},{default:l(()=>[C(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[U,["flow/edit"]]]):(u(),p(F,{key:1,type:"primary",link:"",onClick:B=>D(o,"details")},{default:l(()=>[C(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),T("div",fe,[e(I,{modelValue:t(c),"onUpdate:modelValue":a[2]||(a[2]=o=>ie(c)?c.value=o:null),onChange:t(_)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,t(c).loading]]),t(m)&&t(b)==1?(u(),p(ae,{key:0,ref_key:"auditOtherRef",ref:y,"dict-data":t(A),onSuccess:t(_),onClose:a[3]||(a[3]=o=>m.value=!1)},null,8,["dict-data","onSuccess"])):t(m)&&t(b)==4?(u(),p(le,{key:1,ref_key:"auditTownMarketRef",ref:E,"dict-data":t(A),onSuccess:t(_),onClose:a[4]||(a[4]=o=>m.value=!1)},null,8,["dict-data","onSuccess"])):w("",!0)])}}});export{lt as default};
|