| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System.DirectoryServices.Protocols; |
| | | using WIDESEA_Common.CommonEnum; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("CreateTaskInbound"),AllowAnonymous] |
| | | [HttpGet, HttpPost, Route("CreateTaskInbound"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> CreateTaskInboundAsync([FromBody] CreateTaskDto taskDto) |
| | | { |
| | | return await Service.CreateTaskInboundAsync(taskDto); |
| | |
| | | public async Task<WebResponseContent?> CreateTaskOutboundAsync([FromBody] CreateTaskDto taskDto) |
| | | { |
| | | return await Service.CreateTaskOutboundAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 手动创建任务 |
| | | /// </summary> |
| | | /// <param name="dto">手动创建任务参数</param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("CreateManualTask"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> CreateManualTaskAsync([FromBody] CreateManualTaskDto dto) |
| | | { |
| | | return await Service.CreateManualTaskAsync(dto); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建空托盘出库任务 |
| | | /// 创建空托盘入库任务 |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 空托盘出库完成 |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("OutboundFinishTaskTray"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> OutboundFinishTaskTrayAsync([FromBody] CreateTaskDto taskDto) |
| | | { |
| | | return await Service.OutboundFinishTaskTrayAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改任务状态(根据任务ID修改为指定状态) |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | |
| | | [HttpGet, HttpPost, Route("UpdateTaskByStatus"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> UpdateTaskByStatusAsync([FromBody] UpdateTaskDto taskDto) |
| | | { |
| | | return await Service.UpdateTaskByStatusAsync(taskDto.Id, taskDto.NewStatus); |
| | | return await Service.UpdateTaskByStatusAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route(" CreateRobotChangePalletTask"), AllowAnonymous] |
| | | [HttpGet, HttpPost, Route("CreateRobotChangePalletTask"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> CreateRobotChangePalletTaskAsync([FromBody] StockDTO taskDto) |
| | | { |
| | | return await Service.CreateRobotChangePalletTaskAsync(taskDto); |
| | |
| | | { |
| | | return await Service.GetPalletCodeCellAsync(input); |
| | | } |
| | | |
| | | #region 极卷库任务模块 |
| | | |
| | | /// <summary> |
| | | /// 出入库申请 |
| | | /// </summary> |
| | | /// <param name="applyInOutDto">请求参数</param> |
| | | /// <returns></returns> |
| | | [HttpPost("ApplyInOut"), AllowAnonymous] |
| | | public async Task<AGVResponse> ApplyInOutAsync([FromBody] ApplyInOutDto applyInOutDto) |
| | | { |
| | | return await Service.ApplyInOutAsync(applyInOutDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 手动出库完成反馈给AGV |
| | | /// </summary> |
| | | /// <param name="outTaskCompleteDto">请求参数</param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("OutTaskComplete"), AllowAnonymous] |
| | | public async Task<WebResponseContent> OutTaskComplete([FromBody] OutTaskCompleteDto outTaskCompleteDto) |
| | | { |
| | | return await Service.OutTaskComplete(outTaskCompleteDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 输送线申请进入 |
| | | /// </summary> |
| | | /// <param name="applyEnterDto">请求参数</param> |
| | | /// <returns></returns> |
| | | [HttpPost("ApplyEnter"), AllowAnonymous] |
| | | public async Task<AGVResponse?> ApplyEnterAsync([FromBody] ApplyEnterDto applyEnterDto) |
| | | { |
| | | return await Service.ApplyEnterAsync(applyEnterDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 取放货完成 |
| | | /// </summary> |
| | | /// <param name="taskCompleteDto">请求参数</param> |
| | | /// <returns></returns> |
| | | [HttpPost("TaskComplete"), AllowAnonymous] |
| | | public async Task<AGVResponse?> TaskCompleteAsync([FromBody] TaskCompleteDto taskCompleteDto) |
| | | { |
| | | return await Service.TaskCompleteAsync(taskCompleteDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 任务取消 |
| | | /// </summary> |
| | | /// <param name="taskCancelDto">请求参数</param> |
| | | /// <returns></returns> |
| | | [HttpPost("TaskCancel"), AllowAnonymous] |
| | | public async Task<AGVResponse?> TaskCancelAsync([FromBody] TaskCancelDto taskCancelDto) |
| | | { |
| | | return await Service.TaskCancelAsync(taskCancelDto); |
| | | } |
| | | |
| | | #endregion 极卷库任务模块 |
| | | } |
| | | } |
| | | } |