import{d as I,h as K,u as L,r as i,e as W,L as J,l as Q,M as X,R as Y,o as m,c as Z,f as a,w as e,a as t,S as $,n as u,x as c,v as d,P as aa,F as ea,W as ta,A as la,j as ra,C as oa,D as na,G as sa,H as _a,I as ia,_ as ma,__tla as ua}from"./index-04f8d540.js";import{_ as pa,__tla as ca}from"./Dialog-9afb5ba5.js";import{_ as da,__tla as fa}from"./index-bf28d6af.js";import{_ as ya,__tla as ha}from"./DictTag-774e4f97.js";import{_ as ga,__tla as ba}from"./ContentWrap-0137c911.js";import{D as wa,__tla as ka}from"./dict-ef06f7f7.js";import{d as va,__tla as xa}from"./formatTime-81f0c591.js";import{a as Ca,d as Sa,g as Ua,__tla as Va}from"./index-95bd15be.js";import{b as za}from"./formCreate-a3356cdc.js";import{u as Fa,__tla as Na}from"./useMessage-9c37e840.js";import{__tla as Ma}from"./index-1cf9f52b.js";import"./color-6e929987.js";import{__tla as Pa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-d7df3a9f.js";import{__tla as qa}from"./el-card-3a265a8d.js";let M,Aa=Promise.all([(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return qa}catch{}})()]).then(async()=>{M=ma(I({name:"BpmForm",__name:"index",setup(Ba){const v=Fa(),{t:P}=K(),{currentRoute:q,push:A}=L(),h=i(!0),x=i(0),C=i([]),o=W({pageNo:1,pageSize:10,name:null}),S=i(),p=async()=>{h.value=!0;try{const n=await Ca(o);C.value=n.list,x.value=n.total}finally{h.value=!1}},g=()=>{o.pageNo=1,p()},B=()=>{S.value.resetFields(),g()},U=n=>{const r={name:"BpmFormEditor"};typeof n=="number"&&(r.query={id:n}),A(r)},f=i(!1),b=i({rule:[],option:{}});return J(()=>q.value,()=>{p()},{immediate:!0}),Q(()=>{p()}),(n,r)=>{const D=ta,V=la,w=ra,s=oa,O=na,z=ga,_=sa,R=ya,T=_a,E=da,j=X("form-create"),G=pa,y=Y("hasPermi"),H=ia;return m(),Z(ea,null,[a(z,null,{default:e(()=>[a(O,{ref_key:"queryFormRef",ref:S,inline:!0,model:t(o),class:"-mb-15px","label-width":"68px"},{default:e(()=>[a(V,{label:"\u8868\u5355\u540D",prop:"name"},{default:e(()=>[a(D,{modelValue:t(o).name,"onUpdate:modelValue":r[0]||(r[0]=l=>t(o).name=l),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8868\u5355\u540D",onKeyup:$(g,["enter"])},null,8,["modelValue"])]),_:1}),a(V,null,{default:e(()=>[a(s,{onClick:g},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:search"}),u(" \u641C\u7D22 ")]),_:1}),a(s,{onClick:B},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:refresh"}),u(" \u91CD\u7F6E ")]),_:1}),c((m(),d(s,{plain:"",type:"primary",onClick:U},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:plus"}),u(" \u65B0\u589E ")]),_:1})),[[y,["bpm:form:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(z,null,{default:e(()=>[c((m(),d(T,{data:t(C)},{default:e(()=>[a(_,{align:"center",label:"\u7F16\u53F7",prop:"id"}),a(_,{align:"center",label:"\u8868\u5355\u540D",prop:"name"}),a(_,{align:"center",label:"\u72B6\u6001",prop:"status"},{default:e(l=>[a(R,{type:t(wa).COMMON_STATUS,value:l.row.status},null,8,["type","value"])]),_:1}),a(_,{align:"center",label:"\u5907\u6CE8",prop:"remark"}),a(_,{formatter:t(va),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},null,8,["formatter"]),a(_,{align:"center",label:"\u64CD\u4F5C"},{default:e(l=>[c((m(),d(s,{link:"",type:"primary",onClick:F=>U(l.row.id)},{default:e(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:update"]]]),c((m(),d(s,{link:"",onClick:F=>(async k=>{const N=await Ua(k);za(b,N.conf,N.fields),f.value=!0})(l.row.id)},{default:e(()=>[u(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:query"]]]),c((m(),d(s,{link:"",type:"danger",onClick:F=>(async k=>{try{await v.delConfirm(),await Sa(k),v.success(P("common.delSuccess")),await p()}catch{}})(l.row.id)},{default:e(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:delete"]]])]),_:1})]),_:1},8,["data"])),[[H,t(h)]]),a(E,{limit:t(o).pageSize,"onUpdate:limit":r[1]||(r[1]=l=>t(o).pageSize=l),page:t(o).pageNo,"onUpdate:page":r[2]||(r[2]=l=>t(o).pageNo=l),total:t(x),onPagination:p},null,8,["limit","page","total"])]),_:1}),a(G,{modelValue:t(f),"onUpdate:modelValue":r[3]||(r[3]=l=>aa(f)?f.value=l:null),title:"\u8868\u5355\u8BE6\u60C5",width:"800"},{default:e(()=>[a(j,{option:t(b).option,rule:t(b).rule},null,8,["option","rule"])]),_:1},8,["modelValue"])],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/bpm/form/index.vue"]])});export{Aa as __tla,M as default};
