Browse Source

修改提示

dev_DY_CC
郑勃旭 12 months ago
parent
commit
4322d5cbc9
  1. 11
      be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Inventories/BalanceController.cs

11
be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Inventories/BalanceController.cs

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

Loading…
Cancel
Save