1
huangxiaoqiang
2025-10-22 d4b0b578752a1478f6c11b352fbb8d2bad1f9e1d
ÏîÄ¿´úÂë/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,45 @@
{
    public StockInfoController(IStockInfoService service) : base(service)
    {
    }
    /// <summary>
    /// æ ¹æ®ç‰©æ–™ç¼–码获取库存可用量视图
    /// </summary>
    /// <param name="materielCode"></param>
    /// <returns></returns>
    [HttpPost, HttpGet, Route("GetStockSelectViews"), AllowAnonymous]
    public List<StockSelectViewDTO> GetStockSelectViews(string materielCode)
    {
        return Service.GetStockSelectViews(materielCode);
    }
    /// <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 Task<WebResponseContent> DeleteGroupPlateAsync([FromBody] GroupPlate groupPlate)
    {
        return Service.DeleteGroupPlateAsync(groupPlate);
    }
    [HttpPost, HttpGet, Route("GenerateOutboundTask"), AllowAnonymous]
    public WebResponseContent GenerateOutboundTask([FromBody] GenerateOutTaskDto requestOut)
    {
        return Service.GenerateOutboundTask(requestOut);
    }
}