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