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