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.
122 lines
3.2 KiB
C#
122 lines
3.2 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 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>
|
|
[HttpPost]
|
|
[Route("AuditWmsInPlan")]
|
|
public DataResult AuditWmsInPlan([FromBody] CommonAuditInput model)
|
|
{
|
|
var res = _invokeService.AuditWmsInPlan(model);
|
|
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;
|
|
}
|
|
/// <summary>
|
|
/// 获取费率信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsInPlanFeeRateList")]
|
|
public DataResult GetWmsInPlanFeeRateList([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetWmsInPlanFeeRateList(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 加载协议客户费率
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("LoadWmsFeeRate")]
|
|
public DataResult LoadWmsFeeRate([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.LoadWmsFeeRate(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 保存计划费率
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("SaveWmsInPlanFeeRate")]
|
|
public DataResult SaveWmsInPlanFeeRate([FromBody] WmsInPlanFeeRateInput model)
|
|
{
|
|
var res = _invokeService.SaveWmsInPlanFeeRate(model);
|
|
return res;
|
|
}
|
|
} |