rev:手持通用功能、小料箱功能测试修改

This commit is contained in:
2025-09-17 10:00:26 +08:00
parent 40a1298ae9
commit 78411c83b7
12 changed files with 32 additions and 31 deletions

View File

@@ -83,7 +83,7 @@ public class GroupController {
} }
@PostMapping("/copySave") @PostMapping("/copySave")
@Log("查询供应商") @Log("复制新增")
public ResponseEntity<Object> copySave(@RequestBody GroupPlate dto) { public ResponseEntity<Object> copySave(@RequestBody GroupPlate dto) {
iMdPbGroupplateService.create(dto); iMdPbGroupplateService.create(dto);
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);

View File

@@ -91,7 +91,6 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
if (ResultAcsStatus.EXECUTING.getCode().equals(acs_task_status)) { if (ResultAcsStatus.EXECUTING.getCode().equals(acs_task_status)) {
// 执行中 // 执行中
status = TaskStatus.EXECUTING; status = TaskStatus.EXECUTING;
// 更新车号
} else if (ResultAcsStatus.FINISHED.getCode().equals(acs_task_status)) { } else if (ResultAcsStatus.FINISHED.getCode().equals(acs_task_status)) {
// 完成 // 完成
status = TaskStatus.FINISHED; status = TaskStatus.FINISHED;

View File

@@ -37,49 +37,49 @@ public class PdaGeneralPublicController {
@Log("查询品质类型") @Log("查询品质类型")
@SaIgnore @SaIgnore
public ResponseEntity<Object> queryGroupQuality() { public ResponseEntity<Object> queryGroupQuality() {
return new ResponseEntity<>(PdaResponse.requestParamOk(pdaGeneralPublicService.queryGroupQuality()), HttpStatus.OK); return new ResponseEntity<>(pdaGeneralPublicService.queryGroupQuality(), HttpStatus.OK);
} }
@PostMapping("/queryMaterial") @PostMapping("/queryMaterial")
@Log("查询物料") @Log("查询物料")
@SaIgnore @SaIgnore
public ResponseEntity<Object> queryMaterial(@RequestBody JSONObject whereJson) { public ResponseEntity<Object> queryMaterial(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(PdaResponse.requestParamOk(pdaGeneralPublicService.queryMaterial(whereJson)), HttpStatus.OK); return new ResponseEntity<>(pdaGeneralPublicService.queryMaterial(whereJson), HttpStatus.OK);
} }
@PostMapping("/querySupp") @PostMapping("/querySupp")
@Log("查询供应商") @Log("查询供应商")
@SaIgnore @SaIgnore
public ResponseEntity<Object> querySupp(@RequestBody JSONObject whereJson) { public ResponseEntity<Object> querySupp(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(PdaResponse.requestParamOk(pdaGeneralPublicService.querySupp(whereJson)), HttpStatus.OK); return new ResponseEntity<>(pdaGeneralPublicService.querySupp(whereJson), HttpStatus.OK);
} }
@PostMapping("/queryBoxType") @PostMapping("/queryBoxType")
@Log("查询料箱类型") @Log("查询料箱类型")
@SaIgnore @SaIgnore
public ResponseEntity<Object> queryBoxType() { public ResponseEntity<Object> queryBoxType() {
return new ResponseEntity<>(PdaResponse.requestParamOk(pdaGeneralPublicService.queryBoxType()), HttpStatus.OK); return new ResponseEntity<>(pdaGeneralPublicService.queryBoxType(), HttpStatus.OK);
} }
@PostMapping("/queryGroupInfo") @PostMapping("/queryGroupInfo")
@Log("查询组盘记录") @Log("查询组盘记录")
@SaIgnore @SaIgnore
public ResponseEntity<Object> queryGroupInfo(@RequestBody JSONObject whereJson) { public ResponseEntity<Object> queryGroupInfo(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(PdaResponse.requestParamOk(pdaGeneralPublicService.queryGroupInfo(whereJson)), HttpStatus.OK); return new ResponseEntity<>(pdaGeneralPublicService.queryGroupInfo(whereJson), HttpStatus.OK);
} }
@PostMapping("/queryBomInfo") @PostMapping("/queryBomInfo")
@Log("查询工单信息") @Log("查询工单信息")
@SaIgnore @SaIgnore
public ResponseEntity<Object> queryBomInfo(@RequestBody JSONObject whereJson) { public ResponseEntity<Object> queryBomInfo(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(PdaResponse.requestParamOk(pdaGeneralPublicService.queryBomInfo(whereJson)), HttpStatus.OK); return new ResponseEntity<>(pdaGeneralPublicService.queryBomInfo(whereJson), HttpStatus.OK);
} }
@PostMapping("/queryVehicleType") @PostMapping("/queryVehicleType")
@Log("查询载具类型") @Log("查询载具类型")
@SaIgnore @SaIgnore
public ResponseEntity<Object> queryVehicleType() { public ResponseEntity<Object> queryVehicleType() {
return new ResponseEntity<>(PdaResponse.requestParamOk(pdaGeneralPublicService.queryVehicleType()), HttpStatus.OK); return new ResponseEntity<>(pdaGeneralPublicService.queryVehicleType(), HttpStatus.OK);
} }
} }

View File

@@ -55,6 +55,11 @@ public class PdaUpdatePointServiceImpl implements PdaUpdatePointService {
} }
SchBasePoint pointDao = schBasePointMapper.selectById(whereJson.getString("point_code")); SchBasePoint pointDao = schBasePointMapper.selectById(whereJson.getString("point_code"));
// 判断当前点位是否已经有载具
if (ObjectUtil.isNotEmpty(pointDao.getVehicle_code())) {
throw new BadRequestException("当前点位已存在载具!【"+pointDao.getVehicle_code()+"");
}
pointDao.setVehicle_code(whereJson.getString("storagevehicle_code")); pointDao.setVehicle_code(whereJson.getString("storagevehicle_code"));
schBasePointMapper.updateById(pointDao); schBasePointMapper.updateById(pointDao);
return PdaResponse.requestOk(); return PdaResponse.requestOk();

View File

@@ -44,13 +44,13 @@ public class PdaSmallBoxPublicController {
@Log("查询库区") @Log("查询库区")
@SaIgnore @SaIgnore
public ResponseEntity<Object> querySectCode() { public ResponseEntity<Object> querySectCode() {
return new ResponseEntity<>(PdaResponse.requestParamOk(pdaSmallBoxPublicService.querySectCode()), HttpStatus.OK); return new ResponseEntity<>(pdaSmallBoxPublicService.querySectCode(), HttpStatus.OK);
} }
@PostMapping("/queryInBillType") @PostMapping("/queryInBillType")
@Log("查询入库业务类型") @Log("查询入库业务类型")
@SaIgnore @SaIgnore
public ResponseEntity<Object> queryInBillType() { public ResponseEntity<Object> queryInBillType() {
return new ResponseEntity<>(PdaResponse.requestParamOk(pdaSmallBoxPublicService.queryInBillType()), HttpStatus.OK); return new ResponseEntity<>(pdaSmallBoxPublicService.queryInBillType(), HttpStatus.OK);
} }
} }

View File

@@ -238,12 +238,6 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
if (acsResponse.getStatus() != 200) { if (acsResponse.getStatus() != 200) {
throw new BadRequestException(acsResponse.getMessage()); throw new BadRequestException(acsResponse.getMessage());
} }
// 清空点位信息
pointDao.setVehicle_code("");
pointDao.setPoint_status(IOSEnum.POINT_STATUS.code("空位"));
pointDao.setIng_task_code("");
this.updateById(pointDao);
} }
@Override @Override

View File

@@ -160,10 +160,7 @@ public class DetainInTask extends AbstractTask {
if (ObjectUtil.isEmpty(taskObj)) { if (ObjectUtil.isEmpty(taskObj)) {
throw new BadRequestException("该任务不存在"); throw new BadRequestException("该任务不存在");
} }
rawAssistIStorService.taskFinish(taskObj); this.finishTask(taskObj);
taskObj.setTask_status(TaskStatus.FINISHED.getCode());
taskObj.setRemark("已完成");
taskService.updateById(taskObj);
} }
@Override @Override

View File

@@ -128,6 +128,13 @@ public class VehicleOutServiceImpl implements VehicleOutService {
throw new BadRequestException("暂时没有可用的空载具!"); throw new BadRequestException("暂时没有可用的空载具!");
} }
// 锁定仓位
iStructattrService.update(
new UpdateWrapper<Structattr>().lambda()
.set(Structattr::getLock_type, IOSEnum.LOCK_TYPE.code("空托盘出库锁"))
.eq(Structattr::getStruct_code, structattr.getStruct_code())
);
// 创建任务 // 创建任务
JSONObject jsonTask = new JSONObject(); JSONObject jsonTask = new JSONObject();
jsonTask.put("point_code1", structattr.getStruct_code()); jsonTask.put("point_code1", structattr.getStruct_code());

View File

@@ -267,6 +267,9 @@ export default {
this.crud.notify('载具不能为空!', CRUD.NOTIFICATION_TYPE.INFO) this.crud.notify('载具不能为空!', CRUD.NOTIFICATION_TYPE.INFO)
return return
} }
this.formMst.bom_id = ''
this.formMst.out_type = ''
this.formMst.is_need_delete = ''
crudGroup.copySave(this.formMst).then(row => { crudGroup.copySave(this.formMst).then(row => {
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.close() this.close()

View File

@@ -127,10 +127,9 @@ export default {
this.$emit('update:dialogShow', false) this.$emit('update:dialogShow', false)
}, },
getWeigh() { getWeigh() {
this.formMst.weigh_qty = '20' crudCallMaterialDtl.getWeigh(this.formMst).then(res => {
/* crudCallMaterialDtl.getWeigh(this.formMst).then(res => {
this.formMst.weigh_qty = res.weigh_qty this.formMst.weigh_qty = res.weigh_qty
})*/ })
}, },
saveWeigh() { saveWeigh() {
// 校验称重信息不能为0或者空 // 校验称重信息不能为0或者空

View File

@@ -136,13 +136,12 @@ export default {
this.formMst.material_qty = parseFloat(val) - parseFloat(this.formMst.ivt_qty) this.formMst.material_qty = parseFloat(val) - parseFloat(this.formMst.ivt_qty)
}, },
getWeigh() { getWeigh() {
this.formMst.weight_qty = '100'
this.changeQty(this.formMst.weight_qty) this.changeQty(this.formMst.weight_qty)
/* crudCombinedBox.getWeigh(this.formMst).then(res => { crudCombinedBox.getWeigh(this.formMst).then(res => {
this.formMst.weigh_qty = res.weigh_qty this.formMst.weigh_qty = res.weigh_qty
this.changeQty(res.weight_qty) this.changeQty(res.weight_qty)
this.crud.notify('称重成功!', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify('称重成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
})*/ })
}, },
saveWeigh() { saveWeigh() {
// 校验称重信息不能为0或者空 // 校验称重信息不能为0或者空

View File

@@ -211,13 +211,11 @@ export default {
this.crud.notify('拣选批次不能为空!', CRUD.NOTIFICATION_TYPE.INFO) this.crud.notify('拣选批次不能为空!', CRUD.NOTIFICATION_TYPE.INFO)
return return
} }
this.formMst.weigh_qty = '40' crudSectout.getWeigh(this.current).then(res => {
this.formMst.select_qty = '10'
/* crudSectout.getWeigh(this.current).then(res => {
this.formMst.weigh_qty = res.weigh_qty this.formMst.weigh_qty = res.weigh_qty
this.formMst.select_qty = res.select_qty this.formMst.select_qty = res.select_qty
this.crud.notify('称重成功!', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify('称重成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
})*/ })
}, },
saveWeigh() { saveWeigh() {
// 校验称重信息不能为0或者空 // 校验称重信息不能为0或者空