1 |
- import{aA as i,d as j,u as B,y as M,e as P,r as b,b as S,o as s,c as o,B as c,a as r,E as k,D as q,a3 as O,aH as A,f as H,F as E,_ as F,__tla as I}from"./index-54aa57d8.js";import L,{__tla as R}from"./ToBeDoneDialog-b68b33a0.js";import{c as l,__tla as W}from"./permission-1c0fa4cd.js";let y,z,D,G=Promise.all([(()=>{try{return I}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return W}catch{}})()]).then(async()=>{let n,p,_,m,d;n=async()=>await i.get({url:"/sale/merchant-apply/getMerchantApplyCount"}),p=async()=>await i.get({url:"/product/spu-apply/getSpuTotal"}),D=async f=>await i.get({url:"/trade/order/getOrderCountWithMoney",params:f}),_={class:"mr-10px folder folder-close"},m={class:"mr-10px folder folder-close"},d={key:2,style:{display:"flex","justify-content":"center"}},y=F(j({__name:"ToBeDone",setup(f,{expose:T}){const{push:g}=B(),w=M(),h=P(()=>w.getMobile),v=b(),t=b({\u5F85\u5BA1\u6838\u5546\u6237:0,\u5F85\u5BA1\u6838\u5546\u54C1:0}),x=e=>{var a;h.value?e=="\u5F85\u5BA1\u6838\u5546\u6237"?g({name:"Merchant",query:{openType:"tobedone"}}):e=="\u5F85\u5BA1\u6838\u5546\u54C1"&&g({name:"ProductSpu"}):(a=v.value)==null||a.open(e)},u=()=>{l(["sale:merchant-apply:query"])&&l(["product:spu:query"])?Promise.all([n(),p()]).then(e=>{t.value.\u5F85\u5BA1\u6838\u5546\u6237=e[0],t.value.\u5F85\u5BA1\u6838\u5546\u54C1=e[1]}):l(["sale:merchant-apply:query"])?n().then(e=>{t.value.\u5F85\u5BA1\u6838\u5546\u6237=e}):l(["product:spu:query"])&&p().then(e=>{t.value.\u5F85\u5BA1\u6838\u5546\u54C1=e})};return T({getList:u}),S(()=>{u()}),(e,a)=>(s(),o(E,null,[c("div",{style:A({height:r(h)?"80px":"250px"})},[r(l)(["sale:merchant-apply:query"])?(s(),o("p",{key:0,style:{display:"flex","align-items":"center",position:"relative",color:"#606266","font-size":"var(--el-font-size-base)",margin:"0",cursor:"pointer"},onClick:a[0]||(a[0]=C=>x("\u5F85\u5BA1\u6838\u5546\u6237"))},[c("span",_,k(r(t).\u5F85\u5BA1\u6838\u5546\u6237),1),q(" \u5F85\u5BA1\u6838\u5546\u6237 ")])):O("",!0),r(l)(["product:spu:query"])?(s(),o("p",{key:1,style:{display:"flex","align-items":"center",position:"relative",color:"#606266","font-size":"var(--el-font-size-base)",margin:"4px 0 0",cursor:"pointer"},onClick:a[1]||(a[1]=C=>x("\u5F85\u5BA1\u6838\u5546\u54C1"))},[c("span",m,k(r(t).\u5F85\u5BA1\u6838\u5546\u54C1),1),q(" \u5F85\u5BA1\u6838\u5546\u54C1 ")])):(s(),o("p",d," \u65E0\u5F85\u529E\u4E8B\u9879 "))],4),H(L,{ref_key:"ToBeDoneDialogRef",ref:v,onClose:u},null,512)],64))}}),[["__scopeId","data-v-a0688993"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/Home/components/ToBeDone.vue"]]),z=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"}))});export{y as T,G as __tla,z as a,D as g};
|