箱库存查询-带物料
This commit is contained in:
@@ -2611,6 +2611,21 @@
|
|||||||
物料ID
|
物料ID
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:WMS.Web.Core.Dto.Inventory.BoxInventoryDetailsResponse.MaterialName">
|
||||||
|
<summary>
|
||||||
|
物料名称
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:WMS.Web.Core.Dto.Inventory.BoxInventoryDetailsResponse.MaterialNumber">
|
||||||
|
<summary>
|
||||||
|
物料编码
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:WMS.Web.Core.Dto.Inventory.BoxInventoryDetailsResponse.Specifications">
|
||||||
|
<summary>
|
||||||
|
物料规格型号
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:WMS.Web.Core.Dto.Inventory.BoxInventoryDetailsResponse.SerialNumbers">
|
<member name="P:WMS.Web.Core.Dto.Inventory.BoxInventoryDetailsResponse.SerialNumbers">
|
||||||
<summary>
|
<summary>
|
||||||
序列号集
|
序列号集
|
||||||
|
|||||||
@@ -67,6 +67,19 @@ namespace WMS.Web.Core.Dto.Inventory
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaterialId { get; set; }
|
public int MaterialId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 物料名称
|
||||||
|
/// </summary>
|
||||||
|
public string MaterialName { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 物料编码
|
||||||
|
/// </summary>
|
||||||
|
public string MaterialNumber { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 物料规格型号
|
||||||
|
/// </summary>
|
||||||
|
public string Specifications { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 序列号集
|
/// 序列号集
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -1276,7 +1276,10 @@ namespace WMS.Web.Domain.Services
|
|||||||
return Result.ReSuccess();
|
return Result.ReSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
//private async Task<Result> ExeTaskBox(List<string> serNubs,bool isTransaction) { }
|
//private async Task<Result> ExeTaskBox(List<string> serNubs,bool isTransaction)
|
||||||
|
//{
|
||||||
|
|
||||||
|
//}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 入库单-箱库存变更
|
/// 入库单-箱库存变更
|
||||||
|
|||||||
@@ -122,7 +122,11 @@ namespace WMS.Web.Repositories
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<BoxInventoryResponse> GetInfoBy(string boxBillNo)
|
public async Task<BoxInventoryResponse> GetInfoBy(string boxBillNo)
|
||||||
{
|
{
|
||||||
|
//1.获取物料集合和组织集合
|
||||||
|
var materials_result = await _erpService.BillQueryForMaterial();
|
||||||
|
if (!materials_result.IsSuccess)
|
||||||
|
return null;
|
||||||
|
var materials = materials_result.Data.ToList();
|
||||||
|
|
||||||
var entity=await _context.BoxInventory.Include(x=>x.Details)
|
var entity=await _context.BoxInventory.Include(x=>x.Details)
|
||||||
.GroupJoin(_context.Box, t => t.BoxId, box => box.Id, (boxinvent, ts) => new { boxinvent, ts })
|
.GroupJoin(_context.Box, t => t.BoxId, box => box.Id, (boxinvent, ts) => new { boxinvent, ts })
|
||||||
@@ -137,7 +141,12 @@ namespace WMS.Web.Repositories
|
|||||||
response.Details = _mapper.Map<List<BoxInventoryDetailsResponse>>(entity.Details);
|
response.Details = _mapper.Map<List<BoxInventoryDetailsResponse>>(entity.Details);
|
||||||
response.TotalQty = response.Details.Sum(x=>x.Qty);
|
response.TotalQty = response.Details.Sum(x=>x.Qty);
|
||||||
}
|
}
|
||||||
|
response.Details.ForEach(x =>
|
||||||
|
{
|
||||||
|
x.MaterialName = _erpBasicDataExtendService.GetMaterialName(materials, x.MaterialId);
|
||||||
|
x.MaterialNumber = _erpBasicDataExtendService.GetMaterialNumber(materials, x.MaterialId);
|
||||||
|
x.Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, x.MaterialId);
|
||||||
|
});
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user