增加字段
This commit is contained in:
@@ -22,6 +22,10 @@ namespace WMS.Web.Core.Dto
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int SubStockId { get; set; } = 0;
|
public int SubStockId { get; set; } = 0;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 是否存在于箱库存中
|
||||||
|
/// </summary>
|
||||||
|
public bool IsBoxInventory { get; set; } = false;
|
||||||
|
/// <summary>
|
||||||
/// 序列号
|
/// 序列号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string SerialNumber { get; set; }
|
public string SerialNumber { get; set; }
|
||||||
|
|||||||
@@ -210,6 +210,10 @@ namespace WMS.Web.Repositories
|
|||||||
response.MaterialName = _erpBasicDataExtendService.GetMaterialName(materials, entity.serial.MaterialId);
|
response.MaterialName = _erpBasicDataExtendService.GetMaterialName(materials, entity.serial.MaterialId);
|
||||||
response.MaterialNumber = _erpBasicDataExtendService.GetMaterialNumber(materials, entity.serial.MaterialId);
|
response.MaterialNumber = _erpBasicDataExtendService.GetMaterialNumber(materials, entity.serial.MaterialId);
|
||||||
response.Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, entity.serial.MaterialId);
|
response.Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, entity.serial.MaterialId);
|
||||||
|
if (entity.boxInventory != null)
|
||||||
|
response.IsBoxInventory = entity.boxInventory.Details.SelectMany(s => s.SerialNumbers).Any(w => serialNumber.Contains(w));
|
||||||
|
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user