feat(库存管理): 添加出货操作功能
实现物料出货功能,包括库存校验、事务处理、单据生成和关联订单/工单更新 支持蓝单正向和红单逆向操作,包含完整的参数校验和错误处理
This commit is contained in:
@@ -288,5 +288,32 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 出货操作
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("Shipment")]
|
||||
[AllowAnonymous]
|
||||
[Log(Title = "出货操作", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult Shipment([FromBody] ShipmentDto parm)
|
||||
{
|
||||
try
|
||||
{
|
||||
string response = _MmInventoryService.Shipment(parm);
|
||||
if (response == "ok")
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "ok"));
|
||||
}
|
||||
else
|
||||
{
|
||||
return ToResponse(new ApiResult(500, response));
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user