1 |
- import{_ as m,d as F,w as g,aD as C,r as n,o as h,G as v,C as s,l as w,u as o,J as x,M as B,au as r,Z as E}from"./index.1d5f2f42.js";import{c as y,s as u}from"./content.config.0ff1006a.js";import{h as A}from"./export.669edd93.js";import{u as D}from"./use-page-search.5b2e253c.js";const k=F({__name:"all",setup(R){const t=g(null),a=C(!1),c={pageSearchHook:()=>D(void 0,void 0,u)},i={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFail:()=>a.value=!1};async function l(){const e=t.value.getBasicParams()||{};if(!e.end_date||!e.start_date){r.warning("\u8BF7\u9009\u62E9\u5BFC\u51FA\u6587\u4EF6\u7684\u65F6\u95F4\u533A\u95F4!");return}if(E(e.end_date).diff(e.start_date,"days")>30){r.warning("\u5BFC\u51FA\u6587\u4EF6\u7684\u65F6\u95F4\u533A\u95F4\u4E0D\u80FD\u8D85\u8FC730\u5929");return}await A({url:"saleexportconsultinfoexport",fileType:"aplication/zip",name:"\u7ADE\u4EF7\u5355\u60C5\u51B5\u8868.zip",isPurchase:!0,...i,params:e})}return(e,f)=>{const p=n("el-button"),d=n("PageContainer");return h(),v(d,{hooks:c,getContentRef:_=>t.value=_,"content-config":o(y),"search-config":o(u)},{content_header:s(()=>[w(p,{onClick:l,size:"small",icon:o(x)("arrow-up-line"),type:"primary"},{default:s(()=>[B("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var M=m(k,[["__file","D:/work/rep-v3/report-v3/src/views/reportCollection/frontBidOrder/components/all.vue"]]);export{M as default};
|