WokerTask/public/admin/assets/index.36e3f169.js

2 lines
4.6 KiB
JavaScript

import{B as I,C as U,M as j,N as O,w as Q,D as q,I as K,O as z,P as G,Q as H}from"./element-plus.10e48c93.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.579ca8f7.js";import{u as W}from"./usePaging.60d02673.js";import{u as X}from"./useDictOptions.d46d4fb9.js";import{a as Y,b as Z}from"./audit_town_market.d060df5d.js";import{k as ee}from"./dict.8e36f67c.js";import{d as g,s as te,r as _,$ as oe,e as ae,af as le,o as s,c as E,U as e,L as a,u as t,T as ne,a7 as se,K as m,R as f,M as F,a as B,k as ue,Q as re,n as ie}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"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5a613cc5.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.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.cfb3fa32.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const pe={class:"mt-4"},me={class:"flex justify-end mt-4"},ce=g({name:"flowLists"}),tt=g({...ce,setup(de){const k=te(),v=_(!1),h=_(1),n=oe({name:"",check_status:"",type:"10"});ee().then(u=>{n.type=u.join(","),C()});const A=_([{id:1,name:"\u5F85\u5BA1\u6838"},{id:2,name:"\u5DF2\u901A\u8FC7"},{id:3,name:"\u672A\u901A\u8FC7"}]),D=_([1,5,6]);ae(()=>D.value.includes(h.value));const{dictData:V}=X(""),{pager:p,getLists:C,resetParams:T,resetPage:x}=W({fetchFun:Z,params:n}),y=async(u,l="edit")=>{var c,r;console.log(u.type),h.value=u.type,v.value=!0,await ie(),(c=k.value)==null||c.open(l),(r=k.value)==null||r.setFormData(u)};return(u,l)=>{const c=I,r=U,L=j,M=O,d=Q,P=q,b=K,i=z,N=G,R=J,S=le("perms"),$=H;return s(),E("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(P,{class:"mb-[-16px]",model:t(n),inline:""},{default:a(()=>[e(r,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"name"},{default:a(()=>[e(c,{class:"w-[280px]",modelValue:t(n).name,"onUpdate:modelValue":l[0]||(l[0]=o=>t(n).name=o),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(M,{modelValue:t(n).check_status,"onUpdate:modelValue":l[1]||(l[1]=o=>t(n).check_status=o),placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",clearable:"",class:"w-[280px]"},{default:a(()=>[(s(!0),E(ne,null,se(t(A),(o,w)=>(s(),m(L,{key:w,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:a(()=>[e(d,{type:"primary",onClick:t(x)},{default:a(()=>[f("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:t(T)},{default:a(()=>[f("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((s(),m(b,{class:"!border-none",shadow:"never"},{default:a(()=>[B("div",pe,[e(N,{data:t(p).lists},{default:a(()=>[e(i,{label:"ID",width:"100",prop:"id"}),e(i,{label:"\u53C2\u80A1\u516C\u53F8",prop:"company_b_name",width:"500","show-overflow-tooltip":"",align:"center"}),e(i,{label:"\u88AB\u53C2\u80A1\u516C\u53F8",prop:"company_a_name","show-overflow-tooltip":"",width:"500",align:"center"}),e(i,{label:"\u53C2\u80A1\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(i,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:o})=>[o.check_status<=1?F((s(),m(d,{key:0,type:"primary",link:"",onClick:w=>y(o,"edit")},{default:a(()=>[f(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[S,["flow/edit"]]]):(s(),m(d,{key:1,type:"primary",link:"",onClick:w=>y(o,"details")},{default:a(()=>[f(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),B("div",me,[e(R,{modelValue:t(p),"onUpdate:modelValue":l[2]||(l[2]=o=>ue(p)?p.value=o:null),onChange:t(C)},null,8,["modelValue","onChange"])])]),_:1})),[[$,t(p).loading]]),t(v)?(s(),m(Y,{key:0,ref_key:"auditTownMarketRef",ref:k,"dict-data":t(V),onSuccess:t(C),onClose:l[3]||(l[3]=o=>v.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{tt as default};