出库增加箱信息填写
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user