2024-04-18 11:34:49 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using ZR.Model.Dto;
|
|
|
|
|
|
using ZR.Service.Business.IBusinessService;
|
|
|
|
|
|
using ZR.Admin.WebApi.Extensions;
|
|
|
|
|
|
using ZR.Admin.WebApi.Filters;
|
|
|
|
|
|
using ZR.Model.MES.wms.Dto;
|
|
|
|
|
|
using ZR.Service.mes.wms.IService;
|
|
|
|
|
|
using ZR.Model.MES.wms;
|
|
|
|
|
|
|
|
|
|
|
|
//创建时间:2024-04-18
|
|
|
|
|
|
namespace ZR.Admin.WebApi.Controllers
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 仓库操作
|
|
|
|
|
|
/// </summary>
|
2024-04-18 17:02:17 +08:00
|
|
|
|
// [Verify]
|
2024-04-18 11:34:49 +08:00
|
|
|
|
[Route("/mes/wm/WmGoodsAction")]
|
|
|
|
|
|
public class WmGoodsActionController : BaseController
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 仓库操作
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
private readonly IWmGoodsChangeLogService _WmGoodsChangeLogService;
|
|
|
|
|
|
private readonly IWmGoodsActionService _WmGoodsActionService;
|
|
|
|
|
|
|
|
|
|
|
|
public WmGoodsActionController(IWmGoodsChangeLogService WmGoodsChangeLogService, IWmGoodsActionService wmGoodsActionService)
|
|
|
|
|
|
{
|
|
|
|
|
|
_WmGoodsChangeLogService = WmGoodsChangeLogService;
|
|
|
|
|
|
_WmGoodsActionService = wmGoodsActionService;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 拼箱
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("doConsolidationGoods")]
|
|
|
|
|
|
[Log(Title = "拼箱", BusinessType = BusinessType.UPDATE)]
|
|
|
|
|
|
public IActionResult doConsolidationGoods([FromBody] WmGoodsConsolidationDto parm)
|
|
|
|
|
|
{
|
|
|
|
|
|
WmGoodsChangeLog response = _WmGoodsActionService.doConsolidationGoods(parm);
|
2024-04-18 17:02:17 +08:00
|
|
|
|
if(response == null)
|
|
|
|
|
|
{
|
|
|
|
|
|
return ToResponse(new ApiResult(500, "拼箱异常!", "拼箱异常!"));
|
|
|
|
|
|
}
|
2024-04-18 11:34:49 +08:00
|
|
|
|
return SUCCESS(response);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 拆箱
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("doUnpackingGoods")]
|
|
|
|
|
|
[Log(Title = "拆箱", BusinessType = BusinessType.UPDATE)]
|
|
|
|
|
|
public IActionResult doUnpackingGoods([FromBody] WmGoodsUnpackingDto parm)
|
|
|
|
|
|
{
|
|
|
|
|
|
WmGoodsChangeLog response = _WmGoodsActionService.doUnpackingGoods(parm);
|
|
|
|
|
|
return SUCCESS(response);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|