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