| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | |
| | | /// </summary> |
| | | /// <param name="stock"></param> |
| | | /// <returns></returns> |
| | | [HttpGet,HttpPost,Route("GroupPalletAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> GroupPallet([FromBody]StockDTO stock) |
| | | [HttpGet, HttpPost, Route("GroupPalletAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> GroupPallet([FromBody] StockDTO stock) |
| | | { |
| | | return await Service.GroupPalletAsync(stock); |
| | | } |
| | |
| | | /// </summary> |
| | | /// <param name="stock"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("ChangePalletAsync"),AllowAnonymous] |
| | | [HttpGet, HttpPost, Route("ChangePalletAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> ChangePalletAsync([FromBody] StockDTO stock) |
| | | { |
| | | return await Service.ChangePalletAsync(stock); |
| | |
| | | [HttpPost("SplitPalletConfirm"), AllowAnonymous] |
| | | public async Task<WebResponseContent> SplitPalletConfirm([FromBody] SplitPalletConfirmRequestDto dto) |
| | | { |
| | | return await Service.SplitPalletConfirmAsync(dto.PalletCode); |
| | | return await Service.SplitPalletConfirmAsync(dto.PalletCode, dto.DeviceName); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | [HttpPost("GroupPalletConfirm"), AllowAnonymous] |
| | | public async Task<WebResponseContent> GroupPalletConfirm([FromBody] GroupPalletConfirmRequestDto dto) |
| | | { |
| | | return await Service.GroupPalletConfirmAsync(dto.PalletCode); |
| | | return await Service.GroupPalletConfirmAsync(dto.PalletCode, dto.DeviceName); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 根据托盘号查询库存明细数量 |
| | | /// </summary> |
| | | /// <param name="palletCode">托盘号</param> |
| | | /// <returns>库存明细数量</returns> |
| | | [HttpGet("GetStockDetailCount"), AllowAnonymous] |
| | | public async Task<WebResponseContent> GetStockDetailCount(string palletCode) |
| | | { |
| | | return await Service.GetStockDetailCountByPalletCodeAsync(palletCode); |
| | | } |
| | | } |
| | | } |
| | | } |