import{d as R,r as n,f as S,B as N,o as d,l as w,w as _,g as z,i as t,a as r,C as E,e3 as j,L as D,M as F,N as I,_ as A,__tla as B}from"./index-2c56227b.js";import{E as G,__tla as H}from"./el-card-9c148b4f.js";import{_ as L,__tla as M}from"./index-8106be8e.js";import{E as O,__tla as $}from"./el-image-cae97e2e.js";import{__tla as q}from"./el-image-viewer-da1b6008.js";import{_ as J,__tla as K}from"./index-1e86d8a5.js";import{P as Q,__tla as T}from"./product-72a7f967.js";import{C as V,__tla as W}from"./CardTitle-53f5d4e7.js";import{__tla as X}from"./index-d17bd909.js";import{__tla as Y}from"./formatTime-7f0ec2bf.js";let f,Z=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Y}catch{}})()]).then(async()=>{let p;p={class:"flex flex-row items-center justify-between"},f=A(R({name:"ProductRank",__name:"ProductRank",setup(tt){const h=e=>`${e.browseConvertPercent}%`,b=e=>{o.sortingFields=[j(e)],s()},y=e=>{o.times=e,s()},g=n(),o=S({pageNo:1,pageSize:10,times:[],sortingFields:{}}),c=n(!1),m=n(0),u=n([]),s=async()=>{c.value=!0;try{const e=await Q.getProductStatisticsRankPage(o);u.value=e.list,m.value=e.total}finally{c.value=!1}};return N(async()=>{await s()}),(e,i)=>{const v=J,a=D,P=O,C=F,k=L,U=G,x=I;return d(),w(U,{shadow:"never"},{header:_(()=>[z("div",p,[t(r(V),{title:"\u5546\u54C1\u6392\u884C"}),t(v,{ref_key:"shortcutDateRangePicker",ref:g,onChange:y},null,512)])]),default:_(()=>[E((d(),w(C,{data:r(u),onSortChange:b},{default:_(()=>[t(a,{label:"\u5546\u54C1ID",prop:"spuId","min-width":"70"}),t(a,{label:"\u5546\u54C1\u56FE\u7247",align:"center",prop:"picUrl",width:"80"},{default:_(({row:l})=>[t(P,{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:h})]),_:1},8,["data"])),[[x,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})}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/mall/statistics/product/components/ProductRank.vue"]])});export{Z as __tla,f as default};
