fix :修改

This commit is contained in:
2024-02-29 13:13:32 +08:00
parent c010166c28
commit 864990b446
9 changed files with 18 additions and 17 deletions

View File

@@ -26,6 +26,7 @@ import org.nl.acs.device.enums.DeviceType;
import org.nl.acs.device.service.mapper.DeviceExtraMapper; import org.nl.acs.device.service.mapper.DeviceExtraMapper;
import org.nl.acs.device.domain.DeviceRunpoint; import org.nl.acs.device.domain.DeviceRunpoint;
import org.nl.acs.device.service.mapper.DeviceRunpointMapper; import org.nl.acs.device.service.mapper.DeviceRunpointMapper;
import org.nl.acs.device_driver.conveyor.belt_conveyor.BeltConveyorDeviceDriver;
import org.nl.acs.device_driver.one_conveyor.scanner_weight_conveyor.ConveyorWithScannerWeightDeviceDriver; import org.nl.acs.device_driver.one_conveyor.scanner_weight_conveyor.ConveyorWithScannerWeightDeviceDriver;
import org.nl.acs.device_driver.one_manipulator.volume_two_manipulator.VolumeTwoManipulatorManipulatorDeviceDriver; import org.nl.acs.device_driver.one_manipulator.volume_two_manipulator.VolumeTwoManipulatorManipulatorDeviceDriver;
import org.nl.acs.device_driver.stacker.standard_stacker.StandardStackerDeviceDriver; import org.nl.acs.device_driver.stacker.standard_stacker.StandardStackerDeviceDriver;
@@ -1025,6 +1026,9 @@ public class DeviceServiceImpl extends CommonServiceImpl<DeviceMapper, Device> i
}else if (device.getDeviceDriver() instanceof ConveyorWithScannerWeightDeviceDriver) { }else if (device.getDeviceDriver() instanceof ConveyorWithScannerWeightDeviceDriver) {
ConveyorWithScannerWeightDeviceDriver conveyorWithScannerWeightDeviceDriver = (ConveyorWithScannerWeightDeviceDriver) device.getDeviceDriver(); ConveyorWithScannerWeightDeviceDriver conveyorWithScannerWeightDeviceDriver = (ConveyorWithScannerWeightDeviceDriver) device.getDeviceDriver();
conveyorWithScannerWeightDeviceDriver.setDeviceStatus(form); conveyorWithScannerWeightDeviceDriver.setDeviceStatus(form);
}else if (device.getDeviceDriver() instanceof BeltConveyorDeviceDriver) {
BeltConveyorDeviceDriver beltConveyorDeviceDriver = (BeltConveyorDeviceDriver) device.getDeviceDriver();
beltConveyorDeviceDriver.setDeviceStatus(form);
} }
} }

View File

@@ -235,14 +235,9 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
if (mode != last_mode) { if (mode != last_mode) {
JSONObject param = new JSONObject();
param.put("device_code", this.device_code);
param.put("mode", Math.min(mode, 3));
param.put("device_name", this.getDevice().getDevice_name());
param.put("device_type", CommonFinalParam.ONE);
requireSucess = false; requireSucess = false;
logServer.deviceExecuteLog(this.device_code, "", "", "信号mode" + last_mode + "->" + mode + "复位请求标记:" + requireSucess);
logServer.deviceExecuteLog(this.device_code, "", "", "信号mode" + last_mode + "->" + mode);
} }
@@ -680,7 +675,10 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
public JSONObject getDeviceStatusName() { public JSONObject getDeviceStatusName() {
JSONObject jo = new JSONObject(); JSONObject jo = new JSONObject();
String mode = ""; String mode = "";
String requireSucess = "0";
if (this.requireSucess) {
requireSucess = "1";
}
if (this.getMode() == 0) { if (this.getMode() == 0) {
mode = LangProcess.msg("universal_off-line"); mode = LangProcess.msg("universal_off-line");
} else if (this.getMode() == 1) { } else if (this.getMode() == 1) {
@@ -695,13 +693,12 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
jo.put("device_name", this.getDevice().getDevice_name()); jo.put("device_name", this.getDevice().getDevice_name());
jo.put("mode", mode); jo.put("mode", mode);
//jo.put("error", ErrorUtil.getDictDetail("ssx_error_type", String.valueOf(this.getError()))); jo.put("message", this.getMessage());
jo.put("inventory_qty", inventory_qty); jo.put("error", this.getError());
jo.put("out_finish", out_finish); jo.put("move", move);
jo.put("material", material);
jo.put("is_click", true); jo.put("is_click", true);
jo.put("isOnline", this.getIsonline()); jo.put("isOnline", this.getIsonline());
jo.put("requireSucess", requireSucess);
return jo; return jo;
} }

View File

@@ -1,4 +1,4 @@
package org.nl.acs.device_driver.stacker.standard_stacker; package org.nl.acs.device_driver.stacker.standard_stacker;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;

View File

@@ -319,6 +319,7 @@ public class StandardStackerDeviceDriver extends AbstractOpcDeviceDriver impleme
storage_cache = this.itemProtocol.getItem_storage_cache(); storage_cache = this.itemProtocol.getItem_storage_cache();
// 更新指令状态 // 更新指令状态
if (mode == 3 && task > 0) { if (mode == 3 && task > 0) {
Date date = new Date(); Date date = new Date();
@@ -348,7 +349,7 @@ public class StandardStackerDeviceDriver extends AbstractOpcDeviceDriver impleme
if (mode != 3 || requireSucess) { if (mode != 3 || requireSucess) {
// message = LangProcess.msg("one_message7"); message = LangProcess.msg("one_message7");
} else if (error != 0) { } else if (error != 0) {
message = LangProcess.msg("universal_message3"); message = LangProcess.msg("universal_message3");
@@ -371,7 +372,6 @@ public class StandardStackerDeviceDriver extends AbstractOpcDeviceDriver impleme
applyUpdatePointCode(StandarStirageErroEnum.BLOCK_IN.getType()); applyUpdatePointCode(StandarStirageErroEnum.BLOCK_IN.getType());
} }
} }
} else { } else {

View File

@@ -1,5 +1,5 @@
<template> <template>
<!--标准版-输送机-控制点--> <!--标准版-输送机-->
<div> <div>
<el-card class="box-card" shadow="never"> <el-card class="box-card" shadow="never">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">