all.2ba5ea31.js 1.3 KB

1
  1. import{_,d,aE as g,w as C,r as c,o as h,G as v,C as l,l as x,u as n,J as k,M as y}from"./index.26d13061.js";import{c as R,s as i}from"./content.config.5d9e0e3a.js";import{u as w}from"./use-page-search.0d4b99ba.js";import{i as b}from"./isBeyondTime.7ef0c997.js";import{h as B}from"./export.d2080dab.js";import"./createRequset.eadc234f.js";const E=d({__name:"all",setup(P){const e=g(!1),a=C(null),p={pageSearchHook:()=>w(void 0,void 0,i)},u={onSuccess:()=>e.value=!1,onStart:()=>e.value=!0,onFail:()=>e.value=!1};async function f(){const o=a.value.getBasicParams()||{},{start_date:s,end_date:t}=o;b({start:s,end:t,len:30})||await B({fileType:"aplication/zip",name:"\u4EA7\u54C1\u70ED\u9500\u6392\u884C.zip",url:"saleexportgoodrankinglistexport",isPurchase:!0,...u,params:o})}return(o,s)=>{const t=c("el-button"),r=c("PageContainer");return h(),v(r,{hooks:p,getContentRef:m=>a.value=m,"content-config":n(R),"search-config":n(i)},{content_header:l(()=>[x(t,{onClick:f,size:"small",icon:n(k)("arrow-up-line"),type:"primary"},{default:l(()=>[y("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var N=_(E,[["__file","C:/Users/a/Desktop/projects/report-v3/src/views/reportCollection/frontSellWell/components/all.vue"]]);export{N as default};