import{_,d,cl as g,m as h,r as i,o as v,A as B,x as u,h as y,u as t,D as k,H as x,cc as R}from"./index.e80c366d.js";import{s as b,c as F}from"./content.config.db878452.js";import{u as w}from"./use-page-search.e3e95470.js";import{u as A,a as E}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:b}),{contentConfig:l}=E({sourceConfig:F,apis:{httpList:P("r_oom")},insertBusinessField:{index:3,name:"1",code:"0"}}),p={pageSearchHook:()=>w(void 0,void 0,a)},m={onSuccess:()=>o.value=!1,onStart:()=>o.value=!0,onFail:()=>o.value=!1};async function f(){const e=s.value.getBasicParams()||{},{start_date:r,end_date:n}=e;if(!e[D]){R.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}T({start:r,end:n,len:30})||await S({fileType:"aplication/zip",name:"\u9500\u552E\u8BA2\u5355\u5546\u54C1\u7C7B\u578B.zip",isPurchase:!0,url:"r_oome",...m,params:e})}return(e,r)=>{const n=i("el-button"),c=i("PageContainer");return v(),B(c,{hooks:p,getContentRef:C=>s.value=C,"content-config":t(l),"search-config":t(a),lockKey:"relaComNo"},{content_header:u(()=>[y(n,{onClick:f,size:"small",icon:t(k)("arrow-up-line"),type:"primary"},{default:u(()=>[x("\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/frontDeliveryDimension/components/business.vue"]]);export{$ as default};
