【优化】优化售后模式及业务方式。

This commit is contained in:
jianweie code
2024-03-31 01:35:07 +08:00
parent 9d166633b6
commit 2b970bce3c
6 changed files with 489 additions and 372 deletions

View File

@@ -950,8 +950,17 @@ namespace CoreCms.Net.Services
if (item.status == (int)GlobalEnumVars.BillAftersalesStatus.WaitAudit) break;
}
}
//把退款金额和退货商品查出来判断是否能进行售后
AfterSalesVal(order, aftersaleLevel);
//如果存在未处理的售后,就不能再次发起售后
if (order.aftersalesItem.Any() && order.aftersalesItem.Exists(p => p.status == (int)GlobalEnumVars.BillAftersalesStatus.WaitAudit))
{
order.addAftersalesStatus = false;
}
else
{
//把退款金额和退货商品查出来判断是否能进行售后
AfterSalesVal(order, aftersaleLevel);
}
//促销信息
if (!string.IsNullOrEmpty(order.promotionList))
{