import{d as G,n as J,u as L,r as _,f as Q,aP as I,B as W,aj as X,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-2c56227b.js";import{_ as pa,__tla as ca}from"./Dialog-1050d437.js";import{_ as da,__tla as fa}from"./index-8106be8e.js";import{_ as ya,__tla as ha}from"./DictTag-cfe1898d.js";import{_ as ga,__tla as ba}from"./ContentWrap-f1610353.js";import{D as wa,__tla as ka}from"./dict-763dd292.js";import{d as va,__tla as Ca}from"./formatTime-7f0ec2bf.js";import{a as xa,d as Ua,g as Na,__tla as Pa}from"./index-fcc90371.js";import{b as Sa}from"./formCreate-a3356cdc.js";import{u as Va,__tla as Fa}from"./useMessage-96878a4a.js";import{__tla as qa}from"./index-d17bd909.js";import"./color-6e929987.js";import{__tla as Oa}from"./el-card-9c148b4f.js";let q,za=Promise.all([(()=>{try{return ma}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Oa}catch{}})()]).then(async()=>{q=ua(G({name:"BpmForm",__name:"index",setup(Aa){const v=Va(),{t:O}=J(),{currentRoute:z,push:A}=L(),h=_(!0),C=_(0),x=_([]),o=Q({pageNo:1,pageSize:10,name:null}),U=_(),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=()=>{U.value.resetFields(),g()},N=n=>{const r={name:"BpmFormEditor"};typeof n=="number"&&(r.query={id:n}),A(r)},f=_(!1),b=_({rule:[],option:{}});return I(()=>z.value,()=>{p()},{immediate:!0}),W(()=>{p()}),(n,r)=>{const E=ta,P=la,w=ra,s=oa,H=na,S=ga,i=sa,K=ya,M=ia,T=da,j=X("form-create"),R=pa,y=Y("hasPermi"),D=_a;return u(),Z(ea,null,[a(S,null,{default:e(()=>[a(H,{ref_key:"queryFormRef",ref:U,inline:!0,model:t(o),class:"-mb-15px","label-width":"68px"},{default:e(()=>[a(P,{label:"\u8868\u5355\u540D",prop:"name"},{default:e(()=>[a(E,{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","onKeyup"])]),_:1}),a(P,null,{default:e(()=>[a(s,{onClick:g},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:search"}),m(" \u641C\u7D22 ")]),_:1}),a(s,{onClick:B},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:refresh"}),m(" \u91CD\u7F6E ")]),_:1}),c((u(),d(s,{plain:"",type:"primary",onClick:N},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:plus"}),m(" \u65B0\u589E ")]),_:1})),[[y,["bpm:form:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(S,null,{default:e(()=>[c((u(),d(M,{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(K,{type:t(wa).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:V=>N(l.row.id)},{default:e(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:update"]]]),c((u(),d(s,{link:"",onClick:V=>(async k=>{const F=await Na(k);Sa(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:V=>(async k=>{try{await v.delConfirm(),await Ua(k),v.success(O("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(T,{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(R,{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","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/bpm/form/index.vue"]])});export{za as __tla,q as default};
