1.相关业务增加source_id和source_code
2.入库申请查询明细单增加仓库名称回传字段
This commit is contained in:
@@ -91,10 +91,10 @@ namespace Tnb.WarehouseMgr
|
||||
if (sPoint != null && ePoint != null)
|
||||
{
|
||||
var points = await _wareHouseService.PathAlgorithms(sPoint.id, ePoint.id);
|
||||
if (points.Count <= 2) throw new AppFriendlyException("该路径不存在", 500);
|
||||
//根据获取的路径点生成预任务,生成顺序必须预路径算法返回的起终点的顺序一致(预任务顺序)
|
||||
if (points?.Count > 0)
|
||||
{
|
||||
if (points.Count <= 2) throw new AppFriendlyException("该路径不存在", 500);
|
||||
var preTasks = points.Where(it => !it.location_id.IsNullOrEmpty()).GroupBy(g => g.area_code).Select(it =>
|
||||
{
|
||||
var sPoint = it.FirstOrDefault();
|
||||
@@ -124,6 +124,8 @@ namespace Tnb.WarehouseMgr
|
||||
preTask.require_code = input.data[nameof(preTask.bill_code)]?.ToString()!;
|
||||
preTask.create_id = _userManager.UserId;
|
||||
preTask.create_time = DateTime.Now;
|
||||
preTask.source_id = input.data[nameof(WmsKittingInstock.source_id)].ToString();
|
||||
preTask.source_code = input.data[nameof(WmsKittingInstock.source_code)].ToString();
|
||||
return preTask;
|
||||
}).ToList();
|
||||
List<WmsCarryCode> carryCodes = new();
|
||||
|
||||
Reference in New Issue
Block a user