1 |
- import{_ as C,d as g,cl as d,m as h,r as i,o as v,A as y,x as u,h as k,u as n,D as B,H as x,ce as F}from"./index.56449854.js";import{s as R,c as b}from"./content.config.5ed6a9d7.js";import{u as w}from"./use-page-search.59eb5443.js";import{u as D,a as E}from"./useBusinessQuery.e0e81f10.js";import{c as A}from"./createRequset.5439599c.js";import{h as P}from"./export.a2ce61c0.js";import{i as S}from"./isBeyondTime.ddc44ee0.js";import"./status.3ccd5ebb.js";import"./lodash.0da4bba2.js";import"./xlsx.ed122d16.js";const T="relaComNo",N=g({__name:"business",setup(z){const o=d(!1),s=h(null),{searchConfig:a}=D({sourceConfig:R}),{contentConfig:l}=E({sourceConfig:b,apis:{httpList:A("r_seoona")}}),p={pageSearchHook:()=>w(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}S({start:r,end:t,len:30})||await P({fileType:"aplication/zip",url:"r_seoonae",name:"\u5EF6\u65F6\u53D1\u8D27\u5355.zip",isPurchase:!0,...f,params:e})}return(e,r)=>{const t=i("el-button"),c=i("PageContainer");return v(),y(c,{hooks:p,getContentRef:_=>s.value=_,"content-config":n(l),"search-config":n(a),lockKey:"relaComNo"},{content_header:u(()=>[k(t,{onClick:m,size:"small",icon:n(B)("arrow-up-line"),type:"primary"},{default:u(()=>[x("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var G=C(N,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/reportCollection/frontDelayedDelivery/components/business.vue"]]);export{G as default};
|