|
|
|
using DS.Module.Core;
|
|
|
|
using DS.WMS.Core.WmsModule.Dtos;
|
|
|
|
using DS.WMS.Core.WmsModule.Interface;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
namespace DS.WMS.WebApi.Controllers;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 预约入库
|
|
|
|
/// </summary>
|
|
|
|
public class WmsInPlanController : ApiController
|
|
|
|
{
|
|
|
|
private readonly IWmsInPlanService _invokeService;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 构造函数
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
public WmsInPlanController(IWmsInPlanService invokeService)
|
|
|
|
{
|
|
|
|
_invokeService = invokeService;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 预约入库列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
[Route("GetWmsInPlanList")]
|
|
|
|
public DataResult<List<WmsInPlanListPageModel>> GetWmsInPlanList([FromBody] PageRequest request)
|
|
|
|
{
|
|
|
|
var res = _invokeService.GetListByPage(request);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// 获取预约入库信息
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet]
|
|
|
|
[Route("GetWmsInPlanInfo")]
|
|
|
|
public DataResult<WmsInPlanInfoViewModel> GetWmsInPlanInfo([FromQuery]string id)
|
|
|
|
{
|
|
|
|
var res = _invokeService.GetWmsInPlanInfo(id);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// 维护预约入库信息
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="model"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
[Route("EditWmsInPlanInfo")]
|
|
|
|
public DataResult EditWmsInPlanInfo([FromBody] WmsInPlanInput model)
|
|
|
|
{
|
|
|
|
var res = _invokeService.EditWmsInPlanInfo(model);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// 提交审核
|
|
|
|
// /// </summary>
|
|
|
|
// /// <param name="id"></param>
|
|
|
|
// /// <returns></returns>
|
|
|
|
// [HttpGet]
|
|
|
|
// [Route("SubmitWmsInPlan")]
|
|
|
|
// public DataResult SubmitWmsInPlan([FromQuery]string id)
|
|
|
|
// {
|
|
|
|
// var res = _invokeService.SubmitWmsInPlan(id);
|
|
|
|
// return res;
|
|
|
|
// }
|
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet]
|
|
|
|
[Route("GetWmsInPlanGoodsList")]
|
|
|
|
public DataResult GetWmsInPlanGoodsList([FromQuery]string id)
|
|
|
|
{
|
|
|
|
var res = _invokeService.GetWmsInPlanGoodsList(id);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|