库存回传新增flag

新增入库单明细,判断重复
出库页面修改 散料出库后回库按钮
This commit is contained in:
zgf committed 2023-11-27 12:56:54 +08:00
1 parent 0269655891
commit c27a357771
7 files changed
+155 -104

No files matched your search

@@ -167,6 +167,16 @@ namespace HHWMS.Web.Controllers
{
return FFResult().Alert("新增明细中,存在重复的唯一码!");
}
// 判断唯一码是否已在库内
var reDetailList = _unitwork.Find<ReceiptDetail>(x => 1 == 1)
.Select(x => x.UniqueCode)
.ToList();
if (reDetailList.Intersect(detailList.Select(x => x.UniqueCode)).Count() > 0)
{
return FFResult().Alert("新增明细中,存在已添加的唯一码!");
}
// 判断唯一码是否已在库内
var invList = _unitwork.Find<Inventory>(x => 1 == 1)
.Select(x => x.UniqueCode)