From be31471261d238e9a0f5067d57ca32fff091bfd9 Mon Sep 17 00:00:00 2001
From: gengby <858962040@qq.com>
Date: Fri, 3 Feb 2023 09:47:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...eyorControlWithPlcScannerDeviceDriver.java | 19 ++++++++++++++++++-
.../src/views/system/monitor/device/index.vue | 14 +++++++++++++-
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_plcscanner/StandardCoveyorControlWithPlcScannerDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_plcscanner/StandardCoveyorControlWithPlcScannerDeviceDriver.java
index 8b49dab99..e459f504b 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_plcscanner/StandardCoveyorControlWithPlcScannerDeviceDriver.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_plcscanner/StandardCoveyorControlWithPlcScannerDeviceDriver.java
@@ -864,6 +864,18 @@ public class StandardCoveyorControlWithPlcScannerDeviceDriver extends AbstractOp
move = "有托盘有货";
jo.put("hasGoods", true);
}
+ String requireSucess = "0";
+ if (this.requireSucess) {
+ requireSucess = "1";
+ }
+ String applySucess = "0";
+ if (this.applySucess) {
+ applySucess = "1";
+ }
+ jo.put("requireSucess", requireSucess);
+ jo.put("applySucess", applySucess);
+ jo.put("driver_type", "standard_conveyor_control_with_scanner");
+ jo.put("is_click", true);
jo.put("device_name", this.getDevice().getDevice_name());
jo.put("mode", mode);
jo.put("move", move);
@@ -877,7 +889,12 @@ public class StandardCoveyorControlWithPlcScannerDeviceDriver extends AbstractOp
@Override
public void setDeviceStatus(JSONObject data) {
-
+ String requestSucess = data.getString("requireSucess");
+ if (StrUtil.equals(requestSucess, "0")) {
+ this.requireSucess = false;
+ } else if (StrUtil.equals(requestSucess, "1")) {
+ this.requireSucess = true;
+ }
}
diff --git a/acs/nladmin-ui/src/views/system/monitor/device/index.vue b/acs/nladmin-ui/src/views/system/monitor/device/index.vue
index eb4800a46..d3d1d0b59 100644
--- a/acs/nladmin-ui/src/views/system/monitor/device/index.vue
+++ b/acs/nladmin-ui/src/views/system/monitor/device/index.vue
@@ -103,6 +103,12 @@