import{_ as g,d as F,aD as h,w as v,r,o as B,G as E,C as i,l as w,u as t,J as y,M as A,au as a,Z as x}from"./index.1d5f2f42.js";import{s as k,c as D,h as R}from"./content.config.0ff1006a.js";import{h as b}from"./export.669edd93.js";import{u as P}from"./use-page-search.5b2e253c.js";import{u as S,a as z}from"./useBusinessQuery.407c771e.js";import"./lodash.f6259d7e.js";const N=F({__name:"business",setup(L){const o=h(!1),s=v(null),n="relaComNo",{searchConfig:u}=S({sourceConfig:k}),{contentConfig:c}=z({sourceConfig:D,apis:{httpList:R}}),f={pageSearchHook:()=>P(void 0,void 0,u,!1,n)},l={onSuccess:()=>o.value=!1,onStart:()=>o.value=!0,onFail:()=>o.value=!1};async function p(){const e=s.value.getBasicParams()||{};if(!e.start_date&&!e.end_date){a.warning("\u8BF7\u9009\u62E9\u5BFC\u51FA\u6587\u4EF6\u7684\u65F6\u95F4\u533A\u95F4!");return}if(x(e.end_date).diff(e.start_date,"days")>30){a.warning("\u8BF7\u9009\u62E9\u5BFC\u51FA\u6587\u4EF6\u7684\u65F6\u95F4\u533A\u95F4\u4E0D\u80FD\u8D85\u8FC730\u5929!");return}if(!e[n]){a.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}await b({url:"r_saleexportconsultinfoexport",fileType:"aplication/zip",isPurchase:!0,name:"\u7ADE\u4EF7\u5355\u62A5\u8868.zip",...l,params:e})}return(e,m)=>{const C=r("el-button"),_=r("PageContainer");return B(),E(_,{hooks:f,lockKey:n,getContentRef:d=>s.value=d,"content-config":t(c),"search-config":t(u)},{content_header:i(()=>[w(C,{onClick:p,size:"small",icon:t(y)("arrow-up-line"),type:"primary"},{default:i(()=>[A("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var H=g(N,[["__file","D:/work/rep-v3/report-v3/src/views/reportCollection/frontBidOrder/components/business.vue"]]);export{H as default};
