出库增加箱信息填写

This commit is contained in:
18942506660
2024-09-20 11:09:30 +08:00
parent 06fcd26b5b
commit 8c284d1823
13 changed files with 349 additions and 2 deletions

View File

@@ -574,6 +574,12 @@ namespace WMS.Web.Domain.Services
OutStockTaskInfoDetailsResponse infoDetail = new OutStockTaskInfoDetailsResponse()
{
BoxBillNo = boxList.FirstOrDefault(f => f.Id == b.BoxId)?.BoxBillNo ?? "",
OutStockId= outStock.Id,
OutStockBoxDetailsId=b.Id,
BoxLength =b.BoxHigh,
BoxWide=b.BoxWide,
BoxHigh=b.BoxHigh,
BoxWeight=b.BoxWeight,
Qty = b.Qty,
SerialNumbers = string.Join(",", b.SerialNumbers),
SerialNumberList = b.SerialNumbers,
@@ -589,6 +595,10 @@ namespace WMS.Web.Domain.Services
};
response.Details.Add(infoDetail);
}
//排序和加序号值
response.Details = response.Details.OrderByDescending(s => s.Specifications)
.ThenByDescending(s => s.Method).ThenByDescending(s => s.Qty).ToList();
response.Details.ForEach(f => f.IndexNumber = response.Details.IndexOf(f) + 1);
return Result<OutStockTaskInfoResponse>.ReSuccess(response);
}