import{_,d as C,cl as d,m as h,r as i,o as v,A as x,x as u,h as B,u as n,D as k,H as y,cc as R}from"./index.e80c366d.js";import{s as b,c as A}from"./content.config.ee6004ef.js";import{u as w}from"./use-page-search.e3e95470.js";import{u as E,a as F}from"./useBusinessQuery.d9a57566.js";import{c as S}from"./createRequset.bf5f5380.js";import{h as N}from"./export.6f50dc45.js";import{i as P}from"./isBeyondTime.e174d920.js";import"./lodash.92db800d.js";import"./xlsx.ed122d16.js";const T="relaComNo",z=C({__name:"business",setup(H){const o=d(!1),s=h(null),{searchConfig:a}=E({sourceConfig:b}),{contentConfig:l}=F({sourceConfig:A,apis:{httpList:S("r_saleexportnotsigned")}}),p={pageSearchHook:()=>w(void 0,void 0,a)},f={onSuccess:()=>o.value=!1,onStart:()=>o.value=!0,onFail:()=>o.value=!1};async function m(){const e=s.value.getBasicParams()||{},{start_date:r,end_date:t}=e;if(!e[T]){R.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}P({start:r,end:t,len:30})||await N({fileType:"aplication/zip",url:"r_saleexportnotsignedexport",name:"\u672A\u7B7E\u6536\u62A5\u8868.zip",isPurchase:!0,...f,params:e})}return(e,r)=>{const t=i("el-button"),c=i("PageContainer");return v(),x(c,{hooks:p,getContentRef:g=>s.value=g,"content-config":n(l),"search-config":n(a),lockKey:"relaComNo"},{content_header:u(()=>[B(t,{onClick:m,size:"small",icon:n(k)("arrow-up-line"),type:"primary"},{default:u(()=>[y("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var $=_(z,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/reportCollection/frontNotSign/components/business.vue"]]);export{$ as default};
