1 |
- import{_ as d,d as g,aD as h,w as B,r as u,o as v,G as k,C as l,l as y,u as t,J as F,M as w,au as x}from"./index.1d5f2f42.js";import{s as R,c as b}from"./content.config.90c5721a.js";import{u as E}from"./use-page-search.5b2e253c.js";import{u as A,a as D}from"./useBusinessQuery.407c771e.js";import{c as S}from"./createRequset.a71f3020.js";import{h as P}from"./export.669edd93.js";import{i as T}from"./isBeyondTime.8b05db81.js";import"./lodash.f6259d7e.js";const N=g({__name:"business",setup(z){const s="relaComNo",o=h(!1),a=B(null),{searchConfig:r}=A({sourceConfig:R}),{contentConfig:p}=D({sourceConfig:b,apis:{httpList:S("r_popm")},insertBusinessField:{index:1,name:"1",code:"0"}}),f={pageSearchHook:()=>E(void 0,void 0,r,!1,s)},m={onSuccess:()=>o.value=!1,onStart:()=>o.value=!0,onFail:()=>o.value=!1};async function C(){const e=a.value.getBasicParams()||{},{start_date:c,end_date:n}=e;if(!e[s]){x.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}T({start:c,end:n,len:30})||await P({fileType:"aplication/zip",name:"\u4F9B\u5E94\u5546\u8D1F\u8D23\u4EBA\u91C7\u8D2D\u8BA2\u5355\u60C5\u51B5.zip",isPurchase:!0,url:"r_popme",...m,params:e})}return(e,c)=>{const n=u("el-button"),i=u("PageContainer");return v(),k(i,{hooks:f,getContentRef:_=>a.value=_,"content-config":t(p),"search-config":t(r),lockKey:"relaComNo"},{content_header:l(()=>[y(n,{onClick:C,size:"small",icon:t(F)("arrow-up-line"),type:"primary"},{default:l(()=>[w("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var L=d(N,[["__file","D:/work/rep-v3/report-v3/src/views/reportCollection/frontSupplierHead/components/business.vue"]]);export{L as default};
|