库存回传MES

This commit is contained in:
zgf committed 2023-11-22 16:39:13 +08:00
1 parent b864a80e29
commit 4334683c6f
5 files changed
+139 -71

No files matched your search

@@ -6,6 +6,7 @@ using WalkingTec.Mvvm.Core.Extensions;
using HHWMS.Web.Models;
using System.Collections.Generic;
using System;
using System.Linq;
namespace HHWMS.Web.Controllers
{
@@ -161,7 +162,11 @@ namespace HHWMS.Web.Controllers
});
}
}
var uniqueGroup = detailList.GroupBy(x => x.UniqueCode);
if (uniqueGroup.Any(x => x.Count() > 1))
{
return FFResult().Alert("新增明细中,存在重复的唯一码!");
}
// 补充物料明细
foreach(var item in detailList)
{