提交更新1

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