import{_ as h,d as v,cl as F,m as x,r as c,o as y,A as B,x as l,h as b,u as r,D as k,H as A,cc as p}from"./index.e80c366d.js";import{s as E,c as R}from"./content.config.626e31a9.js";import{u as w}from"./use-page-search.e3e95470.js";import{u as T,a as D}from"./useBusinessQuery.d9a57566.js";import{c as N}from"./createRequset.bf5f5380.js";import{h as P}from"./export.6f50dc45.js";import{i as f}from"./isBeyondTime.e174d920.js";import"./lodash.92db800d.js";import"./xlsx.ed122d16.js";const S="relaComNo",z=v({__name:"business",setup(H){const a=F(!1),u=x(null),{searchConfig:i}=T({sourceConfig:E}),{contentConfig:m}=D({sourceConfig:R,apis:{httpList:N("r_saleexportnotout")}}),_={pageSearchHook:()=>w(void 0,void 0,i)},C={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFile:()=>a.value=!1};async function d(){const n=u.value.getBasicParams()||{},{start_date:s,end_date:e,start_arrive_date:o,end_arrive_date:t}=n;if(!n[S]){p.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}if(!o&&!t&&!s&&!e){p.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u79CD\u5BFC\u51FA\u6587\u4EF6\u7684\u65F6\u95F4\u533A\u95F4");return}o&&t&&f({start:o,end:t,len:30})||s&&e&&f({start:s,end:e,len:30})||await P({name:"\u672A\u53D1\u8D27\u62A5\u8868.zip",fileType:"aplication/zip",url:"r_saleexportnotoutexport",isPurchase:!0,...C,params:n})}return(n,s)=>{const e=c("el-button"),o=c("PageContainer");return y(),B(o,{hooks:_,getContentRef:t=>u.value=t,"content-config":r(m),"search-config":r(i),lockKey:"relaComNo"},{content_header:l(()=>[b(e,{onClick:d,size:"small",icon:r(k)("arrow-up-line"),type:"primary"},{default:l(()=>[A("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var G=h(z,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/reportCollection/frontNotDeliver/components/business.vue"]]);export{G as default};
