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