import{d as J,i as K,u as Q,r as i,f as W,M as X,m as j,N as L,S as Y,o as m,c as Z,g as a,w as e,a as t,T as $,q as u,y as c,x as d,Q as aa,F as ea,X as ta,B as la,k as ra,D as oa,G as na,H as sa,I as _a,J as ia,_ as ma,__tla as ua}from"./index-7d5b26d3.js";import{_ as pa,__tla as ca}from"./Dialog-2be588df.js";import{_ as da,__tla as fa}from"./index-966eea36.js";import{_ as ya,__tla as ha}from"./DictTag-89bfbd38.js";import{_ as ga,__tla as ba}from"./ContentWrap-07931e94.js";import{D as ka,__tla as wa}from"./dict-37d1dfe8.js";import{d as va,__tla as xa}from"./formatTime-5152c108.js";import{a as Ca,d as Sa,g as Na,__tla as Va}from"./index-6a051839.js";import{b as za}from"./formCreate-a3356cdc.js";import{u as Fa,__tla as Ta}from"./useMessage-c81eaa5b.js";import{__tla as Ua}from"./index-cdb8fe72.js";import"./color-6e929987.js";import{__tla as qa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-831d711e.js";import{__tla as Ma}from"./el-card-698191e2.js";let U,Pa=Promise.all([(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ma}catch{}})()]).then(async()=>{U=ma(J({name:"BpmForm",__name:"index",setup(Ba){const v=Fa(),{t:q}=K(),{currentRoute:M,push:P}=Q(),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()},N=n=>{const r={name:"BpmFormEditor"};typeof n=="number"&&(r.query={id:n}),P(r)},f=i(!1),b=i({rule:[],option:{}});return X(()=>M.value,()=>{p()},{immediate:!0}),j(()=>{p()}),(n,r)=>{const R=ta,V=la,k=ra,s=oa,A=na,z=ga,_=sa,D=ya,O=_a,E=da,G=L("form-create"),H=pa,y=Y("hasPermi"),I=ia;return m(),Z(ea,null,[a(z,null,{default:e(()=>[a(A,{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(R,{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(k,{class:"mr-5px",icon:"ep:search"}),u(" \u641C\u7D22 ")]),_:1}),a(s,{onClick:B},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:refresh"}),u(" \u91CD\u7F6E ")]),_:1}),c((m(),d(s,{plain:"",type:"primary",onClick:N},{default:e(()=>[a(k,{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(O,{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(D,{type:t(ka).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=>N(l.row.id)},{default:e(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:update"]]]),c((m(),d(s,{link:"",onClick:F=>(async w=>{const T=await Na(w);za(b,T.conf,T.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 w=>{try{await v.delConfirm(),await Sa(w),v.success(q("common.delSuccess")),await p()}catch{}})(l.row.id)},{default:e(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:delete"]]])]),_:1})]),_:1},8,["data"])),[[I,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(H,{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(G,{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{Pa as __tla,U as default};
