首检添加数据看板
This commit is contained in:
@@ -69,7 +69,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
var modal = parm.ToCreate(HttpContext);
|
||||
|
||||
var response = _WmOutOrderService.AddWmOutOrder(modal);
|
||||
if(response == null)
|
||||
if (response == null)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "数据存在异常请检查", "数据存在异常请检查"));
|
||||
}
|
||||
@@ -178,14 +178,14 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
/// <param name="shipment_num"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("persistenceOutorderplan")]
|
||||
public IActionResult PersistenceOutorderplan(string shipment_num)
|
||||
public IActionResult PersistenceOutorderplan(string shipment_num)
|
||||
{
|
||||
if (shipment_num == null)
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
int result= _WmOutOrderService.PersistenceOutorderplan(shipment_num);
|
||||
return SUCCESS(result);
|
||||
int result = _WmOutOrderService.PersistenceOutorderplan(shipment_num);
|
||||
return SUCCESS(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -226,14 +226,14 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
/// <param name="partnumber">物料号(零件号)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("getOutOrderPlanAndOutProductionNum")]
|
||||
public IActionResult GetOutOrderPlanAndOutProductionNum(string shipment_num,string partnumber)
|
||||
public IActionResult GetOutOrderPlanAndOutProductionNum(string shipment_num, string partnumber)
|
||||
{
|
||||
if (shipment_num == null)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "传入工单号为空!", "传入工单号为空!"));
|
||||
}
|
||||
var result = _WmOutOrderService.GetOutOrderPlanAndOutProductionNum(shipment_num, partnumber);
|
||||
if(result == null)
|
||||
if (result == null)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "获取计划异常!", "获取计划异常!"));
|
||||
}
|
||||
@@ -286,21 +286,22 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
/// <param name="shipment_num">出库单号</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("checkProductionOut")]
|
||||
public IActionResult CheckProductionOut( string partnumber,string production_packcode = "", string shipment_num = "")
|
||||
public IActionResult CheckProductionOut(string partnumber, string production_packcode = "", string shipment_num = "")
|
||||
{
|
||||
if(string.IsNullOrEmpty(partnumber)) {
|
||||
return ToResponse(new ApiResult(200, "请选择物料号", false));
|
||||
if (string.IsNullOrEmpty(partnumber))
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "请选择物料号", false));
|
||||
}
|
||||
string msg = "";
|
||||
msg = _WmOutOrderService.CheckProductionOut(partnumber, production_packcode, shipment_num);
|
||||
if(msg !="ok")
|
||||
if (msg != "ok")
|
||||
{
|
||||
return ToResponse(new ApiResult(200, msg, false));
|
||||
}
|
||||
else
|
||||
{
|
||||
return ToResponse(new ApiResult(200, msg, true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user