using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_Common;
|
using WIDESEA_Core;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_DTO.Inbound;
|
using WIDESEA_IInboundService;
|
using WIDESEA_Model.Models;
|
|
namespace WIDESEA_WMSServer.Controllers.Inbound
|
{
|
[Route("api/InboundOrder")]
|
[ApiController]
|
public class InboundOrderController : ApiBaseController<IInboundOrderService, Dt_InboundOrder>
|
{
|
public InboundOrderController(IInboundOrderService service) : base(service)
|
{
|
}
|
/// <summary>
|
/// WMS下发入库单据
|
/// </summary>
|
/// <param name="orderAddDTO"></param>
|
/// <returns></returns>
|
[HttpPost, Route("AddInboundOrders"), AllowAnonymous]
|
public WebResponseContent AddInboundOrders([FromBody] HouseInbound orderAddDTO)
|
{
|
return Service.AddInboundOrders(orderAddDTO);
|
}
|
/// <summary>
|
/// 盘点完成入库
|
/// </summary>
|
/// <param name="name"></param>
|
/// <returns></returns>
|
[HttpPost, Route("InventoryIn"), AllowAnonymous]
|
public WebResponseContent InventoryIn([FromBody] string name)
|
{
|
return Service.InventoryIn(name);
|
}
|
/// <summary>
|
/// 入库单据取消
|
/// </summary>
|
/// <param name="houseCancelIn"></param>
|
/// <returns></returns>
|
[HttpPost, Route("CancelIn"), AllowAnonymous]
|
public WebResponseContent CancelIn([FromBody] HouseCancelIn houseCancelIn)
|
{
|
return Service.CancelIn(houseCancelIn);
|
}
|
|
}
|
}
|