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