Commit 82ea94ea authored by youjie's avatar youjie
parents 8740e965 7be8a434
...@@ -192,7 +192,7 @@ export default { ...@@ -192,7 +192,7 @@ export default {
// type: "text" // type: "text"
}; };
let sumMoney = { let sumMoney = {
field: "PreferPrice", field: "SumPreferPrice",
title: this.$t('sm.salemoney'), title: this.$t('sm.salemoney'),
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
// } // }
// return content; // return content;
// } else { // } else {
return `${rowData["PreferPrice"].toFixed(2)}`; return `${rowData["SumPreferPrice"].toFixed(2)}`;
//} //}
} }
}; };
...@@ -280,6 +280,14 @@ export default { ...@@ -280,6 +280,14 @@ export default {
width: 80, width: 80,
orderBy: "" orderBy: ""
}; };
let customerNum = {
field: "totalGuestNum",
title: '单项收客数',
titleAlign: "left",
columnAlign: "left",
isResize: true,
width: 80
};
let unitPrice = { let unitPrice = {
field: "avgPrice", field: "avgPrice",
title: this.$t('sm.keprice'), title: this.$t('sm.keprice'),
...@@ -321,6 +329,7 @@ export default { ...@@ -321,6 +329,7 @@ export default {
unitPrice.title = this.$t('sm.renxiaoshou'); unitPrice.title = this.$t('sm.renxiaoshou');
this.columns.push(avgPCount); this.columns.push(avgPCount);
} }
this.columns.push(customerNum);
this.columns.push(unitPrice); this.columns.push(unitPrice);
this.columns.push(proportion); this.columns.push(proportion);
this.isReady = true; this.isReady = true;
...@@ -355,7 +364,7 @@ export default { ...@@ -355,7 +364,7 @@ export default {
if (!param.QStartDate) { if (!param.QStartDate) {
param.QStartDate = "2019-01-01"; param.QStartDate = "2019-01-01";
} }
this.apipost("sellorder_get_sellvolumerank", param, r => { this.apipost("sellorder_get_sellvolumerankNew", param, r => {
r.data.data.forEach(x => { r.data.data.forEach(x => {
x.incomeVal = parseFloat(x.income); x.incomeVal = parseFloat(x.income);
x.avgPrice = parseFloat(x.avgPrice); x.avgPrice = parseFloat(x.avgPrice);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment