From ceeb19ad302df0ae6146895cac263d7bdc38ac31 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期四, 29 六月 2023 14:18:20 +0800
Subject: [PATCH] 称重页面问题修改,样式修改

---
 pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue |   51 +++++++++++++++++++++++++++++----------------------
 1 files changed, 29 insertions(+), 22 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 7739282..02a916c 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
@@ -212,8 +212,9 @@
 					clean: ""
 				},
 				completeOutSaleShow: false,
-				overTmWaixiao: null
-
+				overTmWaixiao: null,
+				// 鍒よ缃戠粶鐘舵�侊紝
+				normalCode: null
 			};
 		},
 		onShow() {
@@ -259,7 +260,6 @@
 			init() {
 				this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => {
 					if (res.code == 0) {
-						// this.dayRZ = res.data;
 						this.dayRZ = res.data.map(v => {
 							let slicedate = v.taskStatusDes.slice(0, 10);
 							if (slicedate == this.currentDate) {
@@ -349,24 +349,31 @@
 			},
 			// 鏃ュ織鏌ヨ
 			coalDayPage() {
-				this.interval = setInterval(() => {
-					this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => {
-						if (res.code == 0) {
-							// this.dayRZ = res.data;
-							this.dayRZ = res.data.map(v => {
-								let slicedate = v.taskStatusDes.slice(0, 10);
-								if (slicedate == this.currentDate) {
-									return {
-										...v,
-										taskStatusDes: v.taskStatusDes.slice(10)
-									};
-								} else {
-									return { ...v }
-								}
-							});
-						}
-					});
-				}, 10000);
+				if (this.normalCode) {
+					this.interval = setInterval(() => {
+						this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => {
+							if (res.code == 0) {
+								this.normalCode = true;
+								this.dayRZ = res.data.map(v => {
+									let slicedate = v.taskStatusDes.slice(0, 10);
+									if (slicedate == this.currentDate) {
+										return {
+											...v,
+											taskStatusDes: v.taskStatusDes.slice(10)
+										};
+									} else {
+										return { ...v }
+									}
+								});
+							} else {
+								this.normalCode = false;
+							}
+						});
+					}, 10000);
+				} else {
+					clearInterval(this.interval)
+					this.$u.toast('鏈嶅姟鍣ㄩ敊璇�,璇风◢鍚庨噸璇�')
+				}
 			},
 			// 灞曠ず鎻愮叅鍗曡鎯�
 			showCaolPickUpBill() {
@@ -703,7 +710,7 @@
 
 
 		.timeLine {
-			height: 40%;
+			height: 300rpx;
 			min-height: 300rpx;
 			margin: vww(20);
 			position: relative;

--
Gitblit v1.9.1