This commit is contained in:
赵正易
2024-03-28 09:18:26 +08:00
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));
}
}

View File

@@ -35,6 +35,8 @@ namespace ZR.Service.mes.wms.IService
bool OverOutorderplan(string shipment_num);
bool CheckProductionOut(string production_packcode, string shipment_num);
}
}

View File

@@ -474,5 +474,11 @@ namespace ZR.Service.mes.wms
string temp = bath_code.Split("_")[0];
return "20" + temp.Substring(2, 6);
}
public bool CheckProductionOut(string production_packcode, string shipment_num)
{
}
}
}