import I from"./baseform-5003d7e5-1779868775780v=1.0.0.js";import{u as b}from"./useFormEdit-42a9503c-1779868775780v=1.0.0.js";import{l as _,m as P}from"./systemManage-d67b09c0-1779868775780v=1.0.0.js";import{b as R}from"./index-0f3e2c06-1779868775780v=1.0.0.js";import{E as u}from"./eleVendor-dbf96bf3-1779868775780v=1.0.0.js";import{l as c,a as n,d as q,ah as z,m as B,M as L,O as T,U as k,u as m,B as d}from"./vendor-98154105-1779868775780v=1.0.0.js";import"./diagTable-53aca04b-1779868775780v=1.0.0.js";import"./useTable-7f617eef-1779868775780v=1.0.0.js";import"./useCheck-55f2b7da-1779868775780v=1.0.0.js";import"./organize-df1743e7-1779868775780v=1.0.0.js";import"./_plugin-vue_export-helper-8c5478df-1779868775780v=1.0.0.js";import"./tabs-e9b8af2b-1779868775780v=1.0.0.js";const x=c({name:"systemCheckStepAdd"}),$=c({...x,setup(w){const r=n({mpId:"",bizConfType:"",auditType:"personal",auditWay:"personnel",auditPerson:"",auditRolePersIds:[],auditRolePersIdsRespVOList:[]}),f=n(null),y=n(null),i=n([]),o=R(),s=n(!1),{closeCurrent:p}=b(),g=async l=>{const a=await _({page:1,size:200,mpId:l});if(a.code!==0){u.error(a.msg);return}i.value=a.data.listData},v=()=>{p()},C=async l=>{s.value=!0;try{let e=P,a="\u65B0\u589E\u6210\u529F",t=await e(l);t.code===0?(u({type:"success",message:`${a}!`}),p()):u.error(t.msg),s.value=!1}catch{s.value=!1}};return q(async()=>{o.query.mpId&&(f.value=o.query.mpId,y.value=o.query.bizConfType,r.value.bizConfType=o.query.bizConfType,r.value.mpId=o.query.mpId,await g(o.query.mpId))}),(l,e)=>{const a=z("PaIndexPage");return B(),L(a,null,{default:T(()=>[k(I,{value:m(r),"onUpdate:value":e[0]||(e[0]=t=>d(r)?r.value=t:null),loading:m(s),"onUpdate:loading":e[1]||(e[1]=t=>d(s)?s.value=t:null),roleList:m(i),onCancel:v,onSubmit:C},null,8,["value","loading","roleList"])]),_:1})}}});export{$ as default};
