business.6bf2c28c.js 1.6 KB

1
  1. import{_ as C,d as _,cl as d,m as h,r as i,o as v,A as k,x as u,h as x,u as n,D as y,H as B,ce as R}from"./index.56449854.js";import{s as b,c as E}from"./content.config.165101fe.js";import{u as w}from"./use-page-search.59eb5443.js";import{u as A,a as F}from"./useBusinessQuery.e0e81f10.js";import{c as S}from"./createRequset.5439599c.js";import{h as P}from"./export.a2ce61c0.js";import{i as T}from"./isBeyondTime.ddc44ee0.js";import"./lodash.0da4bba2.js";import"./xlsx.ed122d16.js";const N="relaComNo",z=_({__name:"business",setup(D){const o=d(!1),s=h(null),{searchConfig:a}=A({sourceConfig:b}),{contentConfig:l}=F({sourceConfig:E,apis:{httpList:S("r_saleexportgoodrankinglist")}}),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[N]){R.warning("\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8");return}T({start:r,end:t,len:30})||await P({fileType:"aplication/zip",url:"r_saleexportgoodrankinglistexport",name:"\u4EA7\u54C1\u70ED\u9500\u6392\u884C.zip",isPurchase:!0,...f,params:e})}return(e,r)=>{const t=i("el-button"),c=i("PageContainer");return v(),k(c,{hooks:p,getContentRef:g=>s.value=g,"content-config":n(l),"search-config":n(a),lockKey:"relaComNo"},{content_header:u(()=>[x(t,{onClick:m,size:"small",icon:n(y)("arrow-up-line"),type:"primary"},{default:u(()=>[B("\u5BFC\u51FA")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"])}}});var W=C(z,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/reportCollection/frontSellWell/components/business.vue"]]);export{W as default};