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