|
|
@ -499,6 +499,8 @@ public class BalanceController : AbpController |
|
|
|
{ |
|
|
|
var productionLineItemDto = await _productionLineItemAppService.GetByProductLineCodeAndItemCodeAsync(productLine, itemCode).ConfigureAwait(false); |
|
|
|
|
|
|
|
if (productionLineItemDto != null ) |
|
|
|
{ |
|
|
|
var locationList = new List<string>(); |
|
|
|
if (productionLineItemDto.RawLocationCodeListJson != null && |
|
|
|
productionLineItemDto.RawLocationCodeListJson.Length > 0) |
|
|
@ -527,6 +529,11 @@ public class BalanceController : AbpController |
|
|
|
var usableList = await _balanceAppService.GetUsableListAsync(input).ConfigureAwait(false); |
|
|
|
return await SortByFifoAsync(usableList).ConfigureAwait(false); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
throw new UserFriendlyException($"未找到 生产线【{productLine}】零件【{itemCode}】关系"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 排序规则 1.批次正序 2.底层 3.到货日期正序 4.数量倒序(整箱优先) 5.库位正序 6.箱码正序
|
|
|
|