import w,{__tla as P}from"./ToBeDoneDialog-da55fbc6.js";import{az as l,d as S,u as O,y as U,e as B,r as b,b as G,o,c as p,C as c,a as s,G as T,E as q,D as L,aG as W,f as A,F as E,__tla as F}from"./index-92ad187a.js";import{c as r,__tla as I}from"./permission-48011eea.js";import{_ as R}from"./_plugin-vue_export-helper-1b428a4d.js";let y,C,k,z,H=Promise.all([(()=>{try{return P}catch{}})(),(()=>{try{return F}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"}),z=async f=>await l.get({url:"/trade/order/getOrderCountWithMoney",params:f}),C=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:D}){const{push:g}=O(),M=U(),h=B(()=>M.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 D({getList:i}),G(()=>{i()}),(e,a)=>(o(),p(E,null,[c("div",{style:W({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]=j=>x("\u5F85\u5BA1\u6838\u5546\u6237"))},[c("span",_,T(s(t).\u5F85\u5BA1\u6838\u5546\u6237),1),q(" \u5F85\u5BA1\u6838\u5546\u6237 ")])):L("",!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]=j=>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),A(w,{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,C as a,k as b,z as g};
