消费报告提交更新1

parent 3b8f188e
...@@ -318,8 +318,12 @@ ...@@ -318,8 +318,12 @@
:key="index" class="consumer-details-sum"> :key="index" class="consumer-details-sum">
<view v-for="(e,i) in item.consumerDetailsSumArr" class="consumer-details-sum-item" <view v-for="(e,i) in item.consumerDetailsSumArr" class="consumer-details-sum-item"
:key="i" :class="i?'':'consumer-details-sum-type'"> :key="i" :class="i?'':'consumer-details-sum-type'">
<text :style="{color:item.calculateType=='较上月'?trendColorList[i]:''}"> {{e}} </text> <text :style="{color:item.calculateType=='较上'?trendColorList[i]:''}"> {{e}} </text>
<template v-if="i ==0"><span class="type-unit">{{unitTypeList[index]}}</span></template> <template v-if="item.calculateType=='较上'&&i == 0">
<span>{{['',''][reportTypeIndex]}}</span>
</template>
<template v-if="i == 0"><span
class="type-unit">{{unitTypeList[index]}}</span></template>
</view> </view>
</view> </view>
</view> </view>
...@@ -1362,36 +1366,10 @@ ...@@ -1362,36 +1366,10 @@
this.memberInfo.invalidDateStr = '2022年6月30日'; this.memberInfo.invalidDateStr = '2022年6月30日';
this.memberInfo.differDay = dayjs('2022/06/30').diff(dayjs(), 'day') + 1; this.memberInfo.differDay = dayjs('2022/06/30').diff(dayjs(), 'day') + 1;
this.containerHeight = 4200; this.containerHeight = 4200;
this.queryConsumerSummaryAmount(1).then(e => this.piechart());
this.queryLivingCostsAmount();
this.queryDayConsumerTrend(1).then(e => this.linechart(this
.reportTypeIndex));
// this.queryMealPalAnalyse().then(() => this.mealPalBarchart());
// this.queryRepastTimeTrend().then(() => {
// if (this.mealtypeArr.indexOf(1) != -1) {
// this.breakfastTimeLinechart(this.reportTypeIndex,
// 'breakfast-time-line',
// 1);
// }
// if (this.mealtypeArr.indexOf(2) != -1) {
// this.breakfastTimeLinechart(this.reportTypeIndex,
// 'lunch-time-line',
// 2);
// }
// if (this.mealtypeArr.indexOf(3) != -1) {
// this.breakfastTimeLinechart(this.reportTypeIndex,
// 'dinner-time-line',
// 3);
// }
// })
} else { } else {
this.tabIndex = 1; this.tabIndex = 1;
this.queryIsDredgeMember(1002, 1).then(() => { this.queryIsDredgeMember(1002, 1)
this.queryConsumerSummaryAmount(1).then(e => this }
.piechart());
this.queryLivingCostsAmount();
this.queryDayConsumerTrend(1).then(e => this.linechart(this
.reportTypeIndex));
// this.queryMealPalAnalyse().then(() => this.mealPalBarchart()); // this.queryMealPalAnalyse().then(() => this.mealPalBarchart());
// this.queryRepastTimeTrend().then(() => { // this.queryRepastTimeTrend().then(() => {
// if (this.mealtypeArr.indexOf(1) != -1) { // if (this.mealtypeArr.indexOf(1) != -1) {
...@@ -1411,8 +1389,11 @@ ...@@ -1411,8 +1389,11 @@
// 3); // 3);
// } // }
// }) // })
}); this.queryConsumerSummaryAmount(1).then(e => this
} .piechart());
this.queryLivingCostsAmount();
this.queryDayConsumerTrend(1).then(e => this.linechart(this
.reportTypeIndex));
this.queryNotRepastDetails(this.dataRangeArr[this.dataRangeIndex].startDate, this.queryNotRepastDetails(this.dataRangeArr[this.dataRangeIndex].startDate,
this.dataRangeArr[this this.dataRangeArr[this
.dataRangeIndex].endDate).then(() => { .dataRangeIndex].endDate).then(() => {
...@@ -1458,7 +1439,6 @@ ...@@ -1458,7 +1439,6 @@
this.tabIndex = 1; this.tabIndex = 1;
this.queryIsDredgeMember(1002, 1).then(() => { this.queryIsDredgeMember(1002, 1).then(() => {
this.queryConsumerSummaryAmount(); this.queryConsumerSummaryAmount();
this.queryLivingCostsAmount();
this.queryDayConsumerTrend(); this.queryDayConsumerTrend();
// this.queryMealPalAnalyse(); // this.queryMealPalAnalyse();
// this.queryRepastTimeTrend(); // this.queryRepastTimeTrend();
...@@ -2599,11 +2579,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -2599,11 +2579,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
.sortCalculateType); .sortCalculateType);
let tmpColorList = ['']; let tmpColorList = [''];
this.campusConsumerDetailObj.campusConsumerDetailCalculateList.forEach((e, index) => { this.campusConsumerDetailObj.campusConsumerDetailCalculateList.forEach((e, index) => {
e.calculateType = ['就餐', '未就餐', '均值', '较上', '总计'][e e.calculateType = ['就餐', '未就餐', '均值', '较上', '总计'][e
.calculateType - .calculateType -
1 1
]; ];
if (e.calculateType == '较上') { if (e.calculateType == '较上') {
for (let item in e) { for (let item in e) {
if (item != 'calculateType') { if (item != 'calculateType') {
if (e[item] > 0) { if (e[item] > 0) {
...@@ -2660,7 +2640,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -2660,7 +2640,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
this.campusConsumerDetailObj.campusConsumerDetailList = JSON.parse(JSON.stringify( this.campusConsumerDetailObj.campusConsumerDetailList = JSON.parse(JSON.stringify(
tmpDetailList)); tmpDetailList));
let tmpCalculatList = []; let tmpCalculatList = [];
let calculateTypeList = ['就餐', '未就餐', '均值', '较上', '总计']; let calculateTypeList = ['就餐', '未就餐', '均值', '较上', '总计'];
calculateTypeList.forEach(e => { calculateTypeList.forEach(e => {
tmpCalculatList.push({ tmpCalculatList.push({
"calculateType": e, "calculateType": e,
......
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