import{d as L,r as y,l as O,v as U,C as $,a as d,o as A,i as F,e as t,b as o,u as a,m as j,H as M,I as G,j as u,_ as J}from"./index-8184dd63-1780045603901v=1.0.0.js";import{I as K}from"./IndexPagePro-13c09835-1780045603901v=1.0.0.js";import{u as Q,P as W}from"./useTable-6673e486-1780045603901v=1.0.0.js";import{S as X}from"./index-a4b7c6d3-1780045603901v=1.0.0.js";import{E as Y}from"./index-1b521f19-1780045603901v=1.0.0.js";import{u as Z}from"./useHandleData-5092af5e-1780045603901v=1.0.0.js";import{d as ee,g as f}from"./index-59bbc758-1780045603901v=1.0.0.js";import{h as ae,A as te}from"./areaSupply-2a8dcd36-1780045603901v=1.0.0.js";import"./notData-5e24f986-1780045603901v=1.0.0.js";import"./sortable.esm-cb107890-1780045603901v=1.0.0.js";import"./common-5ba50e89-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 oe=L({__name:"index",setup(re){const{columns:h,tableColumns:p}=ee(),v=y(!0),{tableData:C,pageable:l,baseParam:_,searchParam:S,handleSizeChange:k,handleCurrentChange:w,getTableList:c,search:x,reset:z,totalParam:P,pageParam:D}=Q(ae),n=y(1),V=O(()=>({param:{...P.value,...D.value}})),m=U(),E=()=>{_.value.report_type=n.value,l.value.page=1,n.value==1&&(p.value[1].label="\u586B\u62A5\u5E74\u5EA6",p.value[1].prop="reporting_year"),n.value==2&&(p.value[1].label="\u8BA1\u5212\u5E74\u5EA6",p.value[1].prop="plan_year"),c()},T=()=>{m.push({name:"sSupplySchoolEdit",query:{report_type:n.value}})},B=s=>{m.push({name:"sSupplySchoolDetail",query:{edit_id:s.school_benefit_report_id,report_type:n.value}})},N=s=>{m.push({name:"sSupplySchoolEdit",query:{edit_id:s.school_benefit_report_id,report_type:n.value}})},R=async s=>{let e="\u5220\u9664\u5F53\u524D\u586B\u62A5\u6570\u636E";await Z(te,{school_benefit_report_id:s.school_benefit_report_id},e),c()},q=()=>{m.push({name:"importData",query:{title:"\u5B66\u6821\u53D7\u76CA\u586B\u62A5\u5BFC\u5165",type:"school",report_type:n.value}})};return $(async()=>{_.value.report_type=1,await c()}),(s,e)=>{const b=d("el-tab-pane"),I=d("el-tabs"),i=d("el-button"),H=d("el-pagination");return A(),F(K,null,{tabSelect:t(()=>[o(I,{modelValue:a(n),"onUpdate:modelValue":e[0]||(e[0]=r=>j(n)?n.value=r:null),type:"card",class:"no_margin_tab",onTabChange:E},{default:t(()=>[o(b,{label:"\u5B9E\u9645\u60C5\u51B5",name:1}),o(b,{label:"\u8BA1\u5212\u5B89\u6392",name:2})]),_:1},8,["modelValue"])]),searchForm:t(()=>[M(o(X,{"search-param":a(S),columns:a(h),search:a(x),reset:a(z)},null,8,["search-param","columns","search","reset"]),[[G,a(v)]])]),pagination:t(()=>[o(H,{"current-page":a(l).page,"onUpdate:currentPage":e[1]||(e[1]=r=>a(l).page=r),"page-size":a(l).size,"onUpdate:pageSize":e[2]||(e[2]=r=>a(l).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(l).count,onSizeChange:a(k),onCurrentChange:a(w)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:t(()=>[o(W,{columns:a(p),data:a(C)},{tableHeader:t(()=>[...e[3]||(e[3]=[])]),toolButton:t(()=>[o(i,{type:"primary",onClick:T},{default:t(()=>[...e[4]||(e[4]=[u("\u65B0\u589E",-1)])]),_:1}),o(Y,{taskName:"schoolBenefitReportListExport",class:"mr10 ml10",taskOption:a(V)},null,8,["taskOption"]),o(i,{onClick:q},{default:t(()=>[...e[5]||(e[5]=[u("\u5BFC\u5165",-1)])]),_:1})]),operation:t(r=>[o(i,{type:"primary",link:"",onClick:g=>B(r.row)},{default:t(()=>[...e[6]||(e[6]=[u("\u67E5\u770B",-1)])]),_:1},8,["onClick"]),o(i,{type:"primary",link:"",onClick:g=>N(r.row),disabled:a(f)(r.row)},{default:t(()=>[...e[7]||(e[7]=[u("\u7F16\u8F91",-1)])]),_:1},8,["onClick","disabled"]),o(i,{type:"primary",link:"",onClick:g=>R(r.row),disabled:a(f)(r.row)},{default:t(()=>[...e[8]||(e[8]=[u("\u5220\u9664",-1)])]),_:1},8,["onClick","disabled"])]),_:1},8,["columns","data"])]),_:1})}}}),ve=J(oe,[["__file","D:/desktop/yunNan/vue-area-submit/src/views/stadium/supply/school/index.vue"]]);export{ve as default};
