From f0890c241d88f85db223f738dd096534952c2715 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 26 七月 2023 17:26:13 +0800
Subject: [PATCH] 修改发运统计错误

---
 pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue |   26 +++-----------------------
 1 files changed, 3 insertions(+), 23 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 ffe5e41..2baa004 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
@@ -281,7 +281,6 @@
 					if (this.weighList.skin == 0) {
 						// this.temporaryWeighObj.skin = this.realTimeWeigh;
 						this.temporaryWeighObj.skin = newV;
-						this.isweigh = this.temporaryWeighObj.skin > this.weighList.orderSurplus;
 					} else {
 						// this.temporaryWeighObj.hair = this.realTimeWeigh;
 						this.temporaryWeighObj.hair = newV;
@@ -292,11 +291,8 @@
 				} else if (this.weighList.orderType == '澶栬喘' || this.weighList.orderType == '鍐呰喘' || this.weighList
 					.orderType == '杞叆') {
 					if (this.weighList.hair == 0) {
-						// this.temporaryWeighObj.hair = this.realTimeWeigh;
 						this.temporaryWeighObj.hair = newV;
-						this.isweigh = this.temporaryWeighObj.hair > this.weighList.orderSurplus;
 					} else {
-						// this.temporaryWeighObj.skin = this.realTimeWeigh;
 						this.temporaryWeighObj.skin = newV;
 						this.temporaryWeighObj.clean = (this.weighList.hair - this.temporaryWeighObj.skin).toFixed(2);
 						this.isweigh = this.temporaryWeighObj.clean > this.weighList.orderSurplus || this.temporaryWeighObj
@@ -305,13 +301,6 @@
 				}
 			},
 			// 鐩戝惉閲嶉噺鍙樺寲
-			// globalweigh: {
-			// 	handler(v) {
-			// 		this.weighData.weigh = this.realTimeWeigh = v;
-			// 		console.log(this.realTimeWeigh, '鐪熷疄閲嶉噺鏀瑰彉浜�');
-			// 	},
-			// 	deep: true
-			// },
 			globalweigh(newV) {
 				this.weighData.weigh = this.realTimeWeigh = newV;
 				console.log(this.realTimeWeigh, '鐪熷疄閲嶉噺鏀瑰彉浜�');
@@ -336,13 +325,6 @@
 			// 鍔犲噺鐓ゆ寜閽鐢ㄤ笌鍚�
 			addAndSubtractCoalDisabled() {
 				return this.realTimeWeigh == 0;
-				// if (this.weighList.orderType == '澶栭攢' || this.weighList.orderType == '鍐呴攢' || this.weighList.orderType == '杞嚭') {
-				// 	if (this.weighList.hair == 0) {
-				// 		return true;
-				// 	} else if (this.weighList.hair != 0) {
-				// 		return false;
-				// 	}
-				// }
 			},
 			// 鏄惁鏀剧┖鎸夐挳绂佺敤
 			isEvacuation() {
@@ -350,15 +332,11 @@
 					'杞嚭') {
 					return (this.weighList.skin === 0 ? this.temporaryWeighObj.skin : this.weighList.skin) == this
 						.temporaryWeighObj.hair;
-					// return this.weighList.skin == this.temporaryWeighObj.hair || this.temporaryWeighObj.skin == this
-					// 	.temporaryWeighObj.hair;
 				}
 				if (this.weighList.orderType == '澶栬喘' || this.weighList.orderType == '鍐呰喘' || this.weighList.orderType ==
 					'杞叆') {
 					return (this.weighList.hair === 0 ? this.temporaryWeighObj.skin : this.weighList.hair) == this
 						.temporaryWeighObj.hair;
-					// return this.weighList.hair == this.temporaryWeighObj.skin || this.temporaryWeighObj.skin == this
-					// 	.temporaryWeighObj.hair;
 				}
 			},
 			sideline() {
@@ -446,7 +424,9 @@
 				this.$reqPost('addAndSubtractCoal', {
 					deptId: this.weighData.deptId,
 					sceneId: this.weighData.sceneId,
-					carNo: this.weighData.carNo
+					carNo: this.weighData.carNo,
+					tmId: this.weighData.tmId,
+					filedId: this.weighData.filedId
 				}, 'json').then(res => {
 					if (res.code == 0) {
 						this.$u.toast('鎿嶄綔鎴愬姛锛屽嵆灏嗚繑鍥炰笂涓�椤�');

--
Gitblit v1.9.1