From f5d9fc10d155aed63fdf91217380610faa60f9e0 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期五, 14 七月 2023 15:04:36 +0800
Subject: [PATCH] 转发页面修改

---
 pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue |   49 ++++++++++++++++++++++++++++---------------------
 1 files changed, 28 insertions(+), 21 deletions(-)

diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
index b775edd..f83188c 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -221,31 +221,32 @@
 		},
 		watch: {
 			realTimeWeigh(newV, oldV) {
-				if (this.weighList.orderType == '澶栭攢' || this.weighList.orderType == '鍐呴攢' || this.weighList.orderType ==
-					'杞嚭') {
-					if (!this.showWeigh.skin) {
-						this.temporaryWeighObj.skin = newV;
-					} else {
-						this.temporaryWeighObj.hair = newV;
-						this.isweigh = Number(this.currentClean) > this.weighList.orderSurplus || Number(this
-							.currentClean) < 0;
-					}
-				} else if (this.weighList.orderType == '澶栬喘' || this.weighList.orderType == '鍐呰喘' || this.weighList
-					.orderType == '杞叆') {
-					if (!this.showWeigh.hair) {
-						this.temporaryWeighObj.hair = newV;
-					} else {
-						this.temporaryWeighObj.skin = newV;
-						this.isweigh = Number(this.currentClean) < 0 || this.showWeigh.skin < newV && this.showWeigh
-							.skin > 0;
-					}
-				}
+
 			},
 			// 鐩戝惉閲嶉噺鍙樺寲
 			globalweigh: {
 				handler: function(newV) {
 					this.weighData.weigh = this.realTimeWeigh = newV;
-					console.log(this.realTimeWeigh, '鐪熷疄閲嶉噺鏀瑰彉浜�');
+					if (this.weighList.orderType == '澶栭攢' || this.weighList.orderType == '鍐呴攢' || this.weighList
+						.orderType == '杞嚭') {
+						if (!this.showWeigh.skin) {
+							this.temporaryWeighObj.skin = newV;
+						} else {
+							this.temporaryWeighObj.hair = newV;
+							this.isweigh = Number(this.currentClean) > this.weighList.orderSurplus || Number(this
+								.currentClean) < 0;
+						}
+					} else if (this.weighList.orderType == '澶栬喘' || this.weighList.orderType == '鍐呰喘' || this.weighList
+						.orderType == '杞叆') {
+						if (!this.showWeigh.hair) {
+							this.temporaryWeighObj.hair = newV;
+						} else {
+							this.temporaryWeighObj.skin = newV;
+							this.isweigh = Number(this.currentClean) < 0 || this.showWeigh.skin < newV && this
+								.showWeigh
+								.skin > 0;
+						}
+					}
 				},
 				deep: true
 			}
@@ -294,7 +295,13 @@
 			},
 			currentClean() {
 				if (!this.currentSkin) return ''
-				return (this.currentHair - this.currentSkin).toFixed(2)
+				if (this.weighList.orderType == '澶栬喘' || this.weighList.orderType == '鍐呰喘' || this.weighList
+					.orderType == '杞叆') {
+					return (this.currentHair - this.currentSkin).toFixed(2)
+				} else {
+					return !this.showWeigh.skin ? this.currentSkin : (this.currentHair - this.currentSkin).toFixed(2)
+				}
+
 			}
 		},
 		methods: {

--
Gitblit v1.9.1