import{_ as d,d as g,aD as h,w as v,r as u,o as B,G as y,C as l,l as k,u as t,J as w,M as x,au as R}from"./index.1d5f2f42.js";import{s as b,c as F}from"./content.config.726e7897.js";import{u as E}from"./use-page-search.5b2e253c.js";import{u as A,a as P}from"./useBusinessQuery.407c771e.js";import{c as S}from"./createRequset.a71f3020.js";import{h as T}from"./export.669edd93.js";import{i as D}from"./isBeyondTime.8b05db81.js";import"./lodash.f6259d7e.js";const N=g({__name:"business",setup(z){const s="relaComNo",o=h(!1),a=v(null),{searchConfig:r}=A({sourceConfig:b}),{contentConfig:f}=P({sourceConfig:F,apis:{httpList:S("r_oom")},insertBusinessField:{index:3,name:"1",code:"0"}}),p={pageSearchHook:()=>E(void 0,void 0,r,!1,s)},m={onSuccess:()=>o.value=!1,onStart:()=>o.value=!0,onFail:()=>o.value=!1};async function C(){const e=a.value.getBasicParams()||{},{start_date:i,end_date:n}=e;if(!e[s]){R.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}D({start:i,end:n,len:30})||await T({fileType:"aplication/zip",name:"\u9500\u552E\u8BA2\u5355\u5546\u54C1\u7C7B\u578B.zip",isPurchase:!0,url:"r_oome",...m,params:e})}return(e,i)=>{const n=u("el-button"),c=u("PageContainer");return B(),y(c,{hooks:p,getContentRef:_=>a.value=_,"content-config":t(f),"search-config":t(r),lockKey:"relaComNo"},{content_header:l(()=>[k(n,{onClick:C,size:"small",icon:t(w)("arrow-up-line"),type:"primary"},{default:l(()=>[x("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var L=d(N,[["__file","D:/work/rep-v3/report-v3/src/views/reportCollection/frontDeliveryDimension/components/business.vue"]]);export{L as default};
