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