diff --git a/src/WMS.Web.Domain/Services/OutStockTaskService.cs b/src/WMS.Web.Domain/Services/OutStockTaskService.cs index da631788..2f2eec21 100644 --- a/src/WMS.Web.Domain/Services/OutStockTaskService.cs +++ b/src/WMS.Web.Domain/Services/OutStockTaskService.cs @@ -640,11 +640,13 @@ 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 = response.Details.OrderByDescending(s => s.Specifications) + .ThenByDescending(s => s.Method).ThenByDescending(s => s.Qty) // response.Details.ForEach(f => f.IndexNumber = response.Details.IndexOf(f) + 1); - response.Details = response.Details.OrderByDescending(s => s.Method).OrderByDescending(y=>y.Specifications).OrderByDescending(x=>x.Qty) - .ThenByDescending(s => s.BoxBillNo).ThenBy(s => s.BoxLength).ToList(); + //response.Details = response.Details.OrderByDescending(s => s.Method).ThenBy(s => s.Specifications).ThenByDescending(s => s.BoxBillNo).ThenByDescending(s=>s.Qty) + .ThenByDescending(s => s.BoxBillNo).ThenBy(s => s.BoxLength) + .ToList(); + //alter by yzh 20250715 加了:.OrderByDescending(y=>y.Specifications) for (int i = 0; i < response.Details.Count(); i++) {