From 9579955eecf9584697c546eae6ba90fb33795e40 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期四, 29 六月 2023 18:18:23 +0800
Subject: [PATCH] 称重修改

---
 pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue |   43 ++++++++++++++++++++++++++++++++++---------
 1 files changed, 34 insertions(+), 9 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 064437c..113ebf5 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
@@ -103,15 +103,36 @@
 			style="width: 100%;height: 40rpx;"></view>
 		<view class="bottom-block">
 			<view class="block-main">
-				<view class="main-information">
+				<view class="main-information"
+					v-if="weighList.orderType=='杞叆'||weighList.orderType=='杞嚭'">
+					<view class="prefix">
+						鍙戣揣鍦扮叅鍦�:
+					</view>
+					<view class="suffix">
+						{{ weighList.filedName || '' }}
+					</view>
+				</view>
+				<view class="main-information"
+					v-if="weighList.orderType=='杞叆'||weighList.orderType=='杞嚭'">
+					<view class="prefix">
+						鏀惰揣鍦扮叅鍦�:
+					</view>
+					<view class="suffix">
+						{{ weighList.toFiledName || '' }}
+					</view>
+				</view>
+				<view class="main-information"
+					v-if="weighList.orderType!=='杞叆'||weighList.orderType!=='杞嚭'">
 					<view class="prefix">瀹㈡埛:</view>
 					<view class="suffix">{{ weighList.customerName }}</view>
 				</view>
-				<view class="main-information">
-					<view class="prefix">鐭垮満锛�</view>
+				<view class="main-information"
+					v-if="weighList.orderType!=='杞叆'||weighList.orderType!=='杞嚭'">
+					<view class="prefix">鐭垮満:</view>
 					<view class="suffix">{{ weighList.deptName || '' }}</view>
 				</view>
-				<view class="main-information">
+				<view class="main-information"
+					v-if="weighList.orderType!=='杞叆'||weighList.orderType!=='杞嚭'">
 					<view class="prefix">鐓ゅ満:</view>
 					<view class="suffix">{{ weighList.filedName || '' }}</view>
 				</view>
@@ -260,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;
@@ -273,7 +293,6 @@
 					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;
@@ -327,13 +346,17 @@
 			isEvacuation() {
 				if (this.weighList.orderType == '澶栭攢' || this.weighList.orderType == '鍐呴攢' || this.weighList.orderType ==
 					'杞嚭') {
-					return this.weighList.skin == this.temporaryWeighObj.hair || this.temporaryWeighObj.skin == this
+					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 == this.temporaryWeighObj.skin || this.temporaryWeighObj.skin == this
+					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() {
@@ -421,7 +444,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