business.4bf03ad7.js 1.6 KB

1
  1. import{_ as d,d as g,aE 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 x,M as R,av as b}from"./index.ab2ff1c1.js";import{s as w,c as E}from"./content.config.4650b893.js";import{u as F}from"./use-page-search.4260ed86.js";import{u as A,a as P}from"./useBusinessQuery.f006a727.js";import{c as S}from"./createRequset.726b970c.js";import{h as T}from"./export.7e0f69b6.js";import{i as N}from"./isBeyondTime.70a38c7d.js";import"./lodash.d3d1c65e.js";const z=g({__name:"business",setup(D){const s="relaComNo",o=h(!1),a=v(null),{searchConfig:r}=A({sourceConfig:w}),{contentConfig:p}=P({sourceConfig:E,apis:{httpList:S("r_oom")},insertBusinessField:{index:3,name:"1",code:"0"}}),f={pageSearchHook:()=>F(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]){b.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}N({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:f,getContentRef:_=>a.value=_,"content-config":t(p),"search-config":t(r),lockKey:"relaComNo"},{content_header:l(()=>[k(n,{onClick:C,size:"small",icon:t(x)("arrow-up-line"),type:"primary"},{default:l(()=>[R("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var J=d(z,[["__file","C:/Users/a/Desktop/projects/report-v3/src/views/reportCollection/frontDeliveryDimension/components/business.vue"]]);export{J as default};