From 8b73cc807383e774b4481f0de35976269ef50b7a Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期五, 03 十一月 2023 14:22:46 +0800
Subject: [PATCH] 修改称重余量不足判断 增加从其他车队选择司机

---
 store/index.js |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/store/index.js b/store/index.js
index ec18080..bd9cb60 100644
--- a/store/index.js
+++ b/store/index.js
@@ -147,12 +147,11 @@
 		wsgContent: '',
 		globalIsFirstWeighing: 1, //鏄惁鏄涓�娆′笂纾�
 		confirmWeighVisiable: false, //纾呮埧绠$悊纭绉伴噸瀹屾垚鎻愮ず寮圭獥
-		confirmWeighContent: ''
+		confirmWeighContent: '',
+		// 绉伴噸绋冲畾鎬�  0/绋冲畾 1/闈炵ǔ瀹�  闈炵ǔ瀹氭�佷笉鑳界偣绉伴噸
+		globalWarning: false,
 	},
 	mutations: {
-		lengthchange(state, payload) {
-			state.fleetDriverDataLength = payload
-		},
 		setUserInfo(state, identity) {
 			state.userInfo = userObj[identity]
 		},
@@ -244,7 +243,11 @@
 		},
 		changeconfirmWeighContent(state, payload) {
 			state.confirmWeighContent = payload
-		}
+		},
+		// 鏀瑰彉绋冲畾鎬�
+		changeWarning(state, payload) {
+			state.globalWarning = payload
+		},
 	},
 	actions: {
 		websocketInit({ state, dispatch, commit }) {
@@ -295,7 +298,7 @@
 			clearInterval(state.reconnectTimeOut)
 			state.socketTask = null
 			commit('changereconnectState', false)
-			if (state.connectNum < 6 || state.connectNum.connectNum < 6 && state.globalisLogin) {
+			if ((state.connectNum < 6 || state.connectNum.connectNum < 6) && state.globalisLogin) {
 				uni.showToast({
 					title: '杩炴帴澶辫触锛屾鍦ㄥ皾璇曢噸鏂拌繛鎺�',
 					icon: 'none'

--
Gitblit v1.9.1