import{u as V}from"./useTable-7f617eef-1779868775780v=1.0.0.js";import{u as H}from"./useHandleData-2561a95c-1779868775780v=1.0.0.js";import{u as L}from"./useFormEdit-42a9503c-1779868775780v=1.0.0.js";import{u as $}from"./useCheck-55f2b7da-1779868775780v=1.0.0.js";import{h as j,i as O,j as U}from"./systemManage-d67b09c0-1779868775780v=1.0.0.js";import{a as G,b as J}from"./index-0f3e2c06-1779868775780v=1.0.0.js";import{E as K}from"./eleVendor-dbf96bf3-1779868775780v=1.0.0.js";import{l as g,a as d,d as Q,ah as u,m as W,M as X,O as e,U as a,ab as f,ac as _,u as o,S as l,T as P,q as v}from"./vendor-98154105-1779868775780v=1.0.0.js";import"./tabs-e9b8af2b-1779868775780v=1.0.0.js";const Y=v("div",{class:"divider mt20 mb30"},"\u57FA\u7840\u4FE1\u606F",-1),Z=v("div",{class:"divider mt20 mb30"},"\u5BA1\u6838\u6D41\u7A0B",-1),ee=g({name:"systemCheckEdit"}),be=g({...ee,setup(ae){const i=d({xs:24,sm:20,md:16,lg:16,xl:16}),{closeCurrent:z}=L(),{checkProcessColumns:T,dataCallBack:B}=$(),{tableData:q,pageable:te,baseParam:E,searchParam:oe,handleSizeChange:ne,handleCurrentChange:se,getTableList:C,search:ue,reset:le,renderEmpty:re,loading:de}=V(j,B),F=d(null),y=d(null),h=d(null),b=G(),t=J(),c=d({bizConfType:"",mpId:"",mpName:"",name:""}),w=async n=>{let s=await O(n);if(s.code!==0){K.error(s.msg);return}for(const r in c.value)c.value[r]=s.data[r]},A=()=>{b.push({name:"systemCheckStepAdd",query:{mpId:t.query.mpId,bizConfType:t.query.bizConfType}})},x=n=>{b.push({name:"systemCheckStepEdit",query:{mpId:t.query.mpId,auditNodeConfId:n.auditNodeConfId}})},D=async n=>{let s="\u5220\u9664\u5F53\u524D\u8282\u70B9";await H(U,{ids:[n.auditNodeConfId]},s),C()},N=()=>{z()};return Q(async()=>{t.query.bizConfId&&(F.value=t.query.bizConfId,y.value=t.query.bizConfType,h.value=t.query.mpId,w(t.query.bizConfId),E.value={bizConfType:y.value,mpId:h.value,sortColumn:"sort",sortType:"asc"},await C())}),(n,s)=>{const r=u("el-form-item"),p=u("PaCol"),k=u("PaRow"),m=u("el-button"),S=u("PaProTable"),R=u("PaIndexPage");return W(),X(R,null,{default:e(()=>[Y,a(k,null,{default:e(()=>[a(p,f(_(o(i))),{default:e(()=>[a(r,{label:"\u5E94\u7528\uFF1A",class:"mt16"},{default:e(()=>[l(P(o(c).mpName),1)]),_:1})]),_:1},16),a(p,f(_(o(i))),{default:e(()=>[a(r,{label:"\u4E1A\u52A1\uFF1A",class:"mt16"},{default:e(()=>[l(P(o(c).name),1)]),_:1})]),_:1},16)]),_:1}),a(S,{columns:o(T),data:o(q),showColSet:!1},{tableHeader:e(()=>[Z]),toolButton:e(()=>[a(m,{type:"primary",onClick:A},{default:e(()=>[l(" \u65B0\u589E ")]),_:1})]),operation:e(I=>[a(m,{link:"",type:"primary",size:"small",onClick:M=>x(I.row)},{default:e(()=>[l(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),a(m,{link:"",type:"primary",size:"small",onClick:M=>D(I.row)},{default:e(()=>[l(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1},8,["columns","data"]),a(k,null,{default:e(()=>[a(p,f(_(o(i))),{default:e(()=>[a(m,{class:"mt20",onClick:N},{default:e(()=>[l("\u53D6\u6D88")]),_:1})]),_:1},16)]),_:1})]),_:1})}}});export{be as default};
