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