import{u as w}from"./useTable-7f617eef-1779868775780v=1.0.0.js";import{k as L,a as D,s as M}from"./systemManage-d67b09c0-1779868775780v=1.0.0.js";import{u as N}from"./useCheck-55f2b7da-1779868775780v=1.0.0.js";import{a as U}from"./index-0f3e2c06-1779868775780v=1.0.0.js";import{E as d}from"./eleVendor-dbf96bf3-1779868775780v=1.0.0.js";import{l as $,a as p,d as A,ah as u,m as V,M as q,O as o,U as c,u as e,S as g,T as O}from"./vendor-98154105-1779868775780v=1.0.0.js";const Y=$({__name:"index",setup(R){p(!0);const{checkStepColumns:C,dataCallBack:h}=N(),f=U(),i=p([]),_=p([{prop:"mpId",label:"\u5E94\u7528",enum:i,search:{el:"select",placeholder:"\u5168\u90E8\u5E94\u7528"}}]),z=async()=>{const t={page:1,size:500},{data:a}=await D(t);let l=a.listData.map(n=>({value:n.mpId,label:n.mpName}));i.value=l},{tableData:b,pageable:r,searchParam:k,handleSizeChange:y,handleCurrentChange:P,getTableList:m,search:S,reset:E,renderEmpty:j,loading:G}=w(L,h);A(()=>{z(),m()});const I=t=>{f.push({name:"systemCheckEdit",query:{bizConfId:t.bizConfId,bizConfType:t.bizConfType,mpId:t.mpId}})},F=async t=>{try{let a=M,l="\u72B6\u6001\u4FEE\u6539\u6210\u529F",n=await a({bizConfId:t.bizConfId});n.code===0?(d({type:"success",message:`${l}!`}),m()):d.error(n.msg)}catch{}};return(t,a)=>{const l=u("PaSearchForm"),n=u("el-button"),x=u("PaProTable"),T=u("el-pagination"),v=u("PaIndexPage");return V(),q(v,null,{searchForm:o(()=>[c(l,{"search-param":e(k),columns:e(_),search:e(S),reset:e(E)},null,8,["search-param","columns","search","reset"])]),pagination:o(()=>[c(T,{"current-page":e(r).page,"onUpdate:currentPage":a[0]||(a[0]=s=>e(r).page=s),"page-size":e(r).size,"onUpdate:pageSize":a[1]||(a[1]=s=>e(r).size=s),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(r).count,onSizeChange:e(y),onCurrentChange:e(P)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:o(()=>[c(x,{columns:e(C),data:e(b),showColSet:!1},{operation:o(s=>[c(n,{link:"",type:"primary",size:"small",onClick:B=>I(s.row)},{default:o(()=>[g(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),c(n,{link:"",type:"primary",size:"small",onClick:B=>F(s.row)},{default:o(()=>[g(O(s.row.isAudit===1?"\u72B6\u6001\u5173\u95ED":"\u72B6\u6001\u5F00\u542F"),1)]),_:2},1032,["onClick"])]),_:1},8,["columns","data"])]),_:1})}}});export{Y as default};
