1 |
- import{_ as g,d as _,cl as h,m as d,r as a,o as v,A as F,x as r,h as x,u as t,D as B,H as k,ce as c}from"./index.56449854.js";import{s as y,c as E,h as w}from"./content.config.65d2f60f.js";import{h as A}from"./export.a2ce61c0.js";import{u as R}from"./use-page-search.59eb5443.js";import{u as b,a as P}from"./useBusinessQuery.e0e81f10.js";import"./xlsx.ed122d16.js";import"./lodash.0da4bba2.js";const S="relaComNo",N=_({__name:"business",setup(z){const o=h(!1),n=d(null),{searchConfig:s}=b({sourceConfig:y}),{contentConfig:u}=P({sourceConfig:E,apis:{httpList:w}}),i={pageSearchHook:()=>R(void 0,void 0,s)},l={onSuccess:()=>o.value=!1,onStart:()=>o.value=!0,onFail:()=>o.value=!1};async function p(){const e=n.value.getBasicParams()||{};if(!e.date){c.warning("\u8BF7\u9009\u62E9\u5BFC\u51FA\u6587\u4EF6\u7684\u65E5\u671F!");return}if(!e[S]){c.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}await A({url:"r_saleexportconsultdayexport",fileType:"aplication/zip",isPurchase:!0,name:"\u65E5\u62A5.zip",...l,params:e})}return(e,D)=>{const f=a("el-button"),m=a("PageContainer");return v(),F(m,{hooks:i,getContentRef:C=>n.value=C,"content-config":t(u),"search-config":t(s),lockKey:"relaComNo"},{content_header:r(()=>[x(f,{onClick:p,size:"small",icon:t(B)("arrow-up-line"),type:"primary"},{default:r(()=>[k("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var I=g(N,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/reportCollection/frontDaily/components/business.vue"]]);export{I as default};
|