ToBeDone-0b78afca.js 2.7 KB

1
  1. import D,{__tla as P}from"./ToBeDoneDialog-96b6fdd9.js";import{az as l,d as S,u as B,y as O,e as U,r as b,b as L,o,c as p,B as c,a as s,E as T,D as q,a2 as W,aG as A,f as E,F,__tla as G}from"./index-4a4d6d33.js";import{c as r,__tla as I}from"./permission-9ac8d393.js";import{_ as R}from"./_plugin-vue_export-helper-1b428a4d.js";let y,z,k,C,H=Promise.all([(()=>{try{return P}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return I}catch{}})()]).then(async()=>{let n,u,_,m,d;n=async()=>await l.get({url:"/sale/merchant-apply/getMerchantApplyCount"}),u=async()=>await l.get({url:"/product/spu-apply/getSpuTotal"}),C=async f=>await l.get({url:"/trade/order/getOrderCountWithMoney",params:f}),z=async()=>await l.get({url:"/distri/consumption-top-up-log/ptTopUpWithUserTopUpList"}),_={class:"mr-10px folder folder-close"},m={class:"mr-10px folder folder-close"},d={key:2,style:{display:"flex","justify-content":"center"}},y=R(S({__name:"ToBeDone",setup(f,{expose:M}){const{push:g}=B(),j=O(),h=U(()=>j.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)},i=()=>{r(["sale:merchant-apply:query"])&&r(["product:spu:query"])?Promise.all([n(),u()]).then(e=>{t.value.\u5F85\u5BA1\u6838\u5546\u6237=e[0],t.value.\u5F85\u5BA1\u6838\u5546\u54C1=e[1]}):r(["sale:merchant-apply:query"])?n().then(e=>{t.value.\u5F85\u5BA1\u6838\u5546\u6237=e}):r(["product:spu:query"])&&u().then(e=>{t.value.\u5F85\u5BA1\u6838\u5546\u54C1=e})};return M({getList:i}),L(()=>{i()}),(e,a)=>(o(),p(F,null,[c("div",{style:A({height:s(h)?"80px":"250px"})},[s(r)(["sale:merchant-apply:query"])?(o(),p("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]=w=>x("\u5F85\u5BA1\u6838\u5546\u6237"))},[c("span",_,T(s(t).\u5F85\u5BA1\u6838\u5546\u6237),1),q(" \u5F85\u5BA1\u6838\u5546\u6237 ")])):W("",!0),s(r)(["product:spu:query"])?(o(),p("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]=w=>x("\u5F85\u5BA1\u6838\u5546\u54C1"))},[c("span",m,T(s(t).\u5F85\u5BA1\u6838\u5546\u54C1),1),q(" \u5F85\u5BA1\u6838\u5546\u54C1 ")])):(o(),p("p",d," \u65E0\u5F85\u529E\u4E8B\u9879 "))],4),E(D,{ref_key:"ToBeDoneDialogRef",ref:v,onClose:i},null,512)],64))}}),[["__scopeId","data-v-45cba289"]]),k=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"}))});export{y as T,H as __tla,z as a,k as b,C as g};