import{_,d,cl as C,m as g,r as c,o as h,A as v,x as i,h as x,u as n,D as B,H as k}from"./index.e80c366d.js";import{c as y,s as l}from"./content.config.a2c0b6b9.js";import{u as R}from"./use-page-search.e3e95470.js";import{i as b}from"./isBeyondTime.e174d920.js";import{h as w}from"./export.6f50dc45.js";import"./createRequset.bf5f5380.js";import"./xlsx.ed122d16.js";const A=d({__name:"all",setup(F){const e=C(!1),a=g(null),u={pageSearchHook:()=>R(void 0,void 0,l)},p={onSuccess:()=>e.value=!1,onStart:()=>e.value=!0,onFail:()=>e.value=!1};async function f(){const o=a.value.getBasicParams()||{},{start_date:r,end_date:t}=o;b({start:r,end:t,len:30})||await w({name:"\u4F9B\u5E94\u5546\u91C7\u8D2D\u8BA2\u5355\u60C5\u51B5.zip",fileType:"aplication/zip",isPurchase:!0,...p,url:"pome",params:o})}return(o,r)=>{const t=c("el-button"),s=c("PageContainer");return h(),v(s,{hooks:u,getContentRef:m=>a.value=m,"content-config":n(y),"search-config":n(l)},{content_header:i(()=>[x(t,{onClick:f,size:"small",icon:n(B)("arrow-up-line"),type:"primary"},{default:i(()=>[k("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var N=_(A,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/reportCollection/frontSupplierOrder/components/all.vue"]]);export{N as default};
