import{u as Z}from"./useTable-cf8e962b-1782729249161v=1.0.0.js";import{u as L}from"./useHandleData-54f3fb4d-1782729249161v=1.0.0.js";import{b as $,u as O,a as R,_ as V}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{r as g,y,m as q,al as s,z as N,I as U,J as t,R as o,u as a,O as p}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import{b as J,d as j}from"./agreementManageApi-c7dbd9e8-1782729249161v=1.0.0.js";import"./notData-926f7286-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";const G=()=>{$(),g([]),(async()=>{})();const u=g([{prop:"name",label:"\u534F\u8BAE\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u534F\u8BAE\u540D\u79F0"}},{prop:"status",label:"\u72B6\u6001",isFilterEnum:!0,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},enum:[{label:"\u6709\u6548",value:1},{label:"\u65E0\u6548",value:0}]}]),m=g([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u534F\u8BAE\u7F16\u53F7",prop:"agreementId"},{label:"\u9002\u7528\u4E1A\u52A1",prop:"applicableType"},{label:"\u534F\u8BAE\u540D\u79F0",prop:"name"},{label:"\u72B6\u6001",prop:"status",isFilterEnum:!0,isTag:!0,enum:[{label:"\u6709\u6548",value:1},{label:"\u65E0\u6548",value:0}]},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:u,tableColumns:m,dataCallBack:l=>(l.listData.forEach(b=>{}),l),paramCallBack:l=>l}},K=G,Q=y({name:"agreementManageIndex"}),W=y({...Q,setup(h){const u=O(),m=R(),{tableColumns:c,columns:_,dataCallBack:l,paramCallBack:b}=K(),{tableData:k,pageable:i,baseParam:X,searchParam:x,totalParam:Y,pageParam:ee,handleSizeChange:v,handleCurrentChange:z,getTableList:f,search:B,reset:w,loading:E}=Z(J,l,b);q(async()=>{await f()});const F=()=>{u.push({name:"agreementManageAdd"})},M=r=>{u.push({name:"agreementManageDetail",query:{id:r.agreementId}})},P=r=>{u.push({name:"agreementManageEdit",query:{id:r.agreementId}})},S=async r=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await L(j,{id:r.agreementId},e),f()};return(r,e)=>{const H=s("HZSearchForm"),I=s("el-button"),d=s("el-link"),T=s("HZProTable"),A=s("el-pagination"),D=s("HZPageLayout");return N(),U(D,{title:a(m).meta.title},{searchForm:t(()=>[o(H,{"search-param":a(x),columns:a(_),search:a(B),reset:a(w)},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[o(A,{"current-page":a(i).page,"onUpdate:currentPage":e[0]||(e[0]=n=>a(i).page=n),"page-size":a(i).size,"onUpdate:pageSize":e[1]||(e[1]=n=>a(i).size=n),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(i).count,onSizeChange:a(v),onCurrentChange:a(z)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[o(T,{columns:a(c),data:a(k),isFlex:!1,loading:a(E)},{tableHeader:t(()=>e[2]||(e[2]=[])),toolButton:t(()=>[o(I,{type:"primary",onClick:F},{default:t(()=>e[3]||(e[3]=[p(" \u65B0\u589E ",-1)])),_:1,__:[3]})]),operation:t(n=>[o(d,{type:"primary",onClick:C=>M(n.row)},{default:t(()=>e[4]||(e[4]=[p(" \u67E5\u770B ",-1)])),_:2,__:[4]},1032,["onClick"]),o(d,{type:"primary",onClick:C=>P(n.row)},{default:t(()=>e[5]||(e[5]=[p(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"]),o(d,{type:"danger",onClick:C=>S(n.row)},{default:t(()=>e[6]||(e[6]=[p(" \u5220\u9664 ",-1)])),_:2,__:[6]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const ue=V(W,[["__scopeId","data-v-43baf9ff"]]);export{ue as default};
