毛坯库存同步功能,毛坯库存盘点功能,物料清单毛坯号查询功能,版本不稳定,需要一定时间测试
This commit is contained in:
@@ -109,7 +109,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message, "添加记录失败"));
|
||||
return ToResponse(new ApiResult(500, ex.Message, "添加入库记录失败"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,7 +153,76 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message, "添加记录失败"));
|
||||
return ToResponse(new ApiResult(500, ex.Message, "添加出库记录失败"));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 3.盘点库存
|
||||
/// </summary>
|
||||
/// <param name="fkBlankInventoryId">库存id</param>
|
||||
/// <param name="blankNum">毛坯号</param>
|
||||
/// <param name="changeQuantity">变动量</param>
|
||||
/// <param name="actionTime">操作时间(出库时间)</param>
|
||||
/// <param name="remark">备注</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("doStocktakingBlankInventory")]
|
||||
public IActionResult DoStocktakingBlankInventory(
|
||||
string fkBlankInventoryId,
|
||||
string blankNum,
|
||||
int changeQuantity,
|
||||
string remark,
|
||||
DateTime? actionTime
|
||||
)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (string.IsNullOrEmpty(fkBlankInventoryId))
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "库存id为空!", "库存id为空!"));
|
||||
}
|
||||
if (string.IsNullOrEmpty(blankNum))
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "毛坯号为空!", "毛坯号为空!"));
|
||||
}
|
||||
var response = _WmBlankRecordService.DoStocktakingBlankInventory(
|
||||
fkBlankInventoryId,
|
||||
blankNum,
|
||||
changeQuantity,
|
||||
HttpContext.GetName(),
|
||||
remark,
|
||||
actionTime
|
||||
);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message, "添加盘点记录失败"));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 4.根据工单号出库毛坯
|
||||
/// </summary>
|
||||
[HttpGet("doOutboundByWorkOrderId")]
|
||||
public IActionResult DoOutboundByWorkOrderId(string workOrderId)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (string.IsNullOrEmpty(workOrderId))
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "工单id为空!", "工单id为空!"));
|
||||
}
|
||||
var response = _WmBlankRecordService.DoOutboundByWorkOrderId(
|
||||
workOrderId,
|
||||
0,
|
||||
HttpContext.GetName()
|
||||
);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message, "根据工单号出库毛坯失败"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user