Commit 7440d3db by 姜雷

添加打印数据

parent ffeb3fef
...@@ -103,7 +103,7 @@ Page({ ...@@ -103,7 +103,7 @@ Page({
const element = oList[index]; const element = oList[index];
consumePrice += element.payableMoney; consumePrice += element.payableMoney;
consumeCount += element.payMen; consumeCount += element.payMen;
let daysIndex = element.createDate.slice(-2); let daysIndex = Number(element.createDate.slice(-2));
dayList[daysIndex] = { dayList[daysIndex] = {
...dayList[daysIndex], ...dayList[daysIndex],
payMen: element.payMen, payMen: element.payMen,
...@@ -148,7 +148,7 @@ Page({ ...@@ -148,7 +148,7 @@ Page({
const element = oList[index]; const element = oList[index];
rechargePrice += element.rechargeMoney; rechargePrice += element.rechargeMoney;
rechargeCount += element.rechargeMen; rechargeCount += element.rechargeMen;
let daysIndex = element.completeAt.slice(-2); let daysIndex = Number(element.completeAt.slice(-2));
dayList[daysIndex] = { dayList[daysIndex] = {
...dayList[daysIndex], ...dayList[daysIndex],
rechargeMoney: element.rechargeMoney, rechargeMoney: element.rechargeMoney,
...@@ -158,6 +158,7 @@ Page({ ...@@ -158,6 +158,7 @@ Page({
}; };
} }
} }
console.log(dayList);
this.setData!({ this.setData!({
rechargeAndRefundList: dayList, rechargeAndRefundList: dayList,
'rechargeData.count': rechargePrice, 'rechargeData.count': rechargePrice,
......
...@@ -79,7 +79,7 @@ Page({ ...@@ -79,7 +79,7 @@ Page({
let oList = dayVos; let oList = dayVos;
for (let index = 0; index < oList.length; index++) { for (let index = 0; index < oList.length; index++) {
const element = oList[index]; const element = oList[index];
let daysIndex = element.days.slice(-2); let daysIndex = Number(element.days.slice(-2));
dayList[daysIndex] = { dayList[daysIndex] = {
...dayList[daysIndex], ...dayList[daysIndex],
count: element.count, count: element.count,
......
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