1
wanshenmean
6 小时以前 b698a2085fd090e90abedb1e91266ec496574b29
Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Stock/StockController.cs
@@ -26,7 +26,7 @@
        /// <param name="stock"></param>
        /// <returns></returns>
        [HttpGet,HttpPost,Route("GroupPalletAsync"), AllowAnonymous]
        public async Task<bool> GroupPallet([FromBody]StockDTO stock)
        public async Task<WebResponseContent> GroupPallet([FromBody]StockDTO stock)
        {
            return await Service.GroupPalletAsync(stock);
        }
@@ -37,7 +37,7 @@
        /// <param name="stock"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("ChangePalletAsync"),AllowAnonymous]
        public async Task<bool> ChangePalletAsync([FromBody] StockDTO stock)
        public async Task<WebResponseContent> ChangePalletAsync([FromBody] StockDTO stock)
        {
            return await Service.ChangePalletAsync(stock);
        }
@@ -48,7 +48,7 @@
        /// <param name="stock"></param>
        /// <returns></returns>
        [HttpGet, HttpPost, Route("SplitPalletAsync"), AllowAnonymous]
        public async Task<bool> SplitPalletAsync([FromBody] StockDTO stock)
        public async Task<WebResponseContent> SplitPalletAsync([FromBody] StockDTO stock)
        {
            return await Service.SplitPalletAsync(stock);
        }
@@ -63,5 +63,27 @@
        {
            return await Service.UpdateStockInfoAsync(stock);
        }
        /// <summary>
        /// 批量拆盘确认 - WCS拆盘任务全部取完时调用
        /// </summary>
        /// <param name="dto">拆盘确认请求</param>
        /// <returns>操作结果</returns>
        [HttpPost("SplitPalletConfirm"), AllowAnonymous]
        public async Task<WebResponseContent> SplitPalletConfirm([FromBody] SplitPalletConfirmRequestDto dto)
        {
            return await Service.SplitPalletConfirmAsync(dto.PalletCode);
        }
        /// <summary>
        /// 批量组盘确认 - WCS组盘任务全部放完时调用
        /// </summary>
        /// <param name="dto">组盘确认请求</param>
        /// <returns>操作结果</returns>
        [HttpPost("GroupPalletConfirm"), AllowAnonymous]
        public async Task<WebResponseContent> GroupPalletConfirm([FromBody] GroupPalletConfirmRequestDto dto)
        {
            return await Service.GroupPalletConfirmAsync(dto.PalletCode);
        }
    }
}