涂装抛光流程变更

This commit is contained in:
2024-10-18 20:08:12 +08:00
parent 43ec43ba43
commit 9b86e6b9d8
16 changed files with 541 additions and 94 deletions

View File

@@ -42,6 +42,10 @@ namespace ZR.Service.mes.wms
!string.IsNullOrEmpty(parm.CreatedBy),
it => it.CreatedBy.Contains(parm.CreatedBy)
)
.AndIF(
parm.Type != -1,
it => it.Type == parm.Type
)
.AndIF(
parm.StartTime != null,
it => it.StartTime >= parm.StartTime.Value.ToLocalTime()
@@ -115,7 +119,14 @@ namespace ZR.Service.mes.wms
throw new Exception("投入数与合格数,抛光总数,打磨数,报废数不符合,请检查");
}
model.Id = SnowFlakeSingle.instance.NextId().ToString();
model.Type = 0;
if (model.IsPolish)
{
model.Type = 1;
}
else
{
model.Type = 0;
}
decimal qualifiedRate = 0.0m;
if (model.QualifiedNumber != 0)
{