import{d as S,r as n,x as R,b as z,o as d,A as h,B as p,C as N,f as t,a as r,k as D,e9 as E,X as j,Y as F,Z as I,__tla as A}from"./index-92ad187a.js";import{E as B,__tla as X}from"./el-card-93209b1d.js";import{_ as Y,__tla as Z}from"./index.vue_vue_type_script_setup_true_lang-6fbe4cc3.js";import{E as $,__tla as q}from"./el-image-ee9e09ec.js";import{__tla as G}from"./el-image-viewer-d472c5a2.js";import{_ as H,__tla as J}from"./index.vue_vue_type_script_setup_true_lang-9bde5a13.js";import{P as K,__tla as L}from"./product-8693d9ac.js";import{C as M,__tla as O}from"./CardTitle-a05eaf96.js";let w,Q=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}catch{}})()]).then(async()=>{let _;_={class:"flex flex-row items-center justify-between"},w=S({name:"ProductRank",__name:"ProductRank",setup(T){const b=e=>`${e.browseConvertPercent}%`,f=e=>{o.sortingFields=[E(e)],s()},g=e=>{o.times=e,s()},y=n(),o=R({pageNo:1,pageSize:10,times:[],sortingFields:{}}),c=n(!1),m=n(0),u=n([]),s=async()=>{c.value=!0;try{const e=await K.getProductStatisticsRankPage(o);u.value=e.list,m.value=e.total}finally{c.value=!1}};return z(async()=>{await s()}),(e,i)=>{const P=H,a=j,v=$,C=F,k=Y,x=B,U=I;return d(),h(x,{shadow:"never"},{header:p(()=>[N("div",_,[t(r(M),{title:"\u5546\u54C1\u6392\u884C"}),t(P,{ref_key:"shortcutDateRangePicker",ref:y,onChange:g},null,512)])]),default:p(()=>[D((d(),h(C,{data:r(u),onSortChange:f},{default:p(()=>[t(a,{label:"\u5546\u54C1ID",prop:"spuId","min-width":"70"}),t(a,{label:"\u5546\u54C1\u56FE\u7247",align:"center",prop:"picUrl",width:"80"},{default:p(({row:l})=>[t(v,{src:l.picUrl,"preview-src-list":[l.picUrl],class:"h-30px w-30px","preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),t(a,{label:"\u5546\u54C1\u540D\u79F0",prop:"name","min-width":"200","show-overflow-tooltip":!0}),t(a,{label:"\u6D4F\u89C8\u91CF",prop:"browseCount","min-width":"90",sortable:"custom"}),t(a,{label:"\u8BBF\u5BA2\u6570",prop:"browseUserCount","min-width":"90",sortable:"custom"}),t(a,{label:"\u52A0\u8D2D\u4EF6\u6570",prop:"cartCount","min-width":"105",sortable:"custom"}),t(a,{label:"\u4E0B\u5355\u4EF6\u6570",prop:"orderCount","min-width":"105",sortable:"custom"}),t(a,{label:"\u652F\u4ED8\u4EF6\u6570",prop:"orderPayCount","min-width":"105",sortable:"custom"}),t(a,{label:"\u652F\u4ED8\u91D1\u989D",prop:"orderPayPrice","min-width":"105",sortable:"custom"}),t(a,{label:"\u6536\u85CF\u6570",prop:"favoriteCount","min-width":"90",sortable:"custom"}),t(a,{label:"\u8BBF\u5BA2-\u652F\u4ED8\u8F6C\u5316\u7387(%)",prop:"browseConvertPercent","min-width":"180",sortable:"custom",formatter:b})]),_:1},8,["data"])),[[U,r(c)]]),t(k,{total:r(m),page:r(o).pageNo,"onUpdate:page":i[0]||(i[0]=l=>r(o).pageNo=l),limit:r(o).pageSize,"onUpdate:limit":i[1]||(i[1]=l=>r(o).pageSize=l),onPagination:s},null,8,["total","page","limit"])]),_:1})}}})});export{w as _,Q as __tla};
