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