import{_ as f,d as k,j as x,aa as y,u as C,eX as w,n as V,r,aw as D,o as n,A as a,y as s,c as b,F as h,z as B,eY as E,C as R,a as c,B as g,e as A,eZ as _}from"./index.js";const P={class:"h-[300px] w-full"},I=k({__name:"index",setup(L){const{query:i}=x(),m={invoiceRelation_collection:()=>_(()=>import("./index.d5b26e.js"),["assets/index.d5b26e.js","assets/index.js","assets/index.fdcfd7d9.css","assets/index.41007914.js","assets/invoice-modal.269d87.js","assets/index.c443965f.js","assets/index.71c4bb27.css","assets/xlsx.ed122d16.js","assets/index.96df42.js","assets/index.91bccc98.css","assets/execl-upload.d28cb458.js","assets/execl-upload.13f2c477.css","assets/index.9c129b93.js","assets/index.c23ff2.js","assets/index.f41222.js","assets/index.c3f0d3e0.css"]),unInvoiceRelation_collection:()=>_(()=>import("./index.973722.js"),["assets/index.973722.js","assets/index.js","assets/index.fdcfd7d9.css","assets/index.c502b05a.js","assets/invoice-modal.0046ab.js","assets/index.c443965f.js","assets/index.71c4bb27.css"])},l=y(()=>{const{collections:u}=C();return(u.purchase||[]).map(o=>({...o,component:w(m[o.menu_route])}))}),t=V(i.tab||l.value[0].menu_route);return(u,o)=>{const p=r("el-tab-pane"),d=r("el-tabs"),v=D("loading");return n(),a(d,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=e=>t.value=e),class:"bg-[#f4f7fc]"},{default:s(()=>[(n(!0),b(h,null,B(l.value,e=>(n(),a(p,{label:e.menu_name,name:e.menu_route,key:e.menu_route},{default:s(()=>[e.menu_route===t.value?(n(),a(E,{key:0},{default:s(()=>[e.menu_route===t.value?(n(),a(R(e.component),{key:0})):c("v-if",!0)]),fallback:s(()=>[g(A("div",P,null,512),[[v,!0]])]),_:2},1024)):c("v-if",!0)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])}}});var j=f(I,[["__file","D:/work/jiesuan/settle-vue3/src/views/supplyNew/purchaseCollection/index.vue"]]);export{j as default};
