business.eff4b90f.js 1.6 KB

1
  1. import{_,d,cl as g,m as h,r as i,o as B,A as v,x as u,h as k,u as t,D as x,H as y,cc as F}from"./index.0ae106f0.js";import{s as R,c as b}from"./content.config.3ab2535e.js";import{u as w}from"./use-page-search.dd23dee3.js";import{u as A,a as E}from"./useBusinessQuery.1852fae1.js";import{c as S}from"./createRequset.58a5d427.js";import{h as P}from"./export.e35d0526.js";import{i as T}from"./isBeyondTime.b8d8ab42.js";import"./lodash.7512ecb8.js";const D="relaComNo",N=d({__name:"business",setup(z){const o=g(!1),s=h(null),{searchConfig:a}=A({sourceConfig:R}),{contentConfig:l}=E({sourceConfig:b,apis:{httpList:S("r_pom")},insertBusinessField:{index:1,name:"1",code:"0"}}),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:n}=e;if(!e[D]){F.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}T({start:r,end:n,len:30})||await P({fileType:"aplication/zip",name:"\u4F9B\u5E94\u5546\u91C7\u8D2D\u8BA2\u5355\u60C5\u51B5.zip",isPurchase:!0,url:"r_pome",...f,params:e})}return(e,r)=>{const n=i("el-button"),c=i("PageContainer");return B(),v(c,{hooks:p,getContentRef:C=>s.value=C,"content-config":t(l),"search-config":t(a),lockKey:"relaComNo"},{content_header:u(()=>[k(n,{onClick:m,size:"small",icon:t(x)("arrow-up-line"),type:"primary"},{default:u(()=>[y("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var O=_(N,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/reportCollection/frontSupplierOrder/components/business.vue"]]);export{O as default};