1
huangxiaoqiang
8 天以前 4dfe8ece141f05a163cf7d290b6fe4c520d89909
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/StockInfoController.cs
@@ -1,4 +1,6 @@
using WIDESEA_IStorageBasicService;
using WIDESEA_DTO.Basic;
using WIDESEA_DTO.Stock;
using WIDESEA_IStorageBasicService;
namespace WIDESEA_WMSServer.Controllers;
@@ -8,6 +10,50 @@
{
    public StockInfoController(IStockInfoService service) : base(service)
    {
    }
    /// <summary>
    /// æ ¹æ®ç‰©æ–™ç¼–码获取库存可用量视图
    /// </summary>
    /// <param name="materielCode"></param>
    /// <returns></returns>
    [HttpPost, HttpGet, Route("GetStockSelectViews"), AllowAnonymous]
    public List<StockSelectViewDTO> GetStockSelectViews([FromBody] GetStockSelectViewDto viewDto)
    {
        return Service.GetStockSelectViews(viewDto);
    }
    /// <summary>
    /// ç»„盘
    /// </summary>
    /// <param name="groupPlate"></param>
    /// <returns></returns>
    [HttpPost, HttpGet, Route("AddGroupPlateAsync"), AllowAnonymous]
    public Task<WebResponseContent> AddGroupPlateAsync([FromBody] GroupPlate groupPlate)
    {
        return Service.AddGroupPlateAsync(groupPlate);
    }
    /// <summary>
    /// è§£ç›˜
    /// </summary>
    /// <param name="groupPlate"></param>
    /// <returns></returns>
    [HttpPost, HttpGet, Route("DeleteGroupPlateAsync"), AllowAnonymous]
    public async Task<WebResponseContent> DeleteGroupPlateAsync([FromBody] GroupPlate groupPlate)
    {
        return await Service.DeleteGroupPlateAsync(groupPlate);
    }
    /// <summary>
    /// PDA获取库存视图
    /// </summary>
    /// <param name="groupPlate"></param>
    /// <returns></returns>
    [HttpPost, HttpGet, Route("GetStockView"), AllowAnonymous]
    public WebResponseContent GetStockView([FromBody] GetStockSelectViewDto viewDto)
    {
        return Service.GetStockView(viewDto);
    }
}