import{u as T}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{u as U}from"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import{u as V}from"./useAgreementManage-ad3b5cb0-1782572373740v=1.0.0.js";import{g as N,f as R}from"./fundApplyMgmtApi-e408d25c-1782572373740v=1.0.0.js";import{u as $,a as q,_ as J}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{y,m as O,al as r,z as d,I as g,J as t,R as s,u as e,M as l,O as i,P as j}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import"./showAuditDialog-d8482297-1782572373740v=1.0.0.js";import"./useDict-7568ee9f-1782572373740v=1.0.0.js";const G=y({name:"agreementManageIndex"}),K=y({...G,setup(Q){const p=$(),f=q(),{tableColumns:C,columns:k,dataCallBack:b,paramCallBack:h}=V(),{tableData:P,pageable:u,baseParam:W,searchParam:A,totalParam:X,pageParam:Y,handleSizeChange:F,handleCurrentChange:w,getTableList:c,search:z,reset:B,loading:D}=T(N,b,h);O(async()=>{await c()});const S=()=>{p.push({name:"fundApplyMgmtApplyAdd"})},v=n=>{p.push({name:"fundApplyMgmtApplyDetail",query:{id:n.feeProposerId}})},E=async n=>{await U(R,{id:n.feeProposerId},"\u63D0\u4EA4\u7533\u8BF7"),c()},x=n=>{p.push({name:"fundApplyMgmtApplyEdit",query:{id:n.feeProposerId}})};return(n,a)=>{const H=r("HZSearchForm"),M=r("el-button"),m=r("el-link"),I=r("HZProTable"),L=r("el-pagination"),Z=r("HZPageLayout");return d(),g(Z,{title:e(f).meta.title},{searchForm:t(()=>[s(H,{"search-param":e(A),columns:e(k),search:e(z),reset:e(B)},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[s(L,{"current-page":e(u).page,"onUpdate:currentPage":a[0]||(a[0]=o=>e(u).page=o),"page-size":e(u).size,"onUpdate:pageSize":a[1]||(a[1]=o=>e(u).size=o),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(u).count,onSizeChange:e(F),onCurrentChange:e(w)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>[l(" \u6210\u679C\u63D0\u4EA4\u5F39\u7A97 ")]),default:t(()=>[s(I,{columns:e(C),data:e(P),isFlex:!1,loading:e(D)},{tableHeader:t(()=>a[2]||(a[2]=[])),toolButton:t(()=>[s(M,{type:"primary",onClick:S},{default:t(()=>a[3]||(a[3]=[i(" \u65B0\u589E\u7ECF\u8D39\u7533\u8BF7 ",-1)])),_:1,__:[3]})]),operation:t(o=>[s(m,{type:"primary",onClick:_=>v(o.row)},{default:t(()=>a[4]||(a[4]=[i(" \u67E5\u770B ",-1)])),_:2,__:[4]},1032,["onClick"]),o.row.isCurrentLoginUserEdit?(d(),g(m,{key:0,type:"primary",onClick:_=>x(o.row)},{default:t(()=>[i(j(o.row.auditStatus==="audit_failed"?"\u91CD\u65B0\u63D0\u4EA4":"\u7F16\u8F91"),1)]),_:2},1032,["onClick"])):l("v-if",!0),o.row.isCurrentLoginUserSubmit?(d(),g(m,{key:1,type:"primary",onClick:_=>E(o.row)},{default:t(()=>a[5]||(a[5]=[i(" \u63D0\u4EA4\u7533\u8BF7 ",-1)])),_:2,__:[5]},1032,["onClick"])):l("v-if",!0),l(' <el-link type="danger" @click="handleDel(scope.row)"> \u5220\u9664 </el-link> ')]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const pe=J(K,[["__scopeId","data-v-ae33ead1"]]);export{pe as default};
