| | |
| | | /************************** 手动操作 ******************************/ |
| | | /****************************************************************/ |
| | | |
| | | @ManagerAuth(memo = "入库") |
| | | @PostMapping("/operator/put") |
| | | public R crnPut(CrnOperatorParam param){ |
| | | CrnCommand command = new CrnCommand(); |
| | | command.setCrnNo(param.getCrnNo()); // 堆垛机编号 |
| | | command.setTaskNo((short) 0); // 工作号 |
| | | command.setAckFinish((short) 0); // 任务完成确认位 |
| | | command.setTaskMode(CrnTaskModeType.PAKIN); // 任务模式 |
| | | command.setSourcePosX(param.getSourceRow()); // 源库位排 |
| | | command.setSourcePosY(param.getSourceBay()); // 源库位列 |
| | | command.setSourcePosZ(param.getSourceLev()); // 源库位层 |
| | | command.setDestinationPosX(param.getRow()); // 目标库位排 |
| | | command.setDestinationPosY(param.getBay()); // 目标库位列 |
| | | command.setDestinationPosZ(param.getLev()); // 目标库位层 |
| | | boolean locSts = isLocSts(param.getRow().toString(), param.getBay().toString(), param.getLev().toString()); |
| | | command.setTraySize(locSts); |
| | | return crnControl(command)?R.ok():R.error(); |
| | | } |
| | | // @ManagerAuth(memo = "入库") |
| | | // @PostMapping("/operator/put") |
| | | // public R crnPut(CrnOperatorParam param){ |
| | | // CrnCommand command = new CrnCommand(); |
| | | // command.setCrnNo(param.getCrnNo()); // 堆垛机编号 |
| | | // command.setTaskNo((short) 0); // 工作号 |
| | | // command.setAckFinish((short) 0); // 任务完成确认位 |
| | | // command.setTaskMode(CrnTaskModeType.PAKIN); // 任务模式 |
| | | // command.setSourcePosX(param.getSourceRow()); // 源库位排 |
| | | // command.setSourcePosY(param.getSourceBay()); // 源库位列 |
| | | // command.setSourcePosZ(param.getSourceLev()); // 源库位层 |
| | | // command.setDestinationPosX(param.getRow()); // 目标库位排 |
| | | // command.setDestinationPosY(param.getBay()); // 目标库位列 |
| | | // command.setDestinationPosZ(param.getLev()); // 目标库位层 |
| | | // boolean locSts = isLocSts(param.getRow().toString(), param.getBay().toString(), param.getLev().toString()); |
| | | // command.setTraySize(locSts); |
| | | // return crnControl(command)?R.ok():R.error(); |
| | | // } |
| | | |
| | | @ManagerAuth(memo = "出库") |
| | | @PostMapping("/operator/take") |
| | | public R crnTake(CrnOperatorParam param){ |
| | | CrnCommand command = new CrnCommand(); |
| | | command.setCrnNo(param.getCrnNo()); // 堆垛机编号 |
| | | command.setTaskNo((short) 0); // 工作号 |
| | | command.setAckFinish((short) 0); // 任务完成确认位 |
| | | command.setTaskMode(CrnTaskModeType.PAKOUT); // 任务模式 |
| | | command.setSourcePosX(param.getSourceRow()); // 源库位排 |
| | | command.setSourcePosY(param.getSourceBay()); // 源库位列 |
| | | command.setSourcePosZ(param.getSourceLev()); // 源库位层 |
| | | command.setDestinationPosX(param.getRow()); // 目标库位排 |
| | | command.setDestinationPosY(param.getBay()); // 目标库位列 |
| | | command.setDestinationPosZ(param.getLev()); // 目标库位层 |
| | | boolean locSts = isLocSts(param.getSourceRow().toString(), param.getSourceBay().toString(), param.getSourceLev().toString()); |
| | | command.setTraySize(locSts); |
| | | return crnControl(command)?R.ok():R.error(); |
| | | } |
| | | // @ManagerAuth(memo = "出库") |
| | | // @PostMapping("/operator/take") |
| | | // public R crnTake(CrnOperatorParam param){ |
| | | // CrnCommand command = new CrnCommand(); |
| | | // command.setCrnNo(param.getCrnNo()); // 堆垛机编号 |
| | | // command.setTaskNo((short) 0); // 工作号 |
| | | // command.setAckFinish((short) 0); // 任务完成确认位 |
| | | // command.setTaskMode(CrnTaskModeType.PAKOUT); // 任务模式 |
| | | // command.setSourcePosX(param.getSourceRow()); // 源库位排 |
| | | // command.setSourcePosY(param.getSourceBay()); // 源库位列 |
| | | // command.setSourcePosZ(param.getSourceLev()); // 源库位层 |
| | | // command.setDestinationPosX(param.getRow()); // 目标库位排 |
| | | // command.setDestinationPosY(param.getBay()); // 目标库位列 |
| | | // command.setDestinationPosZ(param.getLev()); // 目标库位层 |
| | | // boolean locSts = isLocSts(param.getSourceRow().toString(), param.getSourceBay().toString(), param.getSourceLev().toString()); |
| | | // command.setTraySize(locSts); |
| | | // return crnControl(command)?R.ok():R.error(); |
| | | // } |
| | | |
| | | @ManagerAuth(memo = "库位转移") |
| | | @PostMapping("/operator/stockMove") |