import{_ as x,d as C,cU as k,m as l,cl as b,d1 as w,r as o,o as p,A as i,x as t,h as y,u as e,D as A,H as R,a as S}from"./index.e80c366d.js";import{s as n,c as B}from"./content.config.278ef041.js";import{u as D}from"./use-page-search.e3e95470.js";import{h as F}from"./export.6f50dc45.js";import"./createRequset.60472412.js";import"./xlsx.ed122d16.js";const s="backupWarehouse",N=C({__name:"all",setup(P){const{hasPermissionWithCode:u}=k(s),c=l(null),a=b(!1);w(),l(n);const m={pageSearchHook:()=>D(void 0,void 0,n)},f={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFail:()=>a.value=!1};async function _(){const r=c.value.getBasicParams()||{};await F({params:r,...f,isAdmin:!1,name:"\u5907\u5E93\u91C7\u8D2D\u5355.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/bkexport"})}return(r,E)=>{const h=o("el-button"),g=o("page-container"),d=o("page-auth");return p(),i(d,{"page-name":s},{default:t(()=>[y(g,{hooks:m,"page-name":s,"get-content-ref":v=>c.value=v,"content-config":e(B),"search-config":e(n)},{content_header:t(()=>[e(u)("9")?(p(),i(h,{key:0,onClick:_,size:"small",icon:e(A)("arrow-up-line"),type:"primary"},{default:t(()=>[R("\u5BFC\u51FA")]),_:1},8,["icon"])):S("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var q=x(N,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/backupWarehouse/components/all.vue"]]);export{q as default};
