business.5ce8735d.js 1.5 KB

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