1.增加电梯的路径判断与平均分配

2.载具查询异常抛出
3.在线开发的子表使用弹窗时,编辑显示时bug,例如"_point_code_"在dictionary中 不存在
This commit is contained in:
FanLian
2023-07-27 14:30:31 +08:00
parent 1a01ea378e
commit 5cbe089b10
8 changed files with 240 additions and 9 deletions

View File

@@ -85,7 +85,7 @@ namespace Tnb.WarehouseMgr
if (!isMatch) throw new AppFriendlyException("库位与载具规格不匹配", 500);
ePoint = await _db.Queryable<WmsPointH>().FirstAsync(it => it.location_id == endLocations[0].id);
}
//在线开发
VisualDevEntity? templateEntity = await _visualDevService.GetInfoById(ModuleConsts.MODULE_WMSEMPTYINSTOCK_ID, true);
await _runService.Create(templateEntity, input);
@@ -125,6 +125,12 @@ namespace Tnb.WarehouseMgr
return preTask;
}).ToList();
var isOk = await _wareHouseService.GenPreTask(preTasks, null!);
//更新电梯任务数量
var eleP = points.Find(x => x.area_code.Contains("ELE"));
if (eleP != null)
{
await _db.Updateable<WmsElevatorH>().SetColumns(it => it.task_nums == it.task_nums + 1).Where(it => it.area_code == eleP.area_code).ExecuteCommandAsync();
}
if (isOk)
{
var preTaskUpInput = new GenPreTaskUpInput();