import{u as V}from"./useTable-cf8e962b-1782729249161v=1.0.0.js";import{u as $}from"./useEventApplyManage-49ace095-1782729249161v=1.0.0.js";import{g as N}from"./eventApplyMgmtApi-6b4840c2-1782729249161v=1.0.0.js";import q from"./AchievementSubmitDialog-20af3a26-1782729249161v=1.0.0.js";import{u as J,a as O,v as j,_ as G}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{y as k,m as K,r as c,al as u,z as p,I as d,J as n,R as s,u as e,M as i,O as m}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./notData-926f7286-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import"./showAuditDialog-085c2ffe-1782729249161v=1.0.0.js";const Q=k({name:"agreementManageIndex"}),W=k({...Q,setup(X){const _=J(),h=O(),{tableColumns:P,columns:b,dataCallBack:w,paramCallBack:x}=$(),{tableData:z,pageable:r,baseParam:B,searchParam:S,totalParam:Y,pageParam:ee,handleSizeChange:R,handleCurrentChange:D,getTableList:f,search:H,reset:I,loading:L}=V(N,w,x);K(async()=>{B.value={notAuditStatusList:["wait","suspend"]},await f()});const M=o=>{_.push({name:"eventApplyMgmtApplyDetail",query:{id:o.eventProposerId}})},E=o=>{_.push({name:"eventApplyMgmtApplyDetail",query:{id:o.eventProposerId,isAuth:1}})},C=c(),v=c({}),y=c(!1),A=(o,t=!1)=>{v.value=j(o.eventProposerResultInfo),y.value=t,C.value.open()};return(o,t)=>{const F=u("HZSearchForm"),l=u("el-link"),U=u("HZProTable"),Z=u("el-pagination"),T=u("HZPageLayout");return p(),d(T,{title:e(h).meta.title},{searchForm:n(()=>[s(F,{"search-param":e(S),columns:e(b),search:e(H),reset:e(I)},null,8,["search-param","columns","search","reset"])]),pagination:n(()=>[s(Z,{"current-page":e(r).page,"onUpdate:currentPage":t[0]||(t[0]=a=>e(r).page=a),"page-size":e(r).size,"onUpdate:pageSize":t[1]||(t[1]=a=>e(r).size=a),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(r).count,onSizeChange:e(R),onCurrentChange:e(D)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:n(()=>[i(" \u6210\u679C\u63D0\u4EA4\u5F39\u7A97 "),s(q,{ref_key:"achievementRef",ref:C,"is-auditing":e(y),"is-edit":!1,data:e(v),onUpdate:e(f)},null,8,["is-auditing","data","onUpdate"])]),default:n(()=>[s(U,{columns:e(P),data:e(z),isFlex:!1,loading:e(L)},{tableHeader:n(()=>t[2]||(t[2]=[])),toolButton:n(()=>[i(' <el-button type="primary" @click="handleAdd"> \u65B0\u589E </el-button> ')]),operation:n(a=>[s(l,{type:"primary",onClick:g=>M(a.row)},{default:n(()=>t[3]||(t[3]=[m(" \u67E5\u770B ",-1)])),_:2,__:[3]},1032,["onClick"]),a.row.isCurrentLoginUserAuditAuth?(p(),d(l,{key:0,type:"primary",onClick:g=>E(a.row)},{default:n(()=>t[4]||(t[4]=[m(" \u7533\u8BF7\u5BA1\u6838 ",-1)])),_:2,__:[4]},1032,["onClick"])):i("v-if",!0),a.row.eventProposerResultInfo.isCurrentLoginUserAuditAuth?(p(),d(l,{key:1,type:"primary",onClick:g=>A(a.row,!0)},{default:n(()=>t[5]||(t[5]=[m(" \u6210\u679C\u5BA1\u6838 ",-1)])),_:2,__:[5]},1032,["onClick"])):i("v-if",!0),["audit_success","audit_failed"].includes(a.row.resultAuditStatus)?(p(),d(l,{key:2,type:"primary",onClick:g=>A(a.row,!1)},{default:n(()=>t[6]||(t[6]=[m(" \u6210\u679C\u67E5\u770B ",-1)])),_:2,__:[6]},1032,["onClick"])):i("v-if",!0)]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const pe=G(W,[["__scopeId","data-v-aa579571"]]);export{pe as default};
