import{d as B,r as c,v as E,l as I,C as L,a as l,o as O,i as U,e as o,b as r,u as e,m as j,H as F,I as H,j as q,_ as M}from"./index-8184dd63-1780045603901v=1.0.0.js";import{E as $}from"./index-1b521f19-1780045603901v=1.0.0.js";import{I as A}from"./IndexPagePro-13c09835-1780045603901v=1.0.0.js";import{u as G,P as J}from"./useTable-6673e486-1780045603901v=1.0.0.js";import{S as K}from"./index-a4b7c6d3-1780045603901v=1.0.0.js";import{f as Q}from"./index-59bbc758-1780045603901v=1.0.0.js";import{j as W}from"./areaSupply-2a8dcd36-1780045603901v=1.0.0.js";import"./common-5ba50e89-1780045603901v=1.0.0.js";import"./notData-5e24f986-1780045603901v=1.0.0.js";import"./sortable.esm-cb107890-1780045603901v=1.0.0.js";import"./useGetTagHook-d138769d-1780045603901v=1.0.0.js";import"./tagManage-1b66d64b-1780045603901v=1.0.0.js";import"./reportingYear-23c6c3e7-1780045603901v=1.0.0.js";import"./index-7b6cf23d-1780045603901v=1.0.0.js";const X=B({__name:"index",setup(Y){const{columns:d,tableColumns:_}=Q(),g=c(!0),{tableData:h,pageable:s,baseParam:i,searchParam:f,handleSizeChange:b,handleCurrentChange:v,getTableList:u,search:C,reset:S,totalParam:y,pageParam:x}=G(W),k=t=>(t.sport_project_id&&t.sport_project_id.length>0&&(t.sport_project_id=t.sport_project_id[t.sport_project_id.length-1]),t),z=()=>{C(k)},p=c(1),P=E(),T=I(()=>({param:{...y.value,...x.value}})),w=()=>{i.value.report_type=p.value,s.value.page=1,u()},V=t=>{P.push({name:"mSupplyTrainDetail",query:{edit_id:t.sports_train_report_id,report_type:p.value}})};return L(async()=>{i.value.report_type=1,await u()}),(t,a)=>{const m=l("el-tab-pane"),N=l("el-tabs"),D=l("el-button"),R=l("el-pagination");return O(),U(A,null,{tabSelect:o(()=>[r(N,{modelValue:e(p),"onUpdate:modelValue":a[0]||(a[0]=n=>j(p)?p.value=n:null),type:"card",class:"no_margin_tab",onTabChange:w},{default:o(()=>[r(m,{label:"\u5B9E\u9645\u60C5\u51B5",name:1}),r(m,{label:"\u8BA1\u5212\u5B89\u6392",name:2})]),_:1},8,["modelValue"])]),searchForm:o(()=>[F(r(K,{"search-param":e(f),columns:e(d),search:z,reset:e(S)},null,8,["search-param","columns","reset"]),[[H,e(g)]])]),pagination:o(()=>[r(R,{"current-page":e(s).page,"onUpdate:currentPage":a[1]||(a[1]=n=>e(s).page=n),"page-size":e(s).size,"onUpdate:pageSize":a[2]||(a[2]=n=>e(s).size=n),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(s).count,onSizeChange:e(b),onCurrentChange:e(v)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:o(()=>[r(J,{columns:e(_),data:e(h)},{tableHeader:o(()=>[...a[3]||(a[3]=[])]),toolButton:o(()=>[r($,{taskName:"sportsTrainReportListExport",class:"mr10 ml10",taskOption:e(T)},null,8,["taskOption"])]),operation:o(n=>[r(D,{type:"primary",link:"",onClick:Z=>V(n.row)},{default:o(()=>[...a[4]||(a[4]=[q("\u67E5\u770B",-1)])]),_:1},8,["onClick"])]),_:1},8,["columns","data"])]),_:1})}}}),_e=M(X,[["__file","D:/desktop/yunNan/vue-area-submit/src/views/manage/supply/train/index.vue"]]);export{_e as default};
