import{d as H,r as c,l as L,v as U,C as $,a as d,o as F,i as G,e as t,b as o,u as a,m as j,H as A,I as M,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{E as X}from"./index-1b521f19-1780045603901v=1.0.0.js";import{S as Y}from"./index-a4b7c6d3-1780045603901v=1.0.0.js";import{u as Z}from"./useHandleData-5092af5e-1780045603901v=1.0.0.js";import{c as ee,g as v}from"./index-59bbc758-1780045603901v=1.0.0.js";import{e as ae,x 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=H({__name:"index",setup(re){const{columns:f,tableColumns:p}=ee(),C=c(!0),{tableData:z,pageable:l,baseParam:_,searchParam:k,handleSizeChange:h,handleCurrentChange:S,getTableList:g,search:w,reset:x,totalParam:P,pageParam:D}=Q(ae),n=c(1),O=L(()=>({param:{...P.value,...D.value}})),m=U(),V=()=>{_.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"),g()},E=()=>{m.push({name:"sSupplyOrganizingEdit",query:{report_type:n.value}})},T=i=>{m.push({name:"sSupplyOrganizingDetail",query:{edit_id:i.group_organization_report_id,report_type:n.value}})},N=i=>{m.push({name:"sSupplyOrganizingEdit",query:{edit_id:i.group_organization_report_id,report_type:n.value}})},R=async i=>{let e="\u5220\u9664\u5F53\u524D\u586B\u62A5\u6570\u636E";await Z(te,{group_organization_report_id:i.group_organization_report_id},e),g()},q=()=>{m.push({name:"importData",query:{title:"\u56E2\u4F53\u7EC4\u7EC7\u586B\u62A5\u5BFC\u5165",type:"group",report_type:n.value}})};return $(async()=>{_.value.report_type=1,await g()}),(i,e)=>{const y=d("el-tab-pane"),B=d("el-tabs"),s=d("el-button"),I=d("el-pagination");return F(),G(K,null,{tabSelect:t(()=>[o(B,{modelValue:a(n),"onUpdate:modelValue":e[0]||(e[0]=r=>j(n)?n.value=r:null),type:"card",class:"no_margin_tab",onTabChange:V},{default:t(()=>[o(y,{label:"\u5B9E\u9645\u60C5\u51B5",name:1}),o(y,{label:"\u8BA1\u5212\u5B89\u6392",name:2})]),_:1},8,["modelValue"])]),searchForm:t(()=>[A(o(Y,{"search-param":a(k),columns:a(f),search:a(w),reset:a(x)},null,8,["search-param","columns","search","reset"]),[[M,a(C)]])]),pagination:t(()=>[o(I,{"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(h),onCurrentChange:a(S)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:t(()=>[o(W,{columns:a(p),data:a(z)},{tableHeader:t(()=>[...e[3]||(e[3]=[])]),toolButton:t(()=>[o(s,{type:"primary",onClick:E},{default:t(()=>[...e[4]||(e[4]=[u("\u65B0\u589E",-1)])]),_:1}),o(X,{taskName:"groupOrganizationReportListExport",class:"mr10 ml10",taskOption:a(O)},null,8,["taskOption"]),o(s,{onClick:q},{default:t(()=>[...e[5]||(e[5]=[u("\u5BFC\u5165",-1)])]),_:1})]),operation:t(r=>[o(s,{type:"primary",link:"",onClick:b=>T(r.row)},{default:t(()=>[...e[6]||(e[6]=[u("\u67E5\u770B",-1)])]),_:1},8,["onClick"]),o(s,{type:"primary",link:"",onClick:b=>N(r.row),disabled:a(v)(r.row)},{default:t(()=>[...e[7]||(e[7]=[u("\u7F16\u8F91",-1)])]),_:1},8,["onClick","disabled"]),o(s,{type:"primary",link:"",onClick:b=>R(r.row),disabled:a(v)(r.row)},{default:t(()=>[...e[8]||(e[8]=[u("\u5220\u9664",-1)])]),_:1},8,["onClick","disabled"])]),_:1},8,["columns","data"])]),_:1})}}}),Ce=J(oe,[["__file","D:/desktop/yunNan/vue-area-submit/src/views/stadium/supply/organizing/index.vue"]]);export{Ce as default};
