抛光,后道,GP12质量报表逻辑变动,看板逻辑变动

This commit is contained in:
2024-10-24 10:31:37 +08:00
parent 38c7c4ff83
commit 0f3232d32b
7 changed files with 105 additions and 25 deletions

View File

@@ -118,7 +118,16 @@ namespace ZR.Service.mes.wms
throw new Exception("投入数与合格数,打磨数,报废数不符合,请检查");
}
model.Id = SnowFlakeSingle.instance.NextId().ToString();
model.Type = 0;
if(model.IsOutbound)
{
model.Type = 1;
model.Remark += "[直接出库]";
}
else
{
model.Type = 0;
}
decimal qualifiedRate = 0.0m;
if (model.QualifiedNumber != 0)
{
@@ -134,6 +143,9 @@ namespace ZR.Service.mes.wms
Context.Ado.RollbackTran();
throw new Exception("插入抛光操作记录失败");
}
// TODO 20241023 不再变动抛光仓库盘点数据
Context.Ado.CommitTran();
return res0;
WmPolishInventoryService inventoryService = new();
WmOneTimeInventoryService oneTimeService = new();
//抛光品直接出库到GP12
@@ -248,6 +260,14 @@ namespace ZR.Service.mes.wms
(decimal)model.QualifiedNumber / model.RequireNumber * 100 ?? 0.0m;
}
model.QualifiedRate = qualifiedRate;
if (model.IsOutbound)
{
model.Type = 1;
}
else
{
model.Type = 0;
}
return Update(model, true);
}
catch (Exception e)