From c612912d4132e4d7b4a58279071fac837891c381 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期五, 27 九月 2024 17:08:25 +0800
Subject: [PATCH] feat:库管确认装卸毛重净重按条件显示,司机填原发信息增加限制

---
 pages/public-page/forward/forward.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue
index 0cf601f..db7585b 100644
--- a/pages/public-page/forward/forward.vue
+++ b/pages/public-page/forward/forward.vue
@@ -251,7 +251,7 @@
 		onShow() {
 			this.init();
 			this.getBuild();
-			this.getOrderPlan();
+			// this.getOrderPlan();
 			if (this.roleType == 2) {
 				this.list1.splice(1, 1);
 				this.tabHuoDai = false;
@@ -497,6 +497,7 @@
 					// 	this.selectPopupShow = true;
 					// }
 					// } else {
+					console.log(this.jhOrderPlanForwardList,item,'jhOrderPlanForwardList')
 					let isableAdd = this.jhOrderPlanForwardList.filter(v => item.name === v.name);
 					if (isableAdd.length > 0) {
 						this.$u.toast('瀛樺湪閲嶅娣诲姞');
@@ -644,6 +645,10 @@
 						this.$u.toast('璇疯緭鍏ュ悎娉曟暟瀛�');
 						isPass = false;
 						return isPass;
+					} else if (!v.name){
+						this.$u.toast('璇烽�夋嫨杞﹂槦');
+						isPass = false;
+						return isPass;
 					} else {
 						isPass = true;
 						return isPass;
@@ -655,13 +660,13 @@
 					this.$reqPost('forward', this.jhOrderPlanForwardList, 'json').then(res => {
 						console.log(res, 'zh');
 						// res.data.length == 0 鎻愪氦鎴愬姛 鍚﹀垯鎻愪氦澶辫触
-						if (res.data.length == 0) {
+						if (res.code === 0) {
 							this.loading = false
 							this.$u.toast('鎻愪氦鎴愬姛');
 							if(/鑱氭隘涔欑儻鏍戣剛/.test(this.productName)){
 								setTimeout(()=>{
 									uni
-					.navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${0}&pvcPlanMeasure=${this.pvcPlanMeasure}`});
+					.navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${1}&pvcPlanMeasure=${this.pvcPlanMeasure}`});
 
 								},500)
 					

--
Gitblit v1.9.1