You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.9 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.App.Dtos;
using DS.WMS.Core.App.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.AppApi.Controllers;
public class AppStockInController : ApiController
{
private readonly IAppStockInService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public AppStockInController(IAppStockInService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 获取入库计划
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("GetStockInPlanList")]
public DataResult<List<StockInPlanListViewModel>> GetStockInPlanList([FromBody] StockInPlanQueryModel model)
{
var res = _invokeService.GetStockInPlanList(model);
return res;
}
/// <summary>
/// 获取入库计划相关信息
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("GetStockInSummaryInfo")]
public DataResult GetStockInSummaryInfo([FromBody] StockInPlanQueryModel model)
{
var res = _invokeService.GetStockInSummaryInfo(model);
return res;
}
/// <summary>
/// 获取计划明细信息
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("GetStockInGoodsInfo")]
public DataResult GetStockInGoodsInfo([FromBody] StockGoodsQueryModel model)
{
var res = _invokeService.GetStockInGoodsInfo(model);
return res;
}
/// <summary>
/// 入库确认
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("StockInBatch")]
public DataResult StockInBatch([FromBody] StockInPlanGoodsBatchInput model)
{
var res = _invokeService.StockInBatch(model);
return res;
}
}