售后单逻辑调整。
This commit is contained in:
1 parent
5571d227c8
commit
ed3545e376
14 files changed
+265
-116
No files matched your search
@@ -78,7 +78,7 @@ namespace AllBase.Model.Local
|
||||
/// </summary>
|
||||
public bool IsRefund
|
||||
{
|
||||
get { return refundItems?.Count > 0; }
|
||||
get { return refundItems?.Count > 0 && refundItems.Any(r => r.status != "USER_CANCELD"); }
|
||||
set { }
|
||||
}
|
||||
/// <summary>
|
||||
@@ -164,12 +164,13 @@ namespace AllBase.Model.Local
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.refundItems.Any(r => "商家受理中,待买家退货,待商家收货,平台退款中,待用户确认,待用户处理商家协商,待用户处理商家代发起的售后申请,物流拦截中".Contains(r.statusStr)))
|
||||
if (this.refundItems.Any(r => "商家受理中,待买家退货,待商家收货,平台退款中,待用户确认,待用户处理商家协商,待用户处理商家代发起的售后申请,物流拦截中".Contains(r.RefundStatusStr)))
|
||||
return "退款中";
|
||||
else if (this.refundItems.Any(r => r.statusStr == "退款完成" || r.statusStr == "退货退款完成"))
|
||||
else if (this.refundItems.Any(r => r.RefundStatusStr == "退款完成" || r.RefundStatusStr == "退货退款完成"))
|
||||
return "退款完成";
|
||||
else if (this.refundItems.Any(r => !r.statusStr.IsNullOrEmpty()))
|
||||
return this.refundItems.FirstOrDefault(r => !r.statusStr.IsNullOrEmpty()).statusStr;
|
||||
// 用户取消申请
|
||||
else if (GlobalConfig.OrderTabHeaderStr.StartsWith("退款单") && this.refundItems.Any(r => !r.RefundStatusStr.IsNullOrEmpty()))
|
||||
return this.refundItems.FirstOrDefault(r => !r.RefundStatusStr.IsNullOrEmpty()).RefundStatusStr;
|
||||
if (this.status == 20 || this.status == 21)
|
||||
{
|
||||
return "剩余";
|
||||
|
||||
Reference in new issue
Block a user