import{u as U}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{u as O}from"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import{r as c,R as o,al as r,O as u,y as S,m as q,z as C,I as b,J as a,u as t,k as J,B as j,M as k}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{c as G,u as K,b as Q}from"./auditSettingApi-48a02122-1782572373740v=1.0.0.js";import X from"./Logicflow-f6948428-1782572373740v=1.0.0.js";import{u as Y,a as ee,_ as te}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as ae}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";const ne=y=>{const p=c([{prop:"name",label:"\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u540D\u79F0"}},{prop:"isAudit",label:"\u72B6\u6001",isFilterEnum:!0,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},enum:[{label:"\u542F\u7528",value:1},{label:"\u7981\u7528",value:0}]}]),g=c([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{prop:"name",label:"\u5BA1\u6838\u6D41\u7A0B\u540D\u79F0",minWidth:150},{prop:"remark",label:"\u6D41\u7A0B\u63CF\u8FF0",minWidth:200},{prop:"process",label:"\u5BA1\u6838\u6D41\u7A0B",minWidth:200,render:({row:i})=>o("div",null,[o(r("el-link"),{type:"primary",onClick:()=>y(i)},{default:()=>[u("\u67E5\u770B")]})])},{prop:"isAudit",label:"\u72B6\u6001",width:100,isFilterEnum:!0,enum:[{label:"\u542F\u7528",value:1},{label:"\u7981\u7528",value:0}]},{prop:"updateTime",label:"\u6700\u540E\u4FEE\u6539\u65F6\u95F4",minWidth:160},{prop:"updater",label:"\u4FEE\u6539\u4EBA",minWidth:120},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:p,tableColumns:g,dataCallBack:i=>(i.listData.forEach(h=>{}),i),paramCallBack:i=>i}},oe=ne,le={class:"dialog-footer"},ie=S({name:"auditSettingIndex"}),re=S({...ie,setup(y){const p=Y(),g=ee(),s=c(!1),m=c([]),i=async l=>{m.value=await h(l.bizConfId),m.value,s.value=!0},h=async l=>{let e=await Q(l);if(e.code!=0){ae.warning(e.msg);return}return e.data.auditNodeConfListRespVOList||[]},{tableColumns:z,columns:x,dataCallBack:E,paramCallBack:P}=oe(i),{tableData:F,pageable:d,baseParam:se,searchParam:V,totalParam:ue,pageParam:de,handleSizeChange:I,handleCurrentChange:L,getTableList:v,search:H,reset:N,loading:T}=U(G,E,P),Z=()=>{p.push({name:"auditSettingAdd"})},B=async(l,e)=>{let f=e===1?"\u542F\u7528":"\u7981\u7528";await O(K,{bizConfId:l.bizConfId,isAudit:e},f),v()},D=l=>{p.push({name:"auditSettingEdit",query:{id:l.bizConfId}})};return q(async()=>{await v()}),(l,e)=>{const f=r("HZSearchForm"),w=r("el-button"),_=r("el-link"),R=r("HZProTable"),W=r("el-pagination"),$=r("el-dialog"),M=r("HZPageLayout");return C(),b(M,{title:t(g).meta.title},{searchForm:a(()=>[o(f,{"search-param":t(V),columns:t(x),search:t(H),reset:t(N)},null,8,["search-param","columns","search","reset"])]),pagination:a(()=>[o(W,{"current-page":t(d).page,"onUpdate:currentPage":e[0]||(e[0]=n=>t(d).page=n),"page-size":t(d).size,"onUpdate:pageSize":e[1]||(e[1]=n=>t(d).size=n),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:t(d).count,onSizeChange:t(I),onCurrentChange:t(L)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:a(()=>[o($,{modelValue:t(s),"onUpdate:modelValue":e[3]||(e[3]=n=>J(s)?s.value=n:null),title:"\u5BA1\u6838\u6D41\u7A0B\u9884\u89C8",width:"60%"},{footer:a(()=>[j("div",le,[o(w,{onClick:e[2]||(e[2]=n=>s.value=!1)},{default:a(()=>e[9]||(e[9]=[u("\u786E\u5B9A",-1)])),_:1,__:[9]})])]),default:a(()=>[o(X,{dataList:t(m),dialogMode:!0},null,8,["dataList"])]),_:1},8,["modelValue"])]),default:a(()=>[o(R,{columns:t(z),data:t(F),isFlex:!1,loading:t(T)},{tableHeader:a(()=>e[4]||(e[4]=[])),toolButton:a(()=>[o(w,{type:"primary",onClick:Z},{default:a(()=>e[5]||(e[5]=[u(" \u65B0\u589E ",-1)])),_:1,__:[5]})]),operation:a(n=>[k(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),o(_,{type:"primary",onClick:A=>D(n.row)},{default:a(()=>e[6]||(e[6]=[u(" \u7F16\u8F91 ",-1)])),_:2,__:[6]},1032,["onClick"]),n.row.isAudit==0?(C(),b(_,{key:0,type:"success",onClick:A=>B(n.row,1)},{default:a(()=>e[7]||(e[7]=[u(" \u542F\u7528 ",-1)])),_:2,__:[7]},1032,["onClick"])):k("v-if",!0),n.row.isAudit==1?(C(),b(_,{key:1,type:"danger",onClick:A=>B(n.row,0)},{default:a(()=>e[8]||(e[8]=[u(" \u7981\u7528 ",-1)])),_:2,__:[8]},1032,["onClick"])):k("v-if",!0)]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const ke=te(re,[["__scopeId","data-v-5cb9ff15"]]);export{ke as default};
