From ae1aad66a165ee7253bed2127a3b53baa40c2361 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 17 五月 2023 08:35:33 +0800
Subject: [PATCH] 修复错误,增加验证

---
 pages/public-page/forward/forward.vue |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue
index 13e809f..1774faf 100644
--- a/pages/public-page/forward/forward.vue
+++ b/pages/public-page/forward/forward.vue
@@ -376,6 +376,16 @@
 			let time;
 			let that = this;
 			that.$set(that.jhOrderPlanForwardList[index], 'carNum', Number(value));
+			if (that.roleType == 1) {
+				if (that.jhOrderPlanForwardList[index].carNum < that.carNumSurplus1) {
+					that.jhOrderPlanForwardList[index].checkboxValue1 = '';
+				}
+			}
+			if (that.roleType == 2) {
+				if (that.jhOrderPlanForwardList[index].carNum < that.carNumSurplusHuodai) {
+					that.jhOrderPlanForwardList[index].checkboxValue1 = '';
+				}
+			}
 			return (function() {
 				if (!time) {
 					time = setTimeout(() => {

--
Gitblit v1.9.1