This commit is contained in:
qianhao.xu
2024-03-28 09:12:17 +08:00
parent 9e6577f17e
commit 82b945658f
3 changed files with 19 additions and 2 deletions

View File

@@ -212,11 +212,20 @@ namespace ZR.Admin.WebApi.Controllers
/// <param name="shipment_num">出库单号</param>
/// <returns></returns>
[HttpGet("checkProductionOut")]
public IActionResult checkProductionOut(string production_packcode = "", string shipment_num = "")
public IActionResult CheckProductionOut(string production_packcode = "", string shipment_num = "")
{
string msg = "可出库";
if(shipment_num == ""|| production_packcode=="") {
return SUCCESS(null);
return ToResponse(new ApiResult(200, msg, true));
}
bool status=_WmOutOrderService.CheckProductionOut(production_packcode, shipment_num);
if(!status)
{
msg = "箱子,不在出库单内,不得出库";
}
return ToResponse(new ApiResult(200, msg, status));
}
}