原材料仓逻辑、看板调整

This commit is contained in:
2024-07-31 09:04:20 +08:00
parent ac43e1edf4
commit 9221113607
17 changed files with 743 additions and 45 deletions

View File

@@ -176,6 +176,12 @@ namespace Tnb.WarehouseMgr
throw new Exception($"托盘{input.carrycode}已绑定物料!");
}
var WmsTempCodes = await _db.Queryable<WmsTempCode>().Where(it => input.details.Select(r => r.barcode).Contains(it.barcode)).ToListAsync();
if (WmsTempCodes.DistinctBy(r => r.required_type).Count() == 1)
{
throw new Exception($"不能绑定多个不同类型单据打印的条码!:{string.Join(',', WmsTempCodes.DistinctBy(r => r.required_type))}");
}
List<WmsCarryCode> WmsCarryCodes = new List<WmsCarryCode>();
foreach (var detail in input.details)
{