import{_,d,aD as g,w as C,r as c,o as h,G as v,C as i,l as x,u as a,J as k,M as w}from"./index.1d5f2f42.js";import{c as y,s as l}from"./content.config.29d1d3f3.js";import{u as E}from"./use-page-search.5b2e253c.js";import{i as R}from"./isBeyondTime.8b05db81.js";import{h as P}from"./export.669edd93.js";import"./createRequset.a71f3020.js";const b=d({__name:"all",setup(B){const e=g(!1),n=C(null),p={pageSearchHook:()=>E(void 0,void 0,l)},u={onSuccess:()=>e.value=!1,onStart:()=>e.value=!0,onFail:()=>e.value=!1};async function f(){const o=n.value.getBasicParams()||{},{start_date:r,end_date:t}=o;R({start:r,end:t,len:30})||await P({fileType:"aplication/zip",name:"\u5DE5\u5DEE\u660E\u7EC6\u8868.zip",url:"saleexportsalediffexport",isPurchase:!0,...u,params:o})}return(o,r)=>{const t=c("el-button"),s=c("PageContainer");return h(),v(s,{hooks:p,getContentRef:m=>n.value=m,"content-config":a(y),"search-config":a(l)},{content_header:i(()=>[x(t,{onClick:f,size:"small",icon:a(k)("arrow-up-line"),type:"primary"},{default:i(()=>[w("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var N=_(b,[["__file","D:/work/rep-v3/report-v3/src/views/reportCollection/frontPoorWork/components/all.vue"]]);export{N as default};
