import{u as $}from"./useTable-cf8e962b-1782729249161v=1.0.0.js";import{u as I}from"./useHandleData-54f3fb4d-1782729249161v=1.0.0.js";import{b as R,u as U,a as V,_ as q}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{r as u,y as h,m as A,al as s,z as N,I as J,J as t,R as o,u as a,O as d}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import{b as M,d as j}from"./orderApi-e08ea9a5-1782729249161v=1.0.0.js";import"./notData-926f7286-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";const G=()=>{R(),u([]),(async()=>{})(),u([]),(async()=>{})();const c=u([{prop:"name",label:"\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"}},{prop:"dictTypeSign",label:"\u5B57\u5178\u6807\u8BC6",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B57\u5178\u6807\u8BC6"}},{prop:"status",label:"\u72B6\u6001",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"}}]),m=u([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u540D\u79F0",prop:"name"},{label:"\u5B57\u5178\u6807\u8BC6",prop:"dictTypeSign"},{label:"\u72B6\u6001",prop:"status"},{label:"\u521B\u5EFA\u4EBA",prop:"creatorOrganUnitType"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:c,tableColumns:m,dataCallBack:r=>(r.listData.forEach(C=>{}),r),paramCallBack:r=>r}},K=G,Q=h({name:"orderIndex"}),W=h({...Q,setup(k){const p=U(),c=V(),{tableColumns:m,columns:_,dataCallBack:b,paramCallBack:r}=K(),{tableData:C,pageable:i,baseParam:X,searchParam:x,totalParam:Y,pageParam:ee,handleSizeChange:S,handleCurrentChange:z,getTableList:y,search:B,reset:O,loading:T}=$(M,b,r),w=()=>{p.push({name:"orderAdd"})},P=l=>{p.push({name:"orderDetail",query:{id:l.id}})},v=l=>{p.push({name:"orderEdit",query:{id:l.id}})},D=async l=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await I(j,{id:l.id},e),y()};return A(async()=>{await y()}),(l,e)=>{const H=s("HZSearchForm"),E=s("el-button"),g=s("el-link"),F=s("HZProTable"),Z=s("el-pagination"),L=s("HZPageLayout");return N(),J(L,{title:a(c).meta.title},{searchForm:t(()=>[o(H,{"search-param":a(x),columns:a(_),search:a(B),reset:a(O)},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[o(Z,{"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(S),onCurrentChange:a(z)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[o(F,{columns:a(m),data:a(C),isFlex:!1,loading:a(T)},{tableHeader:t(()=>e[2]||(e[2]=[])),toolButton:t(()=>[o(E,{type:"primary",onClick:w},{default:t(()=>e[3]||(e[3]=[d(" \u65B0\u589E ",-1)])),_:1,__:[3]})]),operation:t(n=>[o(g,{type:"primary",onClick:f=>P(n.row)},{default:t(()=>e[4]||(e[4]=[d(" \u67E5\u770B ",-1)])),_:2,__:[4]},1032,["onClick"]),o(g,{type:"primary",onClick:f=>v(n.row)},{default:t(()=>e[5]||(e[5]=[d(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"]),o(g,{type:"danger",onClick:f=>D(n.row)},{default:t(()=>e[6]||(e[6]=[d(" \u5220\u9664 ",-1)])),_:2,__:[6]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const ie=q(W,[["__scopeId","data-v-8b3973eb"]]);export{ie as default};
