Wms出库申请模块代码提交

This commit is contained in:
alex
2023-06-20 11:51:15 +08:00
parent 639bd46bf9
commit 95997b1487
4 changed files with 169 additions and 73 deletions

View File

@@ -252,7 +252,7 @@ namespace Tnb.WarehouseMgr
if (i == 0 || i == items.Count - 1) continue;
items[i].chain_type = "2";
}
items[items.Count - 1].chain_type = "3";
items[^1].chain_type = "3";
}
});
@@ -521,7 +521,14 @@ namespace Tnb.WarehouseMgr
//根据载具ID更新是否锁定和赋值起始库位
if (setCarryColumnsExp != null)
{
await _db.Updateable<WmsCarryH>().SetColumns(setCarryColumnsExp).Where(it => it.id == input.CarryId).ExecuteCommandAsync();
if (input.CarryIds?.Count > 0)
{
await _db.Updateable<WmsCarryH>().SetColumns(setCarryColumnsExp).Where(it => input.CarryIds.Contains(it.id)).ExecuteCommandAsync();
}
else
{
await _db.Updateable<WmsCarryH>().SetColumns(setCarryColumnsExp).Where(it => it.id == input.CarryId).ExecuteCommandAsync();
}
}
//根据所有库位更新库位的锁定状态为“锁定”