2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
import{B as K,C as z,M as G,N as H,w as J,D as W,I as X,O as Y,P as Z,Q as ee}from"./element-plus.9c2fdfa8.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as oe}from"./usePaging.c22e2b6f.js";import{u as ae}from"./useDictOptions.aa9aa458.js";import{i as le}from"./examined.727b963f.js";import"./lodash.47b8af7d.js";import"./index.5be037e5.js";import ue from"./audit_other.7eca8cda.js";import se from"./audit_town_market.c727d6b5.js";import{g as ne}from"./dict.6bcfed15.js";import{d as S,s as T,r as d,$ as re,e as ie,af as pe,o as u,c as _,U as e,L as l,M as x,u as t,K as p,Q as C,T as me,a7 as ce,R as w,a as L,k as de,n as _e}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.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.96be3cef.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";import"./index.da6dd366.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";const fe={class:"mt-4"},ke={key:0,style:{color:"#f56c6c"}},ve={key:1,style:{color:"#67c23a"}},he={key:2,style:{color:"#e6a23c"}},Fe={class:"flex justify-end mt-4"},Ce=S({name:"flowLists"}),ct=S({...Ce,setup(we){const y=T(),E=T(),m=d(!1),b=d(1),r=re({name:"",check_status:"",type:"1,4"}),P=d([{id:1,name:"\u5F85\u5BA1\u6838"},{id:2,name:"\u5DF2\u901A\u8FC7"},{id:3,name:"\u672A\u901A\u8FC7"}]),R=d([1,5,6]),A=ie(()=>R.value.includes(b.value)),O=d([]),$=n=>{O.value=n.map(({id:a})=>a)},{dictData:D}=ae(""),{pager:c,getLists:f,resetParams:M,resetPage:N}=oe({fetchFun:le,params:r}),g=async(n,a="edit")=>{var k,i,v,h;b.value=n.type,m.value=!0,await _e(),A.value?((k=y.value)==null||k.open(a),(i=y.value)==null||i.setFormData(n)):n.type==4&&((v=E.value)==null||v.open(a),(h=E.value)==null||h.setFormData(n))};return ne().then(n=>{r.type=n.join(","),f()}),(n,a)=>{const k=K,i=z,v=G,h=H,F=J,I=W,V=X,s=Y,U=Z,j=te,Q=pe("perms"),q=ee;return u(),_("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(I,{class:"mb-[-16px]",model:t(r),inline:""},{default:l(()=>[e(i,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"name"},{default:l(()=>[e(k,{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(h,{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),_(me,null,ce(t(P),(o,B)=>(u(),p(v,{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(N)},{default:l(()=>[w("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(F,{onClick:t(M)},{default:l(()=>[w("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),x((u(),p(V,{class:"!border-none",shadow:"never"},{default:l(()=>[L("div",fe,[e(U,{data:t(c).lists,onSelectionChange:$},{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(),_("span",ke,"\u672A\u901A\u8FC7")):C("",!0),o.check_status==2?(u(),_("span",ve,"\u5DF2\u901A\u8FC7")):C("",!0),o.check_status==1?(u(),_("span",he,"\u5F85\u5BA1\u6838")):C("",!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=>g(o,"edit")},{default:l(()=>[w(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[Q,["flow/edit"]]]):(u(),p(F,{key:1,type:"primary",link:"",onClick:B=>g(o,"details")},{default:l(()=>[w(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),L("div",Fe,[e(j,{modelValue:t(c),"onUpdate:modelValue":a[2]||(a[2]=o=>de(c)?c.value=o:null),onChange:t(f)},null,8,["modelValue","onChange"])])]),_:1})),[[q,t(c).loading]]),t(m)&&t(A)?(u(),p(ue,{key:0,ref_key:"auditOtherRef",ref:y,"dict-data":t(D),onSuccess:t(f),onClose:a[3]||(a[3]=o=>m.value=!1)},null,8,["dict-data","onSuccess"])):t(m)&&t(b)==4?(u(),p(se,{key:1,ref_key:"auditTownMarketRef",ref:E,"dict-data":t(D),onSuccess:t(f),onClose:a[4]||(a[4]=o=>m.value=!1)},null,8,["dict-data","onSuccess"])):C("",!0)])}}});export{ct as default};
|