This commit is contained in:
2023-02-03 09:47:47 +08:00
parent dfce161aa3
commit be31471261
2 changed files with 31 additions and 2 deletions

View File

@@ -864,6 +864,18 @@ public class StandardCoveyorControlWithPlcScannerDeviceDriver extends AbstractOp
move = "有托盘有货"; move = "有托盘有货";
jo.put("hasGoods", true); 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("device_name", this.getDevice().getDevice_name());
jo.put("mode", mode); jo.put("mode", mode);
jo.put("move", move); jo.put("move", move);
@@ -877,7 +889,12 @@ public class StandardCoveyorControlWithPlcScannerDeviceDriver extends AbstractOp
@Override @Override
public void setDeviceStatus(JSONObject data) { 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;
}
} }

View File

@@ -103,6 +103,12 @@
<el-radio-button :label="1"></el-radio-button> <el-radio-button :label="1"></el-radio-button>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="请求标记" prop="is_disable" label-width="120px">
<el-radio-group v-model="form.applySucess">
<el-radio-button :label="0"></el-radio-button>
<el-radio-button :label="1"></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="dialogFormVisible5 = false"> </el-button> <el-button @click="dialogFormVisible5 = false"> </el-button>
@@ -167,7 +173,8 @@ export default {
material_type: '', material_type: '',
requireSucess: '', requireSucess: '',
fullrequireSucess: '', fullrequireSucess: '',
is_disable: '' is_disable: '',
applySucess: ''
}, },
allDeviceMsg: [], allDeviceMsg: [],
msgTop: '200px', msgTop: '200px',
@@ -289,6 +296,7 @@ export default {
if (clickObj.data.device_type === 'scanner') { // 扫码器 if (clickObj.data.device_type === 'scanner') { // 扫码器
this.dialogFormVisible1 = true this.dialogFormVisible1 = true
} else { } else {
console.log(clickObj.data.driver_type)
if (clickObj.data.driver_type === 'standard_ordinary_site') { if (clickObj.data.driver_type === 'standard_ordinary_site') {
this.dialogFormVisible3 = true this.dialogFormVisible3 = true
} else if (clickObj.data.driver_type === 'hailiang_packer_station') { } else if (clickObj.data.driver_type === 'hailiang_packer_station') {
@@ -301,6 +309,7 @@ export default {
this.dialogFormVisible5 = true this.dialogFormVisible5 = true
} else if (clickObj.data.driver_type === 'standard_conveyor_control_with_scanner') { } else if (clickObj.data.driver_type === 'standard_conveyor_control_with_scanner') {
this.dialogFormVisible5 = true this.dialogFormVisible5 = true
console.log('11111111111')
} else { } else {
this.dialogFormVisible = true this.dialogFormVisible = true
} }
@@ -473,6 +482,9 @@ export default {
} else if (val === 'requireSucess') { } else if (val === 'requireSucess') {
const obj = { name: '请求成功标记', value: data[val] } const obj = { name: '请求成功标记', value: data[val] }
this.arr.push(obj) this.arr.push(obj)
} else if (val === 'applySucess') {
const obj = { name: 'applySucess', value: data[val] }
this.arr.push(obj)
} }
} }
} }