import{_ as m,d as _,m as g,cl as h,r as n,o as C,A as d,x as s,h as v,u as t,D as x,H as F,cc as k}from"./index.e80c366d.js";import{c as E,s as r}from"./content.config.8eb809d7.js";import{h as R}from"./export.6f50dc45.js";import{u as w}from"./use-page-search.e3e95470.js";import"./xlsx.ed122d16.js";const y=_({__name:"all",setup(A){const a=g(null),e=h(!1),c={pageSearchHook:()=>w(void 0,void 0,r)},l={onStart:()=>e.value=!0,onSuccess:()=>e.value=!1,onFail:()=>e.value=!1};async function u(){const o=a.value.getBasicParams()||{};if(!o.date){k.warning("\u8BF7\u9009\u62E9\u5BFC\u51FA\u6587\u4EF6\u7684\u65E5\u671F!");return}await R({url:"saleexportconsultdayexport",fileType:"aplication/zip",isPurchase:!0,name:"\u65E5\u62A5.zip",...l,params:o})}return(o,B)=>{const i=n("el-button"),p=n("PageContainer");return C(),d(p,{hooks:c,getContentRef:f=>a.value=f,"content-config":t(E),"search-config":t(r)},{content_header:s(()=>[v(i,{onClick:u,size:"small",icon:t(x)("arrow-up-line"),type:"primary"},{default:s(()=>[F("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var H=m(y,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/reportCollection/frontDaily/components/all.vue"]]);export{H as default};
