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.
110 lines
2.8 KiB
C#
110 lines
2.8 KiB
C#
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 WmsInDoController : ApiController
|
|
{
|
|
private readonly IWmsInDoService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public WmsInDoController(IWmsInDoService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 入库确认列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetWmsInDoList")]
|
|
public DataResult<List<WmsInDoListPageModel>> GetWmsInDoList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 获取入库确认信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsInDoInfo")]
|
|
public DataResult<WmsInDoInfoViewModel> GetWmsInDoInfo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetWmsInDoInfo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 维护入库确认信息
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("EditWmsInDoInfo")]
|
|
public DataResult EditWmsInDoInfo([FromBody] WmsInDoInput model)
|
|
{
|
|
var res = _invokeService.EditWmsInDoInfo(model);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsInDoGoodsList")]
|
|
public DataResult GetWmsInDoGoodsList([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetWmsInDoGoodsList(id);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 入库确认审核
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("AuditWmsInDo")]
|
|
public DataResult AuditWmsInDo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.AuditWmsInDo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 入库确认取消审核
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("CancelAuditWmsInDo")]
|
|
public DataResult CancelAuditWmsInDo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.CancelAuditWmsInDo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 执行记账
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("AccountWmsInDo")]
|
|
public DataResult AccountWmsInDo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.AccountWmsInDo(id);
|
|
return res;
|
|
}
|
|
} |