1
This commit is contained in:
@@ -255,12 +255,14 @@ namespace Tnb.WarehouseMgr
|
|||||||
pretaskCodes.AddRange(curPreTaskCodes);
|
pretaskCodes.AddRange(curPreTaskCodes);
|
||||||
}
|
}
|
||||||
var isOk = await _wareHouseService.GenPreTask(preTasks, pretaskCodes);
|
var isOk = await _wareHouseService.GenPreTask(preTasks, pretaskCodes);
|
||||||
|
if (isOk)
|
||||||
|
{
|
||||||
GenPreTaskUpInput genPreTaskAfterUpInput = new();
|
GenPreTaskUpInput genPreTaskAfterUpInput = new();
|
||||||
genPreTaskAfterUpInput.CarryIds = preTasks.Select(x => x.carry_id).ToList();
|
genPreTaskAfterUpInput.CarryIds = preTasks.Select(x => x.carry_id).ToList();
|
||||||
genPreTaskAfterUpInput.LocationIds = new HashSet<string>(locIds).ToList();
|
genPreTaskAfterUpInput.LocationIds = new HashSet<string>(locIds).ToList();
|
||||||
await _wareHouseService.GenInStockTaskHandleAfter(genPreTaskAfterUpInput, it => new WmsCarryH { is_lock = 1 }, it => new BasLocation { is_lock = 1 });
|
await _wareHouseService.GenInStockTaskHandleAfter(genPreTaskAfterUpInput, it => new WmsCarryH { is_lock = 1 }, it => new BasLocation { is_lock = 1 });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else throw new AppFriendlyException("库存不足", 500);
|
else throw new AppFriendlyException("库存不足", 500);
|
||||||
}
|
}
|
||||||
else throw new AppFriendlyException($"请输入物料明细", 500);
|
else throw new AppFriendlyException($"请输入物料明细", 500);
|
||||||
|
|||||||
Reference in New Issue
Block a user