From 809c3efe51b885eff6badca88f6965368cddf757 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期日, 18 二月 2024 14:19:56 +0800
Subject: [PATCH] fix:通知单详情打印磅单按钮bug

---
 pages/driver-page/appointment/appointment.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/pages/driver-page/appointment/appointment.vue b/pages/driver-page/appointment/appointment.vue
index cf74770..7c46132 100644
--- a/pages/driver-page/appointment/appointment.vue
+++ b/pages/driver-page/appointment/appointment.vue
@@ -78,6 +78,8 @@
 				uni.hideLoading();
 				if (res.code == 0) {
 					this.yuYueData = res.data;
+				} else {
+					this.$u.toast('鍔犺浇澶辫触');
 				}
 			});
 		},
@@ -96,9 +98,11 @@
 			this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams.yuYueId }, 'params').then(res => {
 				if (res.code == 0) {
 					this.$u.toast('棰勭害鎴愬姛锛�');
-					uni.navigateBack({
-						delta: 1
-					});
+					let timer = setTimeout(() => {
+						uni.navigateBack({
+							delta: 1
+						});
+					}, 500);
 				} else {
 					this.$u.toast(res.msg ? res.msg : '棰勭害澶辫触');
 				}
@@ -114,7 +118,15 @@
 			this.rcsqData.filedId = value.filedId;
 			this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => {
 				if (res.code == 0) {
-					this.$u.toast('鏂板缓鍏ュ満鐢宠鎴愬姛銆�');
+					this.$u.toast('鍏ュ満鐢宠鎴愬姛');
+					uni.navigateBack({
+							delta: 1
+						});
+				} else {
+					this.$u.toast(res.msg ? res.msg : '鍏ュ満鐢宠澶辫触锛岃绋嶅悗閲嶈瘯');
+					uni.navigateBack({
+							delta: 1
+						});
 				}
 			});
 		}

--
Gitblit v1.9.1