1 |
- import{_ as h,d as v,cl as F,m as x,r as c,o as y,A as B,x as l,h as b,u as r,D as k,H as A,ce as p}from"./index.56449854.js";import{s as E,c as R}from"./content.config.862aee05.js";import{u as w}from"./use-page-search.59eb5443.js";import{u as T,a as D}from"./useBusinessQuery.e0e81f10.js";import{c as N}from"./createRequset.5439599c.js";import{h as P}from"./export.a2ce61c0.js";import{i as f}from"./isBeyondTime.ddc44ee0.js";import"./lodash.0da4bba2.js";import"./xlsx.ed122d16.js";const S="relaComNo",z=v({__name:"business",setup(H){const a=F(!1),u=x(null),{searchConfig:i}=T({sourceConfig:E}),{contentConfig:m}=D({sourceConfig:R,apis:{httpList:N("r_saleexportnotout")}}),_={pageSearchHook:()=>w(void 0,void 0,i)},C={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFile:()=>a.value=!1};async function d(){const n=u.value.getBasicParams()||{},{start_date:s,end_date:e,start_arrive_date:o,end_arrive_date:t}=n;if(!n[S]){p.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}if(!o&&!t&&!s&&!e){p.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u79CD\u5BFC\u51FA\u6587\u4EF6\u7684\u65F6\u95F4\u533A\u95F4");return}o&&t&&f({start:o,end:t,len:30})||s&&e&&f({start:s,end:e,len:30})||await P({name:"\u672A\u53D1\u8D27\u62A5\u8868.zip",fileType:"aplication/zip",url:"r_saleexportnotoutexport",isPurchase:!0,...C,params:n})}return(n,s)=>{const e=c("el-button"),o=c("PageContainer");return y(),B(o,{hooks:_,getContentRef:t=>u.value=t,"content-config":r(m),"search-config":r(i),lockKey:"relaComNo"},{content_header:l(()=>[b(e,{onClick:d,size:"small",icon:r(k)("arrow-up-line"),type:"primary"},{default:l(()=>[A("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var G=h(z,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/reportCollection/frontNotDeliver/components/business.vue"]]);export{G as default};
|