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