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