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