business.3b387188.js 1.6 KB

1
  1. import{_ as C,d,aD as h,w as v,r as u,o as x,G as B,C as l,l as k,u as n,J as y,M as w,au as R}from"./index.1d5f2f42.js";import{s as b,c as A}from"./content.config.65920b6a.js";import{u as E}from"./use-page-search.5b2e253c.js";import{u as F,a as S}from"./useBusinessQuery.407c771e.js";import{c as N}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 z=d({__name:"business",setup(q){const s="relaComNo",o=h(!1),a=v(null),{searchConfig:r}=F({sourceConfig:b}),{contentConfig:p}=S({sourceConfig:A,apis:{httpList:N("r_saleexportnotsigned")}}),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 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}T({start:c,end:t,len:30})||await P({fileType:"aplication/zip",url:"r_saleexportnotsignedexport",name:"\u672A\u7B7E\u6536\u62A5\u8868.zip",isPurchase:!0,...m,params:e})}return(e,c)=>{const t=u("el-button"),i=u("PageContainer");return x(),B(i,{hooks:f,getContentRef:_=>a.value=_,"content-config":n(p),"search-config":n(r),lockKey:"relaComNo"},{content_header:l(()=>[k(t,{onClick:g,size:"small",icon:n(y)("arrow-up-line"),type:"primary"},{default:l(()=>[w("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var L=C(z,[["__file","D:/work/rep-v3/report-v3/src/views/reportCollection/frontNotSign/components/business.vue"]]);export{L as default};