| | |
| | | shuttleProtocol.setProtocolStatus(ShuttleProtocolStatusType.IDLE);//任务状态-空闲 |
| | | shuttleProtocol.setPakMk(true);//作业标记复位 |
| | | return R.ok(); |
| | | } else if (shuttleTaskModeType == ShuttleTaskModeType.SHUTTLE_CONTROL) { |
| | | //小车管制 |
| | | NyShuttleHttpCommand suspendCommand = NyHttpUtils.getSuspendCommand(shuttleSlave.getId(), assignCommand.getTaskNo().intValue(), true); |
| | | ArrayList<NyShuttleHttpCommand> commands = new ArrayList<>(); |
| | | commands.add(suspendCommand); |
| | | assignCommand.setCommands(commands); |
| | | } else if (shuttleTaskModeType == ShuttleTaskModeType.SHUTTLE_CANCEL_CONTROL) { |
| | | //小车取消管制 |
| | | NyShuttleHttpCommand suspendCommand = NyHttpUtils.getSuspendCommand(shuttleSlave.getId(), assignCommand.getTaskNo().intValue(), false); |
| | | ArrayList<NyShuttleHttpCommand> commands = new ArrayList<>(); |
| | | commands.add(suspendCommand); |
| | | assignCommand.setCommands(commands); |
| | | } else { |
| | | throw new CoolException("未知命令"); |
| | | } |
| | |
| | | TRANSPORT(18, "搬运任务"), |
| | | SHUTTLE_MOVE_LOC_NO(19, "小车移库任务"), |
| | | SHUTTLE_LOC_TO_LOC(20, "库位移转"), |
| | | SHUTTLE_CONTROL(21, "小车管制"), |
| | | SHUTTLE_CANCEL_CONTROL(22, "小车取消管制"), |
| | | ; |
| | | |
| | | public Integer id; |
| | |
| | | <button class="item" onclick="shuttleOperator(4)">托盘下降</button> |
| | | <button class="item" onclick="shuttleOperator(15)">充电开关</button> |
| | | <button class="item" onclick="shuttleOperator(9)">复位</button> |
| | | <button class="item" onclick="shuttleOperator(21)">管制</button> |
| | | <button class="item" onclick="shuttleOperator(22)">取消管制</button> |
| | | </div> |
| | | </div> |
| | | </div> |