import{_,d,cl as g,m as h,r as i,o as B,A as v,x as u,h as k,u as n,D as x,H as y,cc as F}from"./index.e80c366d.js";import{s as R,c as b}from"./content.config.e4a0a7f2.js";import{u as A}from"./use-page-search.e3e95470.js";import{u as E,a as w}from"./useBusinessQuery.d9a57566.js";import{c as D}from"./createRequset.bf5f5380.js";import{h as S}from"./export.6f50dc45.js";import{i as P}from"./isBeyondTime.e174d920.js";import"./lodash.92db800d.js";import"./xlsx.ed122d16.js";const T="relaComNo",H=d({__name:"business",setup(N){const o=g(!1),s=h(null),{searchConfig:a}=E({sourceConfig:R}),{contentConfig:p}=w({sourceConfig:b,apis:{httpList:D("r_popm")},insertBusinessField:{index:1,name:"1",code:"0"}}),l={pageSearchHook:()=>A(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[T]){F.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}P({start:r,end:t,len:30})||await S({fileType:"aplication/zip",name:"\u4F9B\u5E94\u5546\u8D1F\u8D23\u4EBA\u91C7\u8D2D\u8BA2\u5355\u60C5\u51B5.zip",isPurchase:!0,url:"r_popme",...f,params:e})}return(e,r)=>{const t=i("el-button"),c=i("PageContainer");return B(),v(c,{hooks:l,getContentRef:C=>s.value=C,"content-config":n(p),"search-config":n(a),lockKey:"relaComNo"},{content_header:u(()=>[k(t,{onClick:m,size:"small",icon:n(x)("arrow-up-line"),type:"primary"},{default:u(()=>[y("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var $=_(H,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/reportCollection/frontSupplierHead/components/business.vue"]]);export{$ as default};
