From ab6404eb9a63f990d1e734dbfc38eb5910dee681 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期五, 27 十月 2023 11:39:09 +0800
Subject: [PATCH] 修改转发 增加磅单打印样式 增加自主配送 修改部分页面跳转逻辑

---
 pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue |   30 +++++++++++-------------------
 1 files changed, 11 insertions(+), 19 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 8f6ff98..f2cb1c9 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
@@ -158,7 +158,7 @@
 					<view class="suffix">{{ weighList.orderSurplus ||""  }}</view>
 					<text style="color: #ff6363;font-weight: bold;font-size: 26rpx;"
 						class="error-tip"
-						v-show="orderSurplusLess">* 璁㈠崟浣欓噺涓嶈冻</text>
+						v-show="orderSurplusLess&&!isSpecial">* 璁㈠崟浣欓噺涓嶈冻</text>
 				</view>
 			</view>
 		</view>
@@ -393,7 +393,8 @@
 				afterEvacuationStatus: null, //鏀剧┖鍚庢彁鐓ゅ崟鐘舵�佺姸鎬佷负21鏃舵彁绀衡�樼瓑寰呯鎴跨‘璁も��
 				afterEvacuationText: '',
 				TwoEvacuationLoading: false,
-				addAndSubtractCoalLoading: false
+				addAndSubtractCoalLoading: false,
+				isSpecial: null //1 鏄壒娈� 0涓嶆槸鐗规畩
 			};
 		},
 		watch: {
@@ -422,9 +423,9 @@
 							this.temporaryWeighObj.clean = x.minus(y).toNumber().toFixed(2)
 							// this.temporaryWeighObj.clean = (this.temporaryWeighObj.hair - this.weighList.skin).toFixed(
 							// 	2);
-							this.isweigh = this.temporaryWeighObj.clean > this.weighList.orderSurplus || this
+							this.isweigh = (this.temporaryWeighObj.clean > this.weighList.orderSurplus || this
 								.temporaryWeighObj
-								.clean < 0;
+								.clean < 0) && !this.isSpecial
 							this.orderSurplusLess = this.temporaryWeighObj.clean > this.weighList.orderSurplus
 							// this.mergeStateShow = this.weighList.source !== 0 && this.orderSurplusLess
 						}
@@ -447,9 +448,9 @@
 							this.temporaryWeighObj.clean = x.minus(y).toNumber().toFixed(2)
 							// this.temporaryWeighObj.clean = (this.weighList.hair - this.temporaryWeighObj.skin).toFixed(
 							// 	2);
-							this.isweigh = this.temporaryWeighObj.clean > this.weighList.orderSurplus || this
+							this.isweigh = (this.temporaryWeighObj.clean > this.weighList.orderSurplus || this
 								.temporaryWeighObj
-								.clean < 0;
+								.clean < 0) && !this.isSpecial
 							this.orderSurplusLess = this.temporaryWeighObj.clean > this.weighList.orderSurplus
 							// this.mergeStateShow = this.weighList.source !== 0 && this.orderSurplusLess
 						}
@@ -486,6 +487,9 @@
 			},
 			sideline() {
 				return this.weighList.orderType == '鍐呰喘' || this.weighList.orderType == '杞叆';
+			},
+			isNeedOrigin() {
+				return uni.getStorageSync('isNeedOrigin')
 			}
 		},
 
@@ -503,6 +507,7 @@
 					if (res.code == 0) {
 						uni.hideLoading()
 						this.weighList = res.data;
+						this.isSpecial = res.data.isSpecial
 						this.weighData.deptId = res.data.deptId;
 						this.weighData.tmId = res.data.id;
 						this.weighData.carNo = res.data.carNo;
@@ -699,19 +704,6 @@
 			skinAbnormal() {
 				this.$reqPost('skinAbnormal', { sceneId: this.weighData.sceneId, tmId: this.weighData.tmId }, 'params')
 			},
-			// mergeStateChange(e) {
-			// 	if (e.length !== 0) {
-			// 		this.weighData.isMerge = 1
-			// 		this.MergeState = true
-			// 		this.isweigh = false
-			// 		this.orderSurplusLess = false
-			// 	} else {
-			// 		this.weighData.isMerge = 0
-			// 		this.MergeState = false
-			// 		this.isweigh = true
-			// 		this.orderSurplusLess = true
-			// 	}
-			// },
 			confirmWeighConfirm() {
 				this.changeconfirmWeighVisiable(false)
 				this.isConfirmWeighLoading = false

--
Gitblit v1.9.1