From 0458308c2ce53c98b67387baefad9ede18b47286 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期四, 02 十一月 2023 08:19:49 +0800
Subject: [PATCH] 修改入场申请逻辑

---
 pages/driver-page/appointment/appointment.vue |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/pages/driver-page/appointment/appointment.vue b/pages/driver-page/appointment/appointment.vue
index 339fe4c..6d1f9ce 100644
--- a/pages/driver-page/appointment/appointment.vue
+++ b/pages/driver-page/appointment/appointment.vue
@@ -58,9 +58,10 @@
 					yyId: '',
 					deptId: '',
 					filedId: '',
-					remark: ''
 				},
-				yuYueSection: ''
+				yuYueSection: '',
+				coalStatus: '',
+				tmId: ""
 			};
 		},
 		onLoad(params) {
@@ -73,6 +74,8 @@
 			this.yuYueListParams.filedId = params.filedId;
 			this.yuYueListParams.deptId = params.deptId;
 			this.yuYueListParams.sendDate = params.sendDate;
+			this.coalStatus = params.coalStatus;
+			this.tmId = params.tmId
 		},
 		onShow() {
 			this.init();
@@ -124,21 +127,31 @@
 					}
 				})
 			},
-			// 鍏ュ満鐢宠
+			// 鏇存崲棰勭害鏃堕棿娈�
 			saveRCSQ(value) {
 				this.rcsqData.yyId = value.id;
 				this.rcsqData.deptId = value.deptId;
 				this.rcsqData.filedId = value.filedId;
 				this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => {
 					if (res.code == 0) {
-						this.$u.toast('鍏ュ満鐢宠鎴愬姛');
+						this.$u.toast('鏇存崲棰勭害鏃堕棿娈垫垚鍔�');
 						let timer = setTimeout(() => {
 							uni.switchTab({
 								url: '/pages/tabbar-page/index-tabbar/index-tabbar'
 							})
 						}, 1500);
+						//濡傛灉鏈鍒� 鍏堢鍒板啀鐢宠
+					} else if (res.code == 3) {
+						this.$u.toast('璇峰厛绛惧埌');
+						setTimeout(() => {
+							uni.navigateTo({
+								url: `/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock?orderPlanId=${this.yuYuePostParams.takeCoalId}&coalStatus=${
+								this.coalStatus}&tmId=${this.tmId}&yyId=${this.rcsqData.originalYyId}&filedId=${this.yuYueListParams.filedId}&deptId=${this.yuYueListParams.deptId}&sendDate=${this.yuYueListParams.sendDate}&yuYueSection=${this.yuYueSection}`
+							})
+						}, 1500)
+						return
 					} else {
-						this.$u.toast(res.msg ? res.msg : '鍏ュ満鐢宠澶辫触锛岃绋嶅悗閲嶈瘯');
+						this.$u.toast(res.msg ? res.msg : '鏇存崲棰勭害鏃堕棿娈靛け璐ワ紝璇风◢鍚庨噸璇�');
 					}
 				});
 			}

--
Gitblit v1.9.1