From 8c4dd05b10fcaeb94c09613699aab923318a1c6d Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期日, 02 七月 2023 18:13:27 +0800
Subject: [PATCH] 称重逻辑简化,提高可读性

---
 pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue
index dd357bc..281c1c3 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue
@@ -141,7 +141,10 @@
 						this.coalDetailsData = res.data;
 						this.showWeigh = this.coalDetailsData.tmTaskCoalItems ? this.coalDetailsData
 							.tmTaskCoalItems : [],
-							uni.hideLoading()
+							this.showWeigh.forEach(v => {
+								v.discount = null
+							})
+						uni.hideLoading()
 					} else {
 						this.$u.toast('鍔犺浇澶辫触')
 						uni.hideLoading()
@@ -219,7 +222,6 @@
 				this.actionShow = false
 			},
 			selectClick(val) {
-				console.log(this.showWeigh);
 				this.showWeigh[this.actionIndex].productName = val.productName
 				this.showWeigh[this.actionIndex].productId = val.id
 			},

--
Gitblit v1.9.1