import{_ as m,d as F,m as g,cl as C,r as n,o as h,A as v,x as s,h as x,u as o,D as A,H as B,cc as r,S as E}from"./index.e80c366d.js";import{c as y,s as u}from"./content.config.7fa1ad75.js";import{h as D}from"./export.6f50dc45.js";import{u as k}from"./use-page-search.e3e95470.js";import"./xlsx.ed122d16.js";const w=F({__name:"all",setup(R){const a=g(null),t=C(!1),c={pageSearchHook:()=>k(void 0,void 0,u)},i={onSuccess:()=>t.value=!1,onStart:()=>t.value=!0,onFail:()=>t.value=!1};async function l(){const e=a.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 D({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:_=>a.value=_,"content-config":o(y),"search-config":o(u)},{content_header:s(()=>[x(p,{onClick:l,size:"small",icon:o(A)("arrow-up-line"),type:"primary"},{default:s(()=>[B("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var H=m(w,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/reportCollection/frontBidOrder/components/all.vue"]]);export{H as default};
