wanshenmean
2026-03-17 94ad631d316da04c46266ddb1fc6e63e6f8f2fae
Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs
@@ -4,7 +4,7 @@
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;
@@ -79,6 +79,17 @@
        }
        /// <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>
@@ -90,12 +101,67 @@
        }
        /// <summary>
        /// 创建空托盘出库任务
        /// </summary>
        /// <param name="taskDto"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("CreateTaskInboundTray"), AllowAnonymous]
        public async Task<WebResponseContent?> CreateTaskInboundTrayAsync([FromBody] CreateTaskDto taskDto)
        {
            return await Service.CreateTaskInboundTrayAsync(taskDto);
        }
        /// <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);
        }
@@ -106,7 +172,7 @@
        /// <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);
        }
@@ -117,7 +183,7 @@
        /// <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);
        }
@@ -128,7 +194,7 @@
        /// <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);
        }