business.389fc676.js 1.6 KB

1
  1. import{_ as C,d as g,cl as d,m as h,r as i,o as v,A as B,x as u,h as b,u as n,D as k,H as y,ce as E}from"./index.56449854.js";import{s as x,c as R}from"./content.config.a5aee67a.js";import{u as F}from"./use-page-search.59eb5443.js";import{u as w,a as A}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 N="relaComNo",z=g({__name:"business",setup(H){const o=d(!1),s=h(null),{searchConfig:a}=w({sourceConfig:x}),{contentConfig:l}=A({sourceConfig:R,apis:{httpList:P("r_sebo")}}),p={pageSearchHook:()=>F(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[N]){E.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}T({start:r,end:t,len:30})||await S({fileType:"aplication/zip",url:"r_seboe",name:"\u8BAE\u4EF7\u660E\u7EC6\u8868.zip",isPurchase:!0,...f,params:e})}return(e,r)=>{const t=i("el-button"),c=i("PageContainer");return v(),B(c,{hooks:p,getContentRef:_=>s.value=_,"content-config":n(l),"search-config":n(a),lockKey:"relaComNo"},{content_header:u(()=>[b(t,{onClick:m,size:"small",icon:n(k)("arrow-up-line"),type:"primary"},{default:u(()=>[y("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var $=C(z,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/reportCollection/frontBargain/components/business.vue"]]);export{$ as default};