diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/casing_station/CasingStationConveyorDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/casing_station/CasingStationConveyorDeviceDriver.java index c66092802..b487bf3ae 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/casing_station/CasingStationConveyorDeviceDriver.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/casing_station/CasingStationConveyorDeviceDriver.java @@ -108,6 +108,8 @@ public class CasingStationConveyorDeviceDriver extends AbstractOpcDeviceDriver i int qty = 0; int last_qty = 0; + int out_finish = 0; + //下发命令 int to_command = 0; @@ -400,7 +402,36 @@ public class CasingStationConveyorDeviceDriver extends AbstractOpcDeviceDriver i @Override public JSONObject getDeviceStatusName() throws Exception { - return null; + JSONObject jo = new JSONObject(); + String mode = ""; + String move = ""; + + if (this.getMode() == 0) { + mode = "未联机"; + } else if (this.getMode() == 1) { + mode = "单机"; + } else if (this.getMode() == 2) { + mode = "联机"; + } else if (this.getMode() == 3) { + mode = "运行中"; + } else if (this.getMode() == 4) { + mode = "套管完成"; + } + if(this.getMove() ==0){ + move = "无货"; + }else if(this.getMove() == 1){ + move = "有托盘"; + } + jo.put("device_name", this.getDevice().getDevice_name()); + jo.put("mode", mode); + jo.put("error", ErrorUtil.getDictDetail("ssx_error_type", String.valueOf(this.getError()))); + jo.put("move", move); + jo.put("inventory_qty", qty); + jo.put("out_finish", out_finish); + jo.put("material", material1); + jo.put("isOnline", this.getIsonline()); + + return jo; } @Override diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/paper_tube_device2/PaperTubeConveyor2DeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/paper_tube_device2/PaperTubeConveyor2DeviceDriver.java index 034fafd91..8ffae261d 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/paper_tube_device2/PaperTubeConveyor2DeviceDriver.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/paper_tube_device2/PaperTubeConveyor2DeviceDriver.java @@ -688,6 +688,7 @@ public class PaperTubeConveyor2DeviceDriver extends AbstractOpcDeviceDriver impl public JSONObject getDeviceStatusName() { JSONObject jo = new JSONObject(); String mode = ""; + String move = ""; if (this.getMode() == 0) { mode = "未联机"; @@ -696,16 +697,22 @@ public class PaperTubeConveyor2DeviceDriver extends AbstractOpcDeviceDriver impl } else if (this.getMode() == 2) { mode = "联机"; } else if (this.getMode() == 3) { - mode = "入库中"; + mode = "运行中"; } else if (this.getMode() == 4) { - mode = "出库中"; + mode = "申请出纸管"; + } + if(this.getMove() == 0){ + move = "无货"; + }else if(this.getMove() == 1){ + move = "有托盘"; } jo.put("device_name", this.getDevice().getDevice_name()); jo.put("mode", mode); jo.put("error", ErrorUtil.getDictDetail("ssx_error_type", String.valueOf(this.getError()))); - jo.put("inventory_qty", inventory_qty); + jo.put("inventory_qty", item_qty1); + jo.put("move", move); jo.put("out_finish", out_finish); - jo.put("material", material); + jo.put("material", item_material1); jo.put("isOnline", this.getIsonline()); return jo; diff --git a/acs/nladmin-ui/src/views/acs/task/index.vue b/acs/nladmin-ui/src/views/acs/task/index.vue index c7759456e..a02b7a249 100644 --- a/acs/nladmin-ui/src/views/acs/task/index.vue +++ b/acs/nladmin-ui/src/views/acs/task/index.vue @@ -80,8 +80,8 @@ - - + + @@ -306,6 +306,18 @@ + + + + + + + + + + + + @@ -505,7 +517,11 @@ export default { to_z: null, agv_system_type: '', next_height: '0', - start_height: '0' + start_height: '0', + truss_type: null, + version: null, + bushing_num: null, + is_bushing: null }, rules: { start_height: [