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