import{_ as g,d,aD as h,w as v,r as u,o as B,G as b,C as l,l as k,u as t,J as y,M as E,au as w}from"./index.1d5f2f42.js";import{s as R,c as x}from"./content.config.d2fdea1b.js";import{u as F}from"./use-page-search.5b2e253c.js";import{u as A,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 N}from"./isBeyondTime.8b05db81.js";import"./lodash.f6259d7e.js";const z=d({__name:"business",setup(q){const s="relaComNo",o=h(!1),a=v(null),{searchConfig:r}=A({sourceConfig:R}),{contentConfig:f}=P({sourceConfig:x,apis:{httpList:S("r_sebo")}}),p={pageSearchHook:()=>F(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]){w.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}N({start:c,end:n,len:30})||await T({fileType:"aplication/zip",url:"r_seboe",name:"\u8BAE\u4EF7\u660E\u7EC6\u8868.zip",isPurchase:!0,...m,params:e})}return(e,c)=>{const n=u("el-button"),i=u("PageContainer");return B(),b(i,{hooks:p,getContentRef:C=>a.value=C,"content-config":t(f),"search-config":t(r),lockKey:"relaComNo"},{content_header:l(()=>[k(n,{onClick:_,size:"small",icon:t(y)("arrow-up-line"),type:"primary"},{default:l(()=>[E("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var L=g(z,[["__file","D:/work/rep-v3/report-v3/src/views/reportCollection/frontBargain/components/business.vue"]]);export{L as default};
