From a20cc4d791acb78db0d7455922c781784d333970 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期四, 23 三月 2023 08:26:54 +0800
Subject: [PATCH] 称重红外(异常参数添加)

---
 api/publicInterface.js                                                                  |    2 +-
 pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue |    3 ++-
 api/request.js                                                                          |    4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/api/publicInterface.js b/api/publicInterface.js
index c295cff..eb43d49 100644
--- a/api/publicInterface.js
+++ b/api/publicInterface.js
@@ -4,7 +4,7 @@
 // const BaseUrl = "http://192.168.3.159:9999/";
 import {BaseUrl as wrBaseUrl} from '@/api/request.js'
 // const BaseUrl = "http://192.168.0.120:9999"
-const BaseUrl = "http://192.168.110.101:9999"
+const BaseUrl = "http://192.168.110.82:9999"
 
 // 鐧诲綍
 // function apiLogin({
diff --git a/api/request.js b/api/request.js
index 1912f06..e71aba2 100644
--- a/api/request.js
+++ b/api/request.js
@@ -80,8 +80,8 @@
 
 // const BaseUrl = "http://192.168.0.120:9997"
 // const webSocketUrl = "ws://192.168.0.120:9997/wrzs/ws/info"
-const BaseUrl = "http://192.168.110.101:9997";
-const webSocketUrl = "ws://192.168.110.101:9997/wrzs/ws/info"
+const BaseUrl = "http://192.168.110.82:9997";
+const webSocketUrl = "ws://192.168.110.82:9997/wrzs/ws/info"
 
 // 璇锋眰鎷︽埅
 const fetch = (url, opt) => {
diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
index f52f718..b33e955 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -229,8 +229,9 @@
 				console.log('socketWeigh', res);
 				let nowWeighObj = JSON.parse(res.data.slice(7))
 				if (nowWeighObj.eqCode == this.weighHouseCode) {
-					if(nowWeighObj.'鏆傚畾'){
+					if(nowWeighObj.eqInfraredStatus){
 						this.infraredStatus = true
+						this.weighData.weigh = this.realTimeWeigh = nowWeighObj.weigh;
 					}else{
 						this.infraredStatus = false
 						this.weighData.weigh = this.realTimeWeigh = nowWeighObj.weigh;

--
Gitblit v1.9.1