...
|
...
|
@@ -27,19 +27,19 @@ |
|
|
<div class="overViewContent" style="margin-left: 125px">
|
|
|
<div class="triangleShape">
|
|
|
<b>当前层级</b>
|
|
|
<div class="shape triangle-up {{num==1?'activeShape':''}}">
|
|
|
<div class="shape triangle-up {{rankLevel==1?'activeShape':''}}">
|
|
|
<span>前5%</span><i class="triangle-right"></i>
|
|
|
</div>
|
|
|
<div class="shape trapezoid-1 {{num==2?'activeShape':''}}">
|
|
|
<div class="shape trapezoid-1 {{rankLevel==2?'activeShape':''}}">
|
|
|
<span>5%~20%</span><i class="triangle-right"></i>
|
|
|
</div>
|
|
|
<div class="shape trapezoid-2 {{num==3?'activeShape':''}}">
|
|
|
<div class="shape trapezoid-2 {{rankLevel==3?'activeShape':''}}">
|
|
|
<span>20%~40%</span><i class="triangle-right"></i>
|
|
|
</div>
|
|
|
<div class="shape trapezoid-3 {{num==4?'activeShape':''}}">
|
|
|
<div class="shape trapezoid-3 {{rankLevel==4?'activeShape':''}}">
|
|
|
<span>40%~65%</span><i class="triangle-right"></i>
|
|
|
</div>
|
|
|
<div class="shape trapezoid-4 {{num==5?'activeShape':''}}">
|
|
|
<div class="shape trapezoid-4 {{rankLevel==5?'activeShape':''}}">
|
|
|
<span>65%~100%</span><i class="triangle-right"></i>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -83,16 +83,32 @@ |
|
|
orderAmount: '2',
|
|
|
rankNow: '3',
|
|
|
rankChange: '4',
|
|
|
num:4,
|
|
|
rankLevel:4,
|
|
|
grid:{
|
|
|
url:'/bigdata/getStorageStatisticsList',
|
|
|
url:'/report/getOrdersGoodsRptList',
|
|
|
columns:[
|
|
|
{name:'A',display:'skn',render:function () {
|
|
|
return 1;
|
|
|
{display:'图片',render(item){
|
|
|
return item.imageUrl?'<img src="'+item.imageUrl+'">':"";
|
|
|
}},
|
|
|
{name:'B',display:'skn',render:function () {
|
|
|
return 2;
|
|
|
}}
|
|
|
{display:'SKN/SKC/SKU',render(item){
|
|
|
return '<p>SKN:'+item.productSkn+'</p>' +
|
|
|
'<p>SKC:'+item.productSkc+'</p>' +
|
|
|
'<p>SKU:'+item.productSku+'</p>';
|
|
|
}},
|
|
|
{display:'厂家编号',name:'factoryCode'},
|
|
|
{display:'商品名称',name:'goodsName'},
|
|
|
{display:'价格',render(item){
|
|
|
return '<p>吊牌价:'+item.retailPrice+'</p>' +
|
|
|
'<p>销售价:'+item.salePrice+'</p>';
|
|
|
}},
|
|
|
{display:'颜色/尺码',render(item){
|
|
|
return [item.colorName,item.sizeName].join('/');
|
|
|
}},
|
|
|
{display:'商品分类',render(item){
|
|
|
return [item.maxSortName,item.middleSortName,item.smallSortName].join('-');
|
|
|
}},
|
|
|
{display:'数量',name:''},
|
|
|
{display:'金额',name:''}
|
|
|
]
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -102,13 +118,15 @@ |
|
|
//this.fetchData2();
|
|
|
},
|
|
|
methods:{
|
|
|
fetchData: function() {
|
|
|
//获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品金额
|
|
|
fetchData1: function() {
|
|
|
$.ajax({
|
|
|
type:"post",
|
|
|
url:"/report/getShopBusinessOverview",
|
|
|
dataType: 'json',
|
|
|
success: function(rs) {
|
|
|
console.log(rs);
|
|
|
this.buyNumbers = rs.data.buyNumbers;
|
|
|
this.orderAmount = rs.data.orderAmount;
|
|
|
},
|
|
|
error: function(error) {
|
|
|
console.log(error)
|
...
|
...
|
@@ -116,13 +134,16 @@ |
|
|
})
|
|
|
},
|
|
|
|
|
|
//获取店铺的品牌排名,当前等级、排名、上升名词
|
|
|
fetchData2: function() {
|
|
|
$.ajax({
|
|
|
type:"post",
|
|
|
url:"/report/getShopBrandRank",
|
|
|
dataType: 'json',
|
|
|
success: function(rs) {
|
|
|
console.log(rs);
|
|
|
this.rankNow = rs.data.rankNow;
|
|
|
this.rankChange = rs.data.rankChange;
|
|
|
this.rankLevel = rs.data.rankLevel;
|
|
|
},
|
|
|
error: function(error) {
|
|
|
console.log(error)
|
...
|
...
|
|