From 4f9eb354382eda4fe5e47c12e58a40896df552d9 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期五, 05 七月 2024 17:08:34 +0800
Subject: [PATCH] fix:沧化修改测试bug

---
 pages/driver-page/driver-index/driver-index.vue |   45 +++++++++++++++++++++++++++++++++------------
 1 files changed, 33 insertions(+), 12 deletions(-)

diff --git a/pages/driver-page/driver-index/driver-index.vue b/pages/driver-page/driver-index/driver-index.vue
index cdc62db..2017cc9 100644
--- a/pages/driver-page/driver-index/driver-index.vue
+++ b/pages/driver-page/driver-index/driver-index.vue
@@ -460,7 +460,6 @@
 			},
 			// 鎺ュ崟鎸夐挳
 			qiangDanBtn(value) {
-				this.activeObj = value;
 				//鏄惁鍙互鍦哄唴鎺ュ崟锛�1 鍙互2涓嶅彲浠�
 				if (value.isInsideConnect === 1) {
 					this.insideConnectShow = true
@@ -507,12 +506,6 @@
 						uni.hideLoading()
 						if (res.code == 0) {
 							this.$u.toast('鎺ュ崟鎴愬姛');
-							//鍒ゆ柇鏄笉鏄泦瑁呯 鏄惁闇�瑕佽緭鍏�
-							if(this.activeObj.isContainerNum){
-								this.enterCode = true;
-							}else{
-								this.enterCode = false;
-							}
 							
 						} else {
 							this.$u.toast(res.msg ? res.msg : '鎺ュ崟澶辫触');
@@ -619,16 +612,25 @@
 			// 鍘婚绾�
 			toAppointmentClick(value) {
 				// 鐢变簬鑷富閰嶉�佸崟 鏄璐崟 浣嗘槸涓嶉渶瑕佸~鍐欏師鍙戜负1涓嶉渶瑕佸~鍐欏師鍙�
-				uni.setStorageSync('isNeedOrigin', value.orderType === '澶栬喘' && value.isSpecial === 1 ? 1 : 0)
-				if (value.orderType === '澶栬喘') {
+				uni.setStorageSync('isNeedOrigin', value.orderType === '澶栬喘' && value.isSpecial === 1 ? 1 : 0);
+				//鍒ゆ柇鏄笉鏄泦瑁呯 鏄惁闇�瑕佽緭鍏�
+				this.activeObj = value;
+				console.log(value,'123')
+				if(value.isContainerNum){
+				  this.enterCode = true;
+				}else{
+				  this.enterCode = false;
+				  	if (value.orderType === '澶栬喘') {
 					uni.navigateTo({
-						url: `/pages/driver-page/driver-index/bill-of-lading-details/originInfo/originInfo?orderPlanId=${value.id}&filedId=${value.filedId}&deptId=${value.deptId}&sendDate=${value.sendDate}&isSpecial=${value.isSpecial}`
+						url: `/pages/driver-page/driver-index/bill-of-lading-details/originInfo/originInfo?orderPlanId=${value.id}&filedId=${value.filedId}&deptId=${value.deptId}&sendDate=${value.sendDate}&isSpecial=${value.isSpecial}&isWeight=${value.isWeight}`
 					});
 				} else {
 					uni.navigateTo({
 						url: `/pages/driver-page/appointment/appointment?takeCoalId=${value.id}&filedId=${value.filedId}&deptId=${value.deptId}&sendDate=${value.sendDate}`
 					});
 				}
+				  }
+			
 			},
 			// 鑷富閰嶉��
 			selfDeliver() {
@@ -637,9 +639,10 @@
 				})
 			},
 			cancelCodeEnter(){
+				console.log(this.activeObj,'tmid')
 				this.activeObj.containerNumber = this.enterCodeStr;
 			    this.$reqPut('addContainer',{
-					id:this.activeObj.tmId,
+					id:this.activeObj.id,
 					containerNumber:this.activeObj.containerNumber
 				}).then(res=>{
 					this.$u.toast('鎿嶄綔鎴愬姛');
@@ -648,12 +651,30 @@
 
 				}).catch(err=>{
 
+				}).finally(() => {
+					if (this.activeObj.orderType === '澶栬喘') {
+					uni.navigateTo({
+						url: `/pages/driver-page/driver-index/bill-of-lading-details/originInfo/originInfo?orderPlanId=${this.activeObj.id}&filedId=${this.activeObj.filedId}&deptId=${this.activeObj.deptId}&sendDate=${this.activeObj.sendDate}&isSpecial=${this.activeObj.isSpecial}&isWeight=${this.activeObj.isWeight}`
+					});
+				} else {
+					uni.navigateTo({
+						url: `/pages/driver-page/appointment/appointment?takeCoalId=${this.activeObj.id}&filedId=${this.activeObj.filedId}&deptId=${this.activeObj.deptId}&sendDate=${this.activeObj.sendDate}`
+					});
+				}
 				})
 			},
 			cancelCodeCancel(){
-				this.activeObj = {};
 				this.enterCode = false;
 				this.enterCodeStr = '';
+					if (this.activeObj.orderType === '澶栬喘') {
+					uni.navigateTo({
+						url: `/pages/driver-page/driver-index/bill-of-lading-details/originInfo/originInfo?orderPlanId=${this.activeObj.id}&filedId=${this.activeObj.filedId}&deptId=${this.activeObj.deptId}&sendDate=${this.activeObj.sendDate}&isSpecial=${this.activeObj.isSpecial}&isWeight=${this.activeObj.isWeight}`
+					});
+				} else {
+					uni.navigateTo({
+						url: `/pages/driver-page/appointment/appointment?takeCoalId=${this.activeObj.id}&filedId=${this.activeObj.filedId}&deptId=${this.activeObj.deptId}&sendDate=${this.activeObj.sendDate}`
+					});
+				}
 			}
 		}
 	};

--
Gitblit v1.9.1