import{d as z,r as n,f as R,m as S,o as d,x as h,w as _,h as D,g as t,a as r,y as I,e4 as N,H as j,I as E,J as F,_ as H,__tla as J}from"./index-7d5b26d3.js";import{E as $,__tla as q}from"./el-card-698191e2.js";import{_ as A,__tla as B}from"./index-966eea36.js";import{E as G,__tla as K}from"./el-image-c9079635.js";import{__tla as L}from"./el-image-viewer-2f0c9a58.js";import{_ as M,__tla as O}from"./index-863c4dbf.js";import{P as Q,__tla as T}from"./product-0e34aa26.js";import{C as V,__tla as W}from"./CardTitle-2fda2394.js";import{__tla as X}from"./index-cdb8fe72.js";import{__tla as Y}from"./formatTime-5152c108.js";let w,Z=Promise.all([(()=>{try{return J}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}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"},w=H(z({name:"ProductRank",__name:"ProductRank",setup(tt){const f=e=>`${e.browseConvertPercent}%`,b=e=>{o.sortingFields=[N(e)],s()},y=e=>{o.times=e,s()},g=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 Q.getProductStatisticsRankPage(o);u.value=e.list,m.value=e.total}finally{c.value=!1}};return S(async()=>{await s()}),(e,i)=>{const v=M,a=j,P=G,C=E,x=A,k=$,U=F;return d(),h(k,{shadow:"never"},{header:_(()=>[D("div",p,[t(r(V),{title:"\u5546\u54C1\u6392\u884C"}),t(v,{ref_key:"shortcutDateRangePicker",ref:g,onChange:y},null,512)])]),default:_(()=>[I((d(),h(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:f})]),_:1},8,["data"])),[[U,r(c)]]),t(x,{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","D:/zx/mall-newfeifan-zx-business/src/views/mall/statistics/product/components/ProductRank.vue"]])});export{Z as __tla,w as default};
