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