| | |
| | | using WIDESEA_Common.CommonEnum; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_DTO.GradingMachine; |
| | | using WIDESEA_DTO.Stock; |
| | | using WIDESEA_DTO.Task; |
| | | using WIDESEA_ITaskInfoService; |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 移库任务完成:修改库存位置与状态,修改源/目标货位状态,删除任务数据 |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("RelocationFinishTask"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> RelocationFinishTaskAsync([FromBody] CreateTaskDto taskDto) |
| | | { |
| | | return await Service.RelocationFinishTaskAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建空托盘出库任务 |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改任务状态(根据任务ID修改为指定状态) |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("UpdateTaskByStatus"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> UpdateTaskByStatusAsync([FromBody] UpdateTaskDto taskDto) |
| | | { |
| | | return await Service.UpdateTaskByStatusAsync(taskDto.Id, taskDto.NewStatus); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建机械手组盘任务 |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("CreateRobotGroupPalletTask"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> CreateRobotGroupPalletTaskAsync([FromBody] StockDTO taskDto) |
| | | { |
| | | return await Service.CreateRobotGroupPalletTaskAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建机械手拆盘任务 |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("CreateRobotSplitPalletTask"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> CreateRobotSplitPalletTaskAsync([FromBody] StockDTO taskDto) |
| | | { |
| | | return await Service.CreateRobotSplitPalletTaskAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建机械手换盘任务 |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("CreateRobotChangePalletTask"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> CreateRobotChangePalletTaskAsync([FromBody] StockDTO taskDto) |
| | | { |
| | | return await Service.CreateRobotChangePalletTaskAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 堆垛机取放货完成后物流通知化成分容柜完成信号 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("InOrOutCompleted"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> InOrOutCompletedAsync([FromBody] InputDto input) |
| | | public async Task<WebResponseContent?> InOrOutCompletedAsync([FromBody] GradingMachineInputDto input) |
| | | { |
| | | return await Service.InOrOutCompletedAsync(input); |
| | | } |
| | |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("SendLocationStatus"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> SendLocationStatusAsync([FromBody] InputDto input) |
| | | public async Task<WebResponseContent?> SendLocationStatusAsync([FromBody] GradingMachineInputDto input) |
| | | { |
| | | return await Service.SendLocationStatusAsync(input); |
| | | } |
| | |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("RequestOutbound"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> RequestOutboundAsync([FromBody] InputDto input) |
| | | public async Task<WebResponseContent?> RequestOutboundAsync([FromBody] GradingMachineInputDto input) |
| | | { |
| | | return await Service.RequestOutboundAsync(input); |
| | | } |
| | |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("GetPalletCodeCell"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> GetPalletCodeCellAsync([FromBody] InputDto input) |
| | | public async Task<WebResponseContent?> GetPalletCodeCellAsync([FromBody] GradingMachineInputDto input) |
| | | { |
| | | return await Service.GetPalletCodeCellAsync(input); |
| | | } |