WMS仓库-解析箱标签功能提取到MaterialUtils内,入库,出库判断接口优化,入库添加新标签编码解析
This commit is contained in:
@@ -214,18 +214,18 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
[HttpGet("checkProductionOut")]
|
||||
public IActionResult CheckProductionOut(string production_packcode = "", string shipment_num = "")
|
||||
{
|
||||
string msg = "可出库";
|
||||
if(shipment_num == ""|| production_packcode=="") {
|
||||
return SUCCESS(null);
|
||||
|
||||
}
|
||||
bool status=_WmOutOrderService.CheckProductionOut(production_packcode, shipment_num);
|
||||
if(!status)
|
||||
string msg = "";
|
||||
msg = _WmOutOrderService.CheckProductionOut(production_packcode, shipment_num);
|
||||
if(msg !="ok")
|
||||
{
|
||||
msg = "箱子,不在出库单内,不得出库";
|
||||
return ToResponse(new ApiResult(200, msg, false));
|
||||
}
|
||||
else
|
||||
{
|
||||
return ToResponse(new ApiResult(200, msg, true));
|
||||
}
|
||||
|
||||
return ToResponse(new ApiResult(200, msg, status));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user