import{_ as v,d as F,aD as y,w as B,r as l,o as x,G as b,C as f,l as k,u as r,J as w,M as A,au as p}from"./index.1d5f2f42.js";import{s as E,c as R}from"./content.config.9ea76699.js";import{u as T}from"./use-page-search.5b2e253c.js";import{u as D,a as N}from"./useBusinessQuery.407c771e.js";import{c as P}from"./createRequset.a71f3020.js";import{h as S}from"./export.669edd93.js";import{i as m}from"./isBeyondTime.8b05db81.js";import"./lodash.f6259d7e.js";const z=F({__name:"business",setup(q){const u="relaComNo",a=y(!1),i=B(null),{searchConfig:c}=D({sourceConfig:E}),{contentConfig:_}=N({sourceConfig:R,apis:{httpList:P("r_saleexportnotout")}}),C={pageSearchHook:()=>T(void 0,void 0,c,!1,u)},d={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFile:()=>a.value=!1};async function g(){const n=i.value.getBasicParams()||{},{start_date:s,end_date:e,start_arrive_date:o,end_arrive_date:t}=n;if(!n[u]){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&&m({start:o,end:t,len:30})||s&&e&&m({start:s,end:e,len:30})||await S({name:"\u672A\u53D1\u8D27\u62A5\u8868.zip",fileType:"aplication/zip",url:"r_saleexportnotoutexport",isPurchase:!0,...d,params:n})}return(n,s)=>{const e=l("el-button"),o=l("PageContainer");return x(),b(o,{hooks:C,getContentRef:t=>i.value=t,"content-config":r(_),"search-config":r(c),lockKey:"relaComNo"},{content_header:f(()=>[k(e,{onClick:g,size:"small",icon:r(w)("arrow-up-line"),type:"primary"},{default:f(()=>[A("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var $=v(z,[["__file","D:/work/rep-v3/report-v3/src/views/reportCollection/frontNotDeliver/components/business.vue"]]);export{$ as default};
