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;
///
/// 预约出库
///
public class WmsOutPlanController : ApiController
{
private readonly IWmsOutPlanService _invokeService;
///
/// 构造函数
///
///
public WmsOutPlanController(IWmsOutPlanService invokeService)
{
_invokeService = invokeService;
}
///
/// 预约出库列表
///
///
///
[HttpPost]
[Route("GetWmsOutPlanList")]
public DataResult> GetWmsOutPlanList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 获取预约出库信息
///
///
///
[HttpGet]
[Route("GetWmsOutPlanInfo")]
public DataResult GetWmsOutPlanInfo([FromQuery]string id)
{
var res = _invokeService.GetWmsOutPlanInfo(id);
return res;
}
// ///
// /// 维护预约出库信息
// ///
// ///
// ///
// [HttpPost]
// [Route("EditWmsOutPlanInfo")]
// public DataResult EditWmsOutPlanInfo([FromBody] WmsOutPlanInput model)
// {
// var res = _invokeService.EditWmsOutPlanInfo(model);
// return res;
// }
///
/// 提交审批
///
///
///
[HttpPost]
[Route("AuditWmsOutPlan")]
public DataResult AuditWmsOutPlan([FromBody] CommonAuditInput model)
{
var res = _invokeService.AuditWmsOutPlan(model);
return res;
}
///
///
///
///
///
[HttpGet]
[Route("GetWmsOutPlanGoodsList")]
public DataResult GetWmsOutPlanGoodsList([FromQuery]string id)
{
var res = _invokeService.GetWmsOutPlanGoodsList(id);
return res;
}
}