...
|
...
|
@@ -42,8 +42,8 @@ |
|
|
saleData: {type: Object, default: {}}
|
|
|
},
|
|
|
data() {
|
|
|
let date=new Date();
|
|
|
date.setDate(date.getDate()-1);
|
|
|
let date = new Date();
|
|
|
date.setDate(date.getDate() - 1);
|
|
|
return {
|
|
|
cards: [
|
|
|
{name: "有效订单的商品件数", value: "0", name1: "环比", value1: "0"},
|
...
|
...
|
@@ -95,7 +95,7 @@ |
|
|
},
|
|
|
{
|
|
|
name: '', display: '商品分类', render: function (item) {
|
|
|
return '<p>' + item.maxSortName + '-' + item.middleSortName + '</p>';
|
|
|
return [item.maxSortName, item.middleSortName, item.smallSortName].join('-');
|
|
|
}
|
|
|
},
|
|
|
{name: 'buyNumber', display: '数量'},
|
...
|
...
|
@@ -118,7 +118,7 @@ |
|
|
if (this.params.sortList.length > 0) {
|
|
|
let length = this.params.sortList.length;
|
|
|
this.params.sortId = this.params.sortList[length - 1].id;
|
|
|
}else{
|
|
|
} else {
|
|
|
this.params.sortId = '';
|
|
|
}
|
|
|
var data = {
|
...
|
...
|
@@ -140,9 +140,9 @@ |
|
|
}
|
|
|
return time;
|
|
|
},
|
|
|
checkRate(rate,value){
|
|
|
checkRate(rate, value){
|
|
|
if (rate) {
|
|
|
value =rate
|
|
|
value = rate
|
|
|
} else if (rate == 0) {
|
|
|
value = 0;
|
|
|
} else {
|
...
|
...
|
@@ -156,9 +156,9 @@ |
|
|
let result = data.additionInfo;
|
|
|
if (result) {
|
|
|
this.cards[0].value = result.allNumber ? result.allNumber : 0;
|
|
|
this.cards[0].value1=this.checkRate(result.allNumberRate,this.cards[0].value1);
|
|
|
this.cards[0].value1 = this.checkRate(result.allNumberRate, this.cards[0].value1);
|
|
|
this.cards[1].value = result.allAmount ? result.allAmount : 0;
|
|
|
this.cards[1].value1=this.checkRate(result.allAmountRate,this.cards[1].value1);
|
|
|
this.cards[1].value1 = this.checkRate(result.allAmountRate, this.cards[1].value1);
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|