From d32ae912cef59cbd9d2d569e763d13f1982520ad Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期二, 25 二月 2025 14:50:29 +0800
Subject: [PATCH] feat:放空禁止点击条件

---
 pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 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 7787ff1..e810f2d 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
@@ -169,8 +169,9 @@
 				plain
 				@click="evacuation"
 				throttleTime="500"
+				:disabled='((weighList.hair  ? weighList.hair  : temporaryWeighObj.hair ) - (weighList.skin ? weighList.skin : temporaryWeighObj.skin) > 1)'
 				:loading="TwoEvacuationLoading"
-				v-if='weighList.skin||weighList.hair'></u-button>
+				v-if='(weighList.skin||weighList.hair)'></u-button>
 			<!-- 澶栭攢璁㈠崟绉扮毊鏃讹紝杩斿洖鍔犲噺鍚ㄦ寜閽疆鐏般�傜О姣涙椂鍙敤.澶栬喘璁㈠崟锛屼笉鍑虹幇杩斿洖鍔犲噺鍚ㄧ殑鎸夐挳 -->
 			<u-button type="primary"
 				text="纭畾绉伴噸"
@@ -355,7 +356,7 @@
 				errorTipShow: false,
 				rules: {
 					abnormalContent: [{
-							required: false,
+							required: true,
 							message: "璇峰~鍐欏紓甯稿師鍥�",
 							trigger: ['blur', 'change'],
 							type: 'string'
@@ -675,11 +676,13 @@
 			abnormalConfirm() {
 				if(!this.abnormalForm.abnormalContent){
 					this.$u.toast('璇疯緭鍏ュ紓甯稿師鍥�')
-					return 
-				}
+					
+				}else{
 				this.weighData.abnormalText = this.abnormalForm.abnormalContent
 				this.saveWeigh()
 				this.abnormalModalShow = false
+				}
+				
 			},
 			skinAbnormal() {
 				this.$reqPost('skinAbnormal', { sceneId: this.weighData.sceneId, tmId: this.weighData.tmId }, 'params')

--
Gitblit v1.9.1