...
|
...
|
@@ -42,10 +42,10 @@ |
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
cards:[
|
|
|
{name:"退货总数",value:"0",name1:"环比",value1:"0"},
|
|
|
{name:"退货总金额(元)",value:"0",name1:"环比",value1:"0"},
|
|
|
{name:"退货率",value:"0",name1:"环比",value1:"0"}
|
|
|
cards: [
|
|
|
{name: "退货总数", value: "0", name1: "环比", value1: "0"},
|
|
|
{name: "退货总金额(元)", value: "0", name1: "环比", value1: "0"},
|
|
|
{name: "退货率", value: "0", name1: "环比", value1: "0"}
|
|
|
],
|
|
|
params: {
|
|
|
type: 1,
|
...
|
...
|
@@ -57,7 +57,7 @@ |
|
|
productSku: "",
|
|
|
factoryCode: "",
|
|
|
sortId: "",
|
|
|
sortList:[]
|
|
|
sortList: []
|
|
|
},
|
|
|
grid: {
|
|
|
url: '/report/getReturnGoodsRptList',
|
...
|
...
|
@@ -70,7 +70,7 @@ |
|
|
{
|
|
|
name: '', display: 'SKN/SKC/SKU', render: function (item) {
|
|
|
var htmlArr = [];
|
|
|
htmlArr.push('<p>SKN:' + item.productSkn + '</p>');
|
|
|
htmlArr.push('<p>SKN:<a class="productSkn" style="cursor:pointer">' + item.productSkn + '</a></p>');
|
|
|
htmlArr.push('<p>SKC:' + item.productSkc + '</p>');
|
|
|
htmlArr.push('<p>SKU:' + item.productSku + '</p>');
|
|
|
return htmlArr.join("");
|
...
|
...
|
@@ -103,7 +103,13 @@ |
|
|
}
|
|
|
},
|
|
|
ready() {
|
|
|
this.submit();
|
|
|
var that = this;
|
|
|
that.submit();
|
|
|
$(document).on("click", ".productSkn", function () {
|
|
|
var skn = $(this).html();
|
|
|
that.params.productSkn = skn;
|
|
|
that.submit();
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
submit() {
|
...
|
...
|
@@ -115,7 +121,7 @@ |
|
|
//日报.月报,开始结束时间不传
|
|
|
this.params.beginTime = this.params.endTime = "";
|
|
|
}
|
|
|
if(this.params.sortList.length > 0){
|
|
|
if (this.params.sortList.length > 0) {
|
|
|
this.params.sortId = this.params.sortList[0].id;
|
|
|
}
|
|
|
var data = {
|
...
|
...
|
@@ -136,18 +142,28 @@ |
|
|
time = time.split('-').join("")
|
|
|
}
|
|
|
return time;
|
|
|
},
|
|
|
checkRate(rate,value){
|
|
|
if (rate) {
|
|
|
value =rate
|
|
|
} else if (rate == 0) {
|
|
|
value = 0;
|
|
|
} else {
|
|
|
value = 'no';
|
|
|
}
|
|
|
return value;
|
|
|
}
|
|
|
},
|
|
|
events: {
|
|
|
complete(data){
|
|
|
let result = data.additionInfo;
|
|
|
if (result) {
|
|
|
this.cards[0].value = result.allNumber?result.allNumber:0;
|
|
|
this.cards[0].value1 = result.allNumberRate?result.allNumberRate:0;
|
|
|
this.cards[1].value = result.allAmount?result.allAmount:0;
|
|
|
this.cards[1].value1 = result.allAmountRate?result.allAmountRate:0;
|
|
|
this.cards[2].value = result.returnAmountRate?result.returnAmountRate+ "%":0;
|
|
|
this.cards[2].value1 = result.returnRingRate?result.returnRingRate:0;
|
|
|
this.cards[0].value = result.allNumber ? result.allNumber : 0;
|
|
|
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[2].value = result.returnAmountRate ? result.returnAmountRate + "%" : 0;
|
|
|
this.cards[2].value1=this.checkRate(result.returnRingRate,this.cards[2].value1);
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|