更新
This commit is contained in:
@@ -1782,6 +1782,7 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
|||||||
@Override
|
@Override
|
||||||
public void updateBarcode(JSONObject json) throws Exception {
|
public void updateBarcode(JSONObject json) throws Exception {
|
||||||
String device_code = json.getString("device_code");
|
String device_code = json.getString("device_code");
|
||||||
|
String islock = json.getString("islock");
|
||||||
String barcode = json.getString("barcode");
|
String barcode = json.getString("barcode");
|
||||||
Device device = deviceAppService.findDeviceByCode(device_code);
|
Device device = deviceAppService.findDeviceByCode(device_code);
|
||||||
StandardScannerDeviceDriver standardScannerDeviceDriver;
|
StandardScannerDeviceDriver standardScannerDeviceDriver;
|
||||||
@@ -1792,7 +1793,16 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
|||||||
}
|
}
|
||||||
if (device.getDeviceDriver() instanceof StandardEmptyPalletSiteDeviceDriver) {
|
if (device.getDeviceDriver() instanceof StandardEmptyPalletSiteDeviceDriver) {
|
||||||
standardEmptyPalletSiteDeviceDriver = (StandardEmptyPalletSiteDeviceDriver) device.getDeviceDriver();
|
standardEmptyPalletSiteDeviceDriver = (StandardEmptyPalletSiteDeviceDriver) device.getDeviceDriver();
|
||||||
|
device.setIslock(islock);
|
||||||
standardEmptyPalletSiteDeviceDriver.setContainer(barcode);
|
standardEmptyPalletSiteDeviceDriver.setContainer(barcode);
|
||||||
|
WQLObject runpointwo = WQLObject.getWQLObject("acs_device_runpoint");
|
||||||
|
JSONObject json1 = runpointwo.query("device_code ='" + device_code + "'").uniqueResult(0);
|
||||||
|
if (ObjectUtil.isNotEmpty(json1)) {
|
||||||
|
DeviceRunpointDto obj = (DeviceRunpointDto) JSONObject.toBean(json1, DeviceRunpointDto.class);
|
||||||
|
obj.setIslock(islock);
|
||||||
|
JSONObject updatejson = JSONObject.fromObject(obj);
|
||||||
|
runpointwo.update(updatejson, "device_code = '" + device_code + "'");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,8 +144,12 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
|
|||||||
|
|
||||||
if (mode != last_mode) {
|
if (mode != last_mode) {
|
||||||
if (mode == 5){
|
if (mode == 5){
|
||||||
|
if (move != last_move){
|
||||||
|
if (move == 0){
|
||||||
this.setEmptyrequireSucess(false);
|
this.setEmptyrequireSucess(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (mode == 6){
|
if (mode == 6){
|
||||||
this.setInrequireSucess(false);
|
this.setInrequireSucess(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -511,18 +511,24 @@ public class StageActorServiceImpl implements StageActorService {
|
|||||||
else if (device.getDeviceDriver() instanceof StandardInspectSiteDeviceDriver) {
|
else if (device.getDeviceDriver() instanceof StandardInspectSiteDeviceDriver) {
|
||||||
standardInspectSiteDevicedriver = (StandardInspectSiteDeviceDriver) device.getDeviceDriver();
|
standardInspectSiteDevicedriver = (StandardInspectSiteDeviceDriver) device.getDeviceDriver();
|
||||||
if (standardInspectSiteDevicedriver.getMode() == 0) {
|
if (standardInspectSiteDevicedriver.getMode() == 0) {
|
||||||
mode = "未联机";
|
mode = "脱机";
|
||||||
} else if (standardInspectSiteDevicedriver.getMode() == 1) {
|
|
||||||
mode = "单机";
|
|
||||||
} else if (standardInspectSiteDevicedriver.getMode() == 2) {
|
} else if (standardInspectSiteDevicedriver.getMode() == 2) {
|
||||||
mode = "联机";
|
mode = "待机";
|
||||||
|
} else if (standardInspectSiteDevicedriver.getMode() == 3) {
|
||||||
|
mode = "运行中";
|
||||||
|
}else if (standardInspectSiteDevicedriver.getMode() == 4) {
|
||||||
|
mode = "叫料";
|
||||||
|
}else if (standardInspectSiteDevicedriver.getMode() == 5) {
|
||||||
|
mode = "申请空盘";
|
||||||
|
}else if (standardInspectSiteDevicedriver.getMode() == 6) {
|
||||||
|
mode = "申请入库";
|
||||||
}
|
}
|
||||||
if (standardInspectSiteDevicedriver.getMove() == 0) {
|
if (standardInspectSiteDevicedriver.getMove() == 0) {
|
||||||
move = "无货";
|
move = "无货";
|
||||||
} else if (standardInspectSiteDevicedriver.getMove() == 1) {
|
} else if (standardInspectSiteDevicedriver.getMove() == 1) {
|
||||||
move = "有货";
|
move = "有托盘";
|
||||||
} else if (standardInspectSiteDevicedriver.getMove() == 2) {
|
} else if (standardInspectSiteDevicedriver.getMove() == 2) {
|
||||||
move = "有托盘有货";
|
move = "有托盘有物料";
|
||||||
}
|
}
|
||||||
obj.put("device_name", standardInspectSiteDevicedriver.getDevice().getDevice_name());
|
obj.put("device_name", standardInspectSiteDevicedriver.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
@@ -663,24 +669,23 @@ public class StageActorServiceImpl implements StageActorService {
|
|||||||
else if (device.getDeviceDriver() instanceof StandardEmptyPalletSiteDeviceDriver) {
|
else if (device.getDeviceDriver() instanceof StandardEmptyPalletSiteDeviceDriver) {
|
||||||
standardEmptyPalletSiteDeviceDriver = (StandardEmptyPalletSiteDeviceDriver) device.getDeviceDriver();
|
standardEmptyPalletSiteDeviceDriver = (StandardEmptyPalletSiteDeviceDriver) device.getDeviceDriver();
|
||||||
if (standardEmptyPalletSiteDeviceDriver.getMode() == 0) {
|
if (standardEmptyPalletSiteDeviceDriver.getMode() == 0) {
|
||||||
mode = "未联机";
|
mode = "脱机";
|
||||||
} else if (standardEmptyPalletSiteDeviceDriver.getMode() == 1) {
|
|
||||||
mode = "单机";
|
|
||||||
} else if (standardEmptyPalletSiteDeviceDriver.getMode() == 2) {
|
} else if (standardEmptyPalletSiteDeviceDriver.getMode() == 2) {
|
||||||
mode = "联机";
|
mode = "待机";
|
||||||
|
} else if (standardEmptyPalletSiteDeviceDriver.getMode() == 3) {
|
||||||
|
mode = "申请空盘";
|
||||||
}
|
}
|
||||||
if (standardEmptyPalletSiteDeviceDriver.getMove() == 0) {
|
if (standardEmptyPalletSiteDeviceDriver.getMove() == 0) {
|
||||||
move = "无货";
|
move = "无货";
|
||||||
} else if (standardEmptyPalletSiteDeviceDriver.getMove() == 1) {
|
} else if (standardEmptyPalletSiteDeviceDriver.getMove() == 1) {
|
||||||
move = "有货";
|
move = "有托盘";
|
||||||
} else if (standardEmptyPalletSiteDeviceDriver.getMove() == 2) {
|
|
||||||
move = "有托盘有货";
|
|
||||||
}
|
}
|
||||||
obj.put("device_name", standardEmptyPalletSiteDeviceDriver.getDevice().getDevice_name());
|
obj.put("device_name", standardEmptyPalletSiteDeviceDriver.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
jo.put("move", move);
|
jo.put("move", move);
|
||||||
//点击弹出
|
//点击弹出
|
||||||
jo.put("is_click", true);
|
jo.put("is_click", true);
|
||||||
|
jo.put("is_lock",device.getIslock());
|
||||||
jo.put("number", standardEmptyPalletSiteDeviceDriver.getNumber());
|
jo.put("number", standardEmptyPalletSiteDeviceDriver.getNumber());
|
||||||
jo.put("hasGoods", standardEmptyPalletSiteDeviceDriver.getHasGoods());
|
jo.put("hasGoods", standardEmptyPalletSiteDeviceDriver.getHasGoods());
|
||||||
jo.put("isOnline", standardEmptyPalletSiteDeviceDriver.getIsonline());
|
jo.put("isOnline", standardEmptyPalletSiteDeviceDriver.getIsonline());
|
||||||
|
|||||||
@@ -164,6 +164,13 @@
|
|||||||
<el-form-item label="条码" label-width="80px">
|
<el-form-item label="条码" label-width="80px">
|
||||||
<el-input v-model="form.barcode" :disabled="false" />
|
<el-input v-model="form.barcode" :disabled="false" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="是否锁定" label-width="80px">
|
||||||
|
<el-radio-group v-model="form.islock">
|
||||||
|
<el-radio-button :label="0">否</el-radio-button>
|
||||||
|
<el-radio-button :label="true">是</el-radio-button>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogFormVisible1 = false">取 消</el-button>
|
<el-button @click="dialogFormVisible1 = false">取 消</el-button>
|
||||||
@@ -245,6 +252,7 @@ export default {
|
|||||||
barcode: '',
|
barcode: '',
|
||||||
suspended: null,
|
suspended: null,
|
||||||
agvTaskType: null,
|
agvTaskType: null,
|
||||||
|
islock: '',
|
||||||
is_lock: null,
|
is_lock: null,
|
||||||
lock_name: null,
|
lock_name: null,
|
||||||
agvTaskTypeName: null,
|
agvTaskTypeName: null,
|
||||||
@@ -291,6 +299,7 @@ export default {
|
|||||||
this.form.suspended = clickObj.data.suspended
|
this.form.suspended = clickObj.data.suspended
|
||||||
this.form.agvTaskType = clickObj.data.agvTaskType
|
this.form.agvTaskType = clickObj.data.agvTaskType
|
||||||
this.form.is_lock = clickObj.data.is_lock
|
this.form.is_lock = clickObj.data.is_lock
|
||||||
|
this.form.islock = clickObj.data.is_lock
|
||||||
this.form.lock_name = clickObj.data.lock_name
|
this.form.lock_name = clickObj.data.lock_name
|
||||||
this.form.agvTaskTypeName = clickObj.data.agvTaskTypeName
|
this.form.agvTaskTypeName = clickObj.data.agvTaskTypeName
|
||||||
this.form.is_unlock = clickObj.data.is_unlock
|
this.form.is_unlock = clickObj.data.is_unlock
|
||||||
|
|||||||
Reference in New Issue
Block a user