Wms出库申请模块代码提交
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//根据所有库位更新库位的锁定状态为“锁定”
|
||||
|
||||
Reference in New Issue
Block a user