business.164a9fc8.js 1.6 KB

1
  1. 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,ce as R}from"./index.56449854.js";import{s as b,c as F}from"./content.config.f95215ba.js";import{u as w}from"./use-page-search.59eb5443.js";import{u as A,a as E}from"./useBusinessQuery.e0e81f10.js";import{c as P}from"./createRequset.5439599c.js";import{h as S}from"./export.a2ce61c0.js";import{i as T}from"./isBeyondTime.ddc44ee0.js";import"./lodash.0da4bba2.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/89793/Desktop/projects/report-v3/src/views/reportCollection/frontDeliveryDimension/components/business.vue"]]);export{$ as default};