From d8f015b20c2603d94a7c82918d377e43973ac72f Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期二, 24 十月 2023 17:37:36 +0800
Subject: [PATCH] 修改司机修改资料未改变状态bug,增加司机我的页面下拉刷新,修改新手指引意外消失

---
 pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
index c120428..50789a2 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -722,14 +722,17 @@
 					weigh: this.globalweigh,
 					isBackground: 1
 				};
+				uni.showLoading({
+					title: '鍔犺浇涓�'
+				})
 				let mix = Object.assign(this.weighData, this.getWeightHouseObj);
 				this.$reqPost('getOneEvacuation', mix, 'json').then(res => {
-					console.log(res, '绗竴娆℃斁绌�');
+					uni.hideLoading()
 					if (res.code == 0) {
 						this.$u.toast('鎿嶄綔鎴愬姛');
 						this.evacuationModalShow = false;
 					} else {
-						this.$u.toast('鎿嶄綔澶辫触锛岃绋嶅悗閲嶈瘯');
+						this.$u.toast(res.msg ? res.msg : '鎿嶄綔澶辫触锛岃绋嶅悗閲嶈瘯');
 						this.evacuationModalShow = false;
 					}
 				});
@@ -774,7 +777,10 @@
 						} else {
 							this.$u.toast(res.msg ? res.msg : '鎵撳嵃澶辫触')
 						}
-					})
+					}).catch(e => {
+					uni.hideLoading()
+					this.outLoading = false
+				})
 			},
 			// 鎵撳嵃鍑洪棬璇�
 			printExitPermit() {
@@ -783,14 +789,15 @@
 				})
 				let form = {
 					deptId: this.getWeightHouseObj.deptId,
+					filedId: this.getWeightHouseObj.filedId,
 					tmId: this.getWeightHouseObj.tmId,
 					carNo: uni.getStorageSync('carNo'),
 					type: 3,
 					weighingNumber: 2
 				}
+				let form1 = uni.getStorageSync('WeighHouseForm') ? uni.getStorageSync('WeighHouseForm') : '{}'
 				this.outLoading = true
-				this.$reqPost('printer', Object.assign(form, JSON.parse(uni.getStorageSync('WeighHouseForm'))),
-					'json').then(res => {
+				this.$reqPost('printer', Object.assign(form, JSON.parse(form1)), 'json').then(res => {
 					uni.hideLoading()
 					this.outLoading = false
 					if (res.code === 0) {
@@ -798,6 +805,9 @@
 					} else {
 						this.$u.toast(res.msg ? res.msg : '鎵撳嵃澶辫触')
 					}
+				}).catch(e => {
+					uni.hideLoading()
+					this.outLoading = false
 				})
 			},
 			wsgContentConfirm() {

--
Gitblit v1.9.1