修改了些BUG

This commit is contained in:
2025-07-15 16:03:57 +08:00
parent 1051075aa6
commit c47810947b
4 changed files with 11 additions and 6 deletions

View File

@@ -640,12 +640,12 @@ namespace WMS.Web.Domain.Services
response.Details.Add(infoDetail);
}
//排序和加序号值
//response.Details = response.Details.OrderByDescending(s => s.Specifications)
// 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);
response.Details = response.Details.OrderByDescending(s => s.Method)
response.Details = response.Details.OrderByDescending(s => s.Method).OrderByDescending(y=>y.Specifications)
.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++)
{
if (i == 0)
@@ -735,7 +735,7 @@ namespace WMS.Web.Domain.Services
BoxWeight = d.BoxWeight,
Qty = d.Qty,
AccruedQty = d.AccruedQty,
SerialNumbers = serialNumbers[0].TwoSerialNumber
SerialNumbers = serialNumbers[0].IsTwo==1? serialNumbers[0].SerialNumber:serialNumbers[0].TwoSerialNumber
});
}