import{u as E}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{u as S}from"./useSchedule-f38d1706-1782572373740v=1.0.0.js";import{b as T,d as D}from"./orderApi-cb16cc88-1782572373740v=1.0.0.js";import{u as F}from"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import{u as H,a as V}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{y as A,al as s,z as N,A as O,R as r,J as n,O as i,u as a,M as m}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";const ae=A({__name:"ScheduleTable",props:{info:{}},emits:[],setup(R,{emit:$}){const u=H();V();const{tableColumns:g,columns:q,dataCallBack:C,paramCallBack:_}=S(),{tableData:c,pageable:l,baseParam:L,searchParam:U,totalParam:Z,pageParam:J,handleSizeChange:f,handleCurrentChange:b,getTableList:k,search:M,reset:j,loading:y}=E(T,C,_),z=()=>{u.push({name:"orderAdd"})},h=o=>{u.push({name:"orderDetail",query:{id:o.id}})},B=o=>{u.push({name:"orderEdit",query:{id:o.id}})},P=async o=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await F(D,{id:o.id},e),k()};return(o,e)=>{const v=s("el-button"),p=s("el-link"),w=s("HZProTable"),x=s("el-pagination");return N(),O("div",null,[r(w,{columns:a(g),data:a(c),isFlex:!1,loading:a(y)},{tableHeader:n(()=>e[2]||(e[2]=[])),toolButton:n(()=>[r(v,{type:"primary",onClick:z},{default:n(()=>e[3]||(e[3]=[i(" \u65B0\u589E ",-1)])),_:1,__:[3]})]),operation:n(t=>[r(p,{type:"primary",onClick:d=>h(t.row)},{default:n(()=>e[4]||(e[4]=[i(" \u67E5\u770B ",-1)])),_:2,__:[4]},1032,["onClick"]),r(p,{type:"primary",onClick:d=>B(t.row)},{default:n(()=>e[5]||(e[5]=[i(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"]),r(p,{type:"danger",onClick:d=>P(t.row)},{default:n(()=>e[6]||(e[6]=[i(" \u5220\u9664 ",-1)])),_:2,__:[6]},1032,["onClick"])]),_:1},8,["columns","data","loading"]),m(" <template #pagination> "),r(x,{"current-page":a(l).page,"onUpdate:currentPage":e[0]||(e[0]=t=>a(l).page=t),"page-size":a(l).size,"onUpdate:pageSize":e[1]||(e[1]=t=>a(l).size=t),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(l).count,onSizeChange:a(f),onCurrentChange:a(b)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"]),m(" </template> ")])}}});export{ae as default};
