import{d as E,n as L,u as Q,r as _,f as X,aP as G,B as I,aj as W,P as Y,o as u,c as Z,i as a,w as e,a as t,Q as $,j as m,C as c,l as d,y as aa,F as ea,U as ta,H as la,v as ra,J as oa,K as na,L as sa,M as ia,N as _a,_ as ua,__tla as ma}from"./index-b2b3c6c4.js";import{_ as pa,__tla as ca}from"./Dialog-70b24cbf.js";import{_ as da,__tla as fa}from"./index-341fc94c.js";import{_ as ya,__tla as ha}from"./DictTag-4199ec8d.js";import{_ as ga,__tla as ba}from"./ContentWrap-e91b2b5a.js";import{D as ka,__tla as wa}from"./dict-7f0cc6d2.js";import{d as va,__tla as Ca}from"./formatTime-7e07ce72.js";import{a as xa,d as Sa,g as Ua,__tla as Pa}from"./index-cb4c9173.js";import{b as Va}from"./formCreate-a3356cdc.js";import{u as Fa,__tla as Na}from"./useMessage-a5edbb0f.js";import{__tla as za}from"./index-2d76a87c.js";import"./color-6e929987.js";import{__tla as qa}from"./el-card-bd6e27c9.js";let z,Ba=Promise.all([(()=>{try{return ma}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return qa}catch{}})()]).then(async()=>{z=ua(E({name:"BpmForm",__name:"index",setup(Ha){const v=Fa(),{t:q}=L(),{currentRoute:B,push:H}=Q(),h=_(!0),C=_(0),x=_([]),o=X({pageNo:1,pageSize:10,name:null}),S=_(),p=async()=>{h.value=!0;try{const n=await xa(o);x.value=n.list,C.value=n.total}finally{h.value=!1}},g=()=>{o.pageNo=1,p()},K=()=>{S.value.resetFields(),g()},U=n=>{const r={name:"BpmFormEditor"};typeof n=="number"&&(r.query={id:n}),H(r)},f=_(!1),b=_({rule:[],option:{}});return G(()=>B.value,()=>{p()},{immediate:!0}),I(()=>{p()}),(n,r)=>{const M=ta,P=la,k=ra,s=oa,O=na,V=ga,i=sa,R=ya,T=ia,j=da,J=W("form-create"),A=pa,y=Y("hasPermi"),D=_a;return u(),Z(ea,null,[a(V,null,{default:e(()=>[a(O,{ref_key:"queryFormRef",ref:S,inline:!0,model:t(o),class:"-mb-15px","label-width":"68px"},{default:e(()=>[a(P,{label:"\u8868\u5355\u540D",prop:"name"},{default:e(()=>[a(M,{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(P,null,{default:e(()=>[a(s,{onClick:g},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:search"}),m(" \u641C\u7D22 ")]),_:1}),a(s,{onClick:K},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:refresh"}),m(" \u91CD\u7F6E ")]),_:1}),c((u(),d(s,{plain:"",type:"primary",onClick:U},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:plus"}),m(" \u65B0\u589E ")]),_:1})),[[y,["bpm:form:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(V,null,{default:e(()=>[c((u(),d(T,{data:t(x)},{default:e(()=>[a(i,{align:"center",label:"\u7F16\u53F7",prop:"id"}),a(i,{align:"center",label:"\u8868\u5355\u540D",prop:"name"}),a(i,{align:"center",label:"\u72B6\u6001",prop:"status"},{default:e(l=>[a(R,{type:t(ka).COMMON_STATUS,value:l.row.status},null,8,["type","value"])]),_:1}),a(i,{align:"center",label:"\u5907\u6CE8",prop:"remark"}),a(i,{formatter:t(va),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},null,8,["formatter"]),a(i,{align:"center",label:"\u64CD\u4F5C"},{default:e(l=>[c((u(),d(s,{link:"",type:"primary",onClick:F=>U(l.row.id)},{default:e(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:update"]]]),c((u(),d(s,{link:"",onClick:F=>(async w=>{const N=await Ua(w);Va(b,N.conf,N.fields),f.value=!0})(l.row.id)},{default:e(()=>[m(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:query"]]]),c((u(),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(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:delete"]]])]),_:1})]),_:1},8,["data"])),[[D,t(h)]]),a(j,{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(C),onPagination:p},null,8,["limit","page","total"])]),_:1}),a(A,{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","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/form/index.vue"]])});export{Ba as __tla,z as default};
