OperationDataCard-e8d2e917.js 2.7 KB

1
  1. import{ap as y,d as w,u as x,f as g,B as k,o as t,l as S,w as c,i as n,a as i,g as d,c as m,F as A,k as N,t as P,_ as W,__tla as C}from"./index-af173888.js";import{E as U,__tla as O}from"./el-card-178b9654.js";import{_ as D,__tla as T}from"./CountTo-91235812.js";import{a as F,__tla as B}from"./spu-41f2bf16.js";import{g as I,__tla as R}from"./trade-22d0cc3f.js";import{C as j,__tla as z}from"./CardTitle-2870e669.js";import{__tla as E}from"./formatTime-8a6f6c49.js";let p,H=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return E}catch{}})()]).then(async()=>{let l,u,o;l={class:"flex flex-row flex-wrap items-center gap-8 p-4"},u=["onClick"],o={class:"text-center"},p=W(w({name:"OperationDataCard",__name:"OperationDataCard",setup(X){const _=x(),e=g({orderUndelivered:{name:"\u5F85\u53D1\u8D27\u8BA2\u5355",value:9,routerName:"TradeOrder"},orderAfterSaleApply:{name:"\u9000\u6B3E\u4E2D\u8BA2\u5355",value:4,routerName:"TradeAfterSale"},orderWaitePickUp:{name:"\u5F85\u6838\u9500\u8BA2\u5355",value:0,routerName:"TradeOrder"},productAlertStock:{name:"\u5E93\u5B58\u9884\u8B66",value:0,routerName:"ProductSpu"},productForSale:{name:"\u4E0A\u67B6\u5546\u54C1",value:0,routerName:"ProductSpu"},productInWarehouse:{name:"\u4ED3\u5E93\u5546\u54C1",value:0,routerName:"ProductSpu"},withdrawAuditing:{name:"\u63D0\u73B0\u5F85\u5BA1\u6838",value:0,routerName:"TradeBrokerageWithdraw"},rechargePrice:{name:"\u8D26\u6237\u5145\u503C",value:0,prefix:"\uFFE5",decimals:2,routerName:"PayWalletRecharge"}}),v=async()=>{const a=await(async()=>await y.get({url:"/statistics/pay/summary"}))();e.rechargePrice.value=a.rechargePrice};return k(()=>{(async()=>{const a=await I();e.orderUndelivered.value=a.undelivered,e.orderAfterSaleApply.value=a.afterSaleApply,e.orderWaitePickUp.value=a.pickUp,e.withdrawAuditing.value=a.auditingWithdraw})(),(async()=>{const a=await F();e.productForSale.value=a[0],e.productInWarehouse.value=a[1],e.productAlertStock.value=a[3]})(),v()}),(a,b)=>{const f=D,h=U;return t(),S(h,{shadow:"never"},{header:c(()=>[n(i(j),{title:"\u8FD0\u8425\u6570\u636E"})]),default:c(()=>[d("div",l,[(t(!0),m(A,null,N(i(e),r=>(t(),m("div",{key:r.name,class:"h-20 w-20% flex flex-col cursor-pointer items-center justify-center gap-2",onClick:q=>{return s=r.routerName,void _.push({name:s});var s}},[n(f,{prefix:r.prefix,"end-val":r.value,decimals:r.decimals,class:"text-3xl"},null,8,["prefix","end-val","decimals"]),d("span",o,P(r.name),1)],8,u))),128))])]),_:1})}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/home/components/OperationDataCard.vue"]])});export{H as __tla,p as default};