all.19c9e38d.js 1.2 KB

1
  1. import{_,d,aD as C,w as g,r as c,o as h,G as v,C as i,l as B,u as n,J as k,M as w}from"./index.1d5f2f42.js";import{c as x,s as l}from"./content.config.17f66039.js";import{u as y}from"./use-page-search.5b2e253c.js";import{i as R}from"./isBeyondTime.8b05db81.js";import{h as b}from"./export.669edd93.js";import"./createRequset.a71f3020.js";const F=d({__name:"all",setup(P){const e=C(!1),a=g(null),u={pageSearchHook:()=>y(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;R({start:r,end:t,len:30})||await b({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(x),"search-config":n(l)},{content_header:i(()=>[B(t,{onClick:f,size:"small",icon:n(k)("arrow-up-line"),type:"primary"},{default:i(()=>[w("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var N=_(F,[["__file","D:/work/rep-v3/report-v3/src/views/reportCollection/frontSupplierOrder/components/all.vue"]]);export{N as default};