提交更新1

parent 266a0a23
......@@ -2596,7 +2596,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
e[item] = e[item] > 0 ? e[item] +
'%↑' : (e[item] < 0 ? e[item].toString().slice(1) + '%↓' :
0);
'-');
}
}
}
......@@ -2642,6 +2642,17 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
let tmpCalculatList = [];
let calculateTypeList = ['就餐', '未就餐', '均值', '较上', '总计'];
calculateTypeList.forEach(e => {
if (e == '较上') {
tmpCalculatList.push({
"calculateType": e,
"breakfastAmount": '-',
"lunchAmount": '-',
"supperAmount": '-',
"otherAmount": '-',
"totalAmount": '-',
"consumerDetailsSumArr": [e, '-', '-', '-', '-', '-']
})
} else {
tmpCalculatList.push({
"calculateType": e,
"breakfastAmount": 0,
......@@ -2651,6 +2662,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
"totalAmount": 0,
"consumerDetailsSumArr": [e, 0, 0, 0, 0, 0]
})
}
});
this.campusConsumerDetailObj.campusConsumerDetailCalculateList = JSON.parse(JSON.stringify(
tmpCalculatList));
......
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