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.
86 lines
2.3 KiB
C#
86 lines
2.3 KiB
C#
using DS.Module.Core;
|
|
using DS.WMS.Core.BaseInfo.Dtos;
|
|
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 WmsOutPlanController : ApiController
|
|
{
|
|
private readonly IWmsOutPlanService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public WmsOutPlanController(IWmsOutPlanService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 预约出库列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetWmsOutPlanList")]
|
|
public DataResult<List<WmsOutPlanListPageModel>> GetWmsOutPlanList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 获取预约出库信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsOutPlanInfo")]
|
|
public DataResult<WmsOutPlanInfoViewModel> GetWmsOutPlanInfo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetWmsOutPlanInfo(id);
|
|
return res;
|
|
}
|
|
// /// <summary>
|
|
// /// 维护预约出库信息
|
|
// /// </summary>
|
|
// /// <param name="model"></param>
|
|
// /// <returns></returns>
|
|
// [HttpPost]
|
|
// [Route("EditWmsOutPlanInfo")]
|
|
// public DataResult EditWmsOutPlanInfo([FromBody] WmsOutPlanInput model)
|
|
// {
|
|
// var res = _invokeService.EditWmsOutPlanInfo(model);
|
|
// return res;
|
|
// }
|
|
|
|
/// <summary>
|
|
/// 提交审批
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("AuditWmsOutPlan")]
|
|
public DataResult AuditWmsOutPlan([FromBody] CommonAuditInput model)
|
|
{
|
|
var res = _invokeService.AuditWmsOutPlan(model);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsOutPlanGoodsList")]
|
|
public DataResult GetWmsOutPlanGoodsList([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetWmsOutPlanGoodsList(id);
|
|
return res;
|
|
}
|
|
} |