From cbe582d4cee959967527148b1f15917b8194ed85 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期三, 03 七月 2024 16:05:59 +0800 Subject: [PATCH] fix:修改测试单若干bug --- pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue b/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue index 3b02644..07b366e 100644 --- a/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue +++ b/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue @@ -12,7 +12,7 @@ <view class="middle-container"> <view class="dept-name"> {{ deptName }} - <text v-show="deptName">({{ coalName || productName}})</text> + <text v-show="deptName">({{ productNames || productName}})</text> </view> <view class="dept-num"> <text style="font-size: 46rpx; @@ -63,8 +63,8 @@ <combined-title title="鎻愮叅鍗曞巻鍙�"></combined-title> <view class="total"> 鎬诲噣閲� - <text>{{ total.toFixed(2) || 0 }}</text> - </view> + <text>{{ Number(total).toFixed(2) || 0 }}</text> + </view> </view> <view class="main-banner"> <view class="empty-pointer" @@ -86,11 +86,11 @@ <view class="second-line"> <view class="line-content"> <view class="line-content_text">鍑�閲�</view> - <view class="line-content_num">{{ item.clean.toFixed(2) || 0 }}</view> + <view class="line-content_num">{{ Number(item.clean) .toFixed(2) || 0 }}</view> </view> <view class="line-content"> <view class="line-content_text">浣欓噺</view> - <view class="line-content_num">{{ item.allowance.toFixed(2) || 0 }}</view> + <view class="line-content_num">{{ Number(item.allowance).toFixed(2) || 0 }}</view> </view> </view> </view> @@ -114,7 +114,7 @@ this.cars2 = value.cars2 ? value.cars2 : null; this.deptName = value.deptName; this.coalName = value.coalName; - this.productName = value.productName; + this.productName = value.productNames; this.carNum = value.carNum ? value.carNum : null console.log(value, '鍙戣繍璁″垝鍙傛暟'); }, @@ -147,7 +147,7 @@ }, showMore(item) { uni.navigateTo({ - url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore?orderPlanId=${this.orderPlanId}&id=${item.id}` + url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore?orderPlanId=${this.orderPlanId}&id=${item.id}&orderType=${item.orderType}` }); }, init() { @@ -166,6 +166,7 @@ this.total = this.yyDailyList.reduce((prev, cur) => { return prev + cur.clean; }, 0); + console.log(this.total,'total') } else { this.total = 0; } -- Gitblit v1.9.1