import{_ as d,d as v,m as a,cl as x,cp as y,cs 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 S}from"./index.56449854.js";import{s as D,c as E,a as P}from"./content.config.8e91e814.js";import{h as b}from"./export.a2ce61c0.js";import{u as w}from"./use-page-search.59eb5443.js";import{u as A,a as F}from"./useBusinessQuery.7bd11851.js";import"./tootip.9dcedb27.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";import"./lodash.0da4bba2.js";const N="logisticsDaily",q=v({__name:"business",setup(H){const t=a(null),o=x(!1),{hasPermissionWithCode:l}=y(N);k();const{searchConfig:s}=A({sourceConfig:D,queryField:"companyNo"});a(s);const{contentConfig:p}=F({sourceConfig:E,apis:{httpList:P.list}}),m={pageSearchHook:()=>w(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 b({isAdmin:!1,name:"\u7269\u6D41\u65E5\u62A5\u5E93\u5B58.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/GoodStockEveryDayExport",...f,params:n})}return(n,T)=>{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"])):S("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var $=d(q,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/logisticsDaily/components/business.vue"]]);export{$ as default};