import{d as E,h as G,u as X,r as _,e as j,aM as L,q as Q,ag as W,M as Y,o as u,c as Z,f as a,w as e,a as t,N as $,y as m,z as c,x as d,l as aa,F as ea,R as ta,C as la,j as ra,G as oa,H as na,I as sa,J as ia,K as _a,_ as ua,__tla as ma}from"./index-8dc1e40a.js";import{_ as pa,__tla as ca}from"./Dialog-41802231.js";import{_ as da,__tla as fa}from"./index-64aeaa78.js";import{_ as ya,__tla as ha}from"./DictTag-85aade2b.js";import{_ as ga,__tla as ba}from"./ContentWrap-0aca5216.js";import{D as ka,__tla as wa}from"./dict-f13a3c8f.js";import{d as va,__tla as Ca}from"./formatTime-8a155b2e.js";import{a as xa,d as Na,g as Sa,__tla as Ua}from"./index-0592ab4e.js";import{b as Va}from"./formCreate-a3356cdc.js";import{u as za,__tla as Fa}from"./useMessage-7a27dd80.js";import{__tla as Ra}from"./index-803dbf9a.js";import"./color-6e929987.js";import{__tla as qa}from"./el-card-18df90f0.js";let R,Ma=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 Ua}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return qa}catch{}})()]).then(async()=>{R=ua(E({name:"BpmForm",__name:"index",setup(Ta){const v=za(),{t:q}=G(),{currentRoute:M,push:T}=X(),h=_(!0),C=_(0),x=_([]),o=j({pageNo:1,pageSize:10,name:null}),N=_(),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()},B=()=>{N.value.resetFields(),g()},S=n=>{const r={name:"BpmFormEditor"};typeof n=="number"&&(r.query={id:n}),T(r)},f=_(!1),b=_({rule:[],option:{}});return L(()=>M.value,()=>{p()},{immediate:!0}),Q(()=>{p()}),(n,r)=>{const H=ta,U=la,k=ra,s=oa,P=na,V=ga,i=sa,D=ya,I=ia,J=da,K=W("form-create"),O=pa,y=Y("hasPermi"),A=_a;return u(),Z(ea,null,[a(V,null,{default:e(()=>[a(P,{ref_key:"queryFormRef",ref:N,inline:!0,model:t(o),class:"-mb-15px","label-width":"68px"},{default:e(()=>[a(U,{label:"\u8868\u5355\u540D",prop:"name"},{default:e(()=>[a(H,{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(U,null,{default:e(()=>[a(s,{onClick:g},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:search"}),m(" \u641C\u7D22 ")]),_:1}),a(s,{onClick:B},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:refresh"}),m(" \u91CD\u7F6E ")]),_:1}),c((u(),d(s,{plain:"",type:"primary",onClick:S},{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(I,{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(D,{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:z=>S(l.row.id)},{default:e(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:update"]]]),c((u(),d(s,{link:"",onClick:z=>(async w=>{const F=await Sa(w);Va(b,F.conf,F.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:z=>(async w=>{try{await v.delConfirm(),await Na(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"])),[[A,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(O,{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(K,{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{Ma as __tla,R as default};
