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.
98 lines
2.5 KiB
C#
98 lines
2.5 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 WmsOutDoController : ApiController
|
|
{
|
|
private readonly IWmsOutDoService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public WmsOutDoController(IWmsOutDoService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 出库确认列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetWmsOutDoList")]
|
|
public DataResult<List<WmsOutDoListPageModel>> GetWmsOutDoList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 获取出库确认信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsOutDoInfo")]
|
|
public DataResult<WmsOutDoInfoViewModel> GetWmsOutDoInfo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetWmsOutDoInfo(id);
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsOutDoGoodsList")]
|
|
public DataResult GetWmsOutDoGoodsList([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetWmsOutDoGoodsList(id);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 入库确认审核
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("AuditWmsOutDo")]
|
|
public DataResult AuditWmsOutDo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.AuditWmsOutDo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 入库确认取消审核
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("CancelAuditWmsOutDo")]
|
|
public DataResult CancelAuditWmsOutDo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.CancelAuditWmsOutDo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 执行记账
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("AccountWmsOutDo")]
|
|
public DataResult AccountWmsOutDo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.AccountWmsOutDo(id);
|
|
return res;
|
|
}
|
|
} |