Merge branch 'production' of https://gitee.com/doan-tech/shanghaigangxiangtuzhuangMES
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace ZR.Service.mes.wms.IService
|
||||
|
||||
|
||||
bool OverOutorderplan(string shipment_num);
|
||||
bool CheckProductionOut(string production_packcode, string shipment_num);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user