all.ad47be3a.js 1.3 KB

1
  1. import{_,d,cl as C,m as g,r as c,o as h,A as v,x as i,h as B,u as n,D as x,H as k}from"./index.56449854.js";import{c as y,s as l}from"./content.config.f62e23ed.js";import{u as R}from"./use-page-search.59eb5443.js";import{i as A}from"./isBeyondTime.ddc44ee0.js";import{h as D}from"./export.a2ce61c0.js";import"./createRequset.5439599c.js";import"./xlsx.ed122d16.js";const F=d({__name:"all",setup(b){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:s,end_date:t}=o;A({start:s,end:t,len:30})||await D({name:"\u4F9B\u5E94\u5546\u8D1F\u8D23\u4EBA\u91C7\u8D2D\u8BA2\u5355\u60C5\u51B5.zip",fileType:"aplication/zip",isPurchase:!0,...p,url:"popme",params:o})}return(o,s)=>{const t=c("el-button"),r=c("PageContainer");return h(),v(r,{hooks:u,getContentRef:m=>a.value=m,"content-config":n(y),"search-config":n(l)},{content_header:i(()=>[B(t,{onClick:f,size:"small",icon:n(x)("arrow-up-line"),type:"primary"},{default:i(()=>[k("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var N=_(F,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/reportCollection/frontSupplierHead/components/all.vue"]]);export{N as default};