From f46eb243908e145da448f65bffb8ba17197d9164 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 25 九月 2023 16:10:12 +0800
Subject: [PATCH] 增加详情原发信息 增加装卸员下拉刷新 修改诸多问题 优化websocket

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

diff --git a/pages/driver-page/appointment/appointment.vue b/pages/driver-page/appointment/appointment.vue
index 81aaec2..4837339 100644
--- a/pages/driver-page/appointment/appointment.vue
+++ b/pages/driver-page/appointment/appointment.vue
@@ -59,7 +59,6 @@
 			};
 		},
 		onLoad(params) {
-			console.log('appointment,params', params);
 			if (params.type == '鍏ュ満鐢宠') {
 				this.isRCSQ = true;
 				this.rcsqData.originalYyId = params.yyId;
@@ -102,11 +101,13 @@
 			// 棰勭害
 			yuYueClick(id) {
 				this.yuYuePostParams.yuYueId = id;
-				this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams
-						.yuYueId }, 'params').then(res => {
+				this.$reqPost('yuYue', {
+					takeCoalId: this.yuYuePostParams.takeCoalId,
+					yuYueId: this.yuYuePostParams.yuYueId
+				}, 'params').then(res => {
 					if (res.code == 0) {
-						this.$u.toast('棰勭害鎴愬姛锛�');
-
+						this.yuYueList();
+						this.$u.toast('棰勭害鎴愬姛');
 						let timer = setTimeout(() => {
 							uni.navigateBack({
 								delta: 1
@@ -115,8 +116,6 @@
 					} else {
 						this.$u.toast(res.msg ? res.msg : '棰勭害澶辫触');
 					}
-				}).then(() => {
-					this.yuYueList();
 				})
 			},
 			// 鍏ュ満鐢宠
@@ -127,6 +126,11 @@
 				this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => {
 					if (res.code == 0) {
 						this.$u.toast('鍏ュ満鐢宠鎴愬姛');
+						let timer = setTimeout(() => {
+							uni.navigateBack({
+								delta: 1
+							});
+						}, 500);
 					} else {
 						this.$u.toast(res.msg ? res.msg : '鍏ュ満鐢宠澶辫触锛岃绋嶅悗閲嶈瘯');
 					}

--
Gitblit v1.9.1