入库不发U8
This commit is contained in:
@@ -134,6 +134,44 @@ namespace ZR.Admin.WebApi.Controllers.mes.wms
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 4.入库(不传U8)
|
||||
/// </summary>
|
||||
/// <param name="wmgoodsDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("IntoProductwarehouseNoU8")]
|
||||
[Log(Title = "入库(不传U8)")]
|
||||
public IActionResult IntoProductwarehouseNoU8([FromBody] WmgoodsDto wmgoodsDto)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (wmgoodsDto == null)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "传入参数为空", false));
|
||||
}
|
||||
string msg = "";
|
||||
|
||||
string createName = HttpContext.GetName();
|
||||
int num = this.wm_entryWarehousing_productService.IntoProductwarehouseNoU8(wmgoodsDto, createName);
|
||||
if (num == 0)
|
||||
{
|
||||
msg = "入库数为0!";
|
||||
}
|
||||
else if (num >= 1)
|
||||
{
|
||||
msg = "成功入库" + num + "箱";
|
||||
|
||||
|
||||
}
|
||||
return ToResponse(new ApiResult(200, msg, num));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, e.Message, e.Message));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 退货到成品库
|
||||
|
||||
Reference in New Issue
Block a user