优化读取订单的展示
This commit is contained in:
1 parent
b827c6e118
commit
06e45bf587
7 files changed
+127
-105
No files matched your search
@@ -15,8 +15,8 @@ namespace AllBase.Model.DBModel
|
||||
{
|
||||
public string RefundStatusStr
|
||||
{
|
||||
get { return this.GetValue(x => x.status); }
|
||||
set { this.SetValue(x => x.status, value); RefundStatusStrVisibility = RefundStatusStr.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; }
|
||||
get { return this.GetValue(x => x.RefundStatusStr); }
|
||||
set { this.SetValue(x => x.RefundStatusStr, value); RefundStatusStrVisibility = RefundStatusStr.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; }
|
||||
}
|
||||
public Visibility RefundStatusStrVisibility
|
||||
{
|
||||
@@ -52,8 +52,8 @@ namespace AllBase.Model.DBModel
|
||||
}
|
||||
public Visibility AfterSaleOrderIdVisibility
|
||||
{
|
||||
get { return this.GetValue(x => x.ReasonTextStrVisibility); }
|
||||
set { this.SetValue(x => x.ReasonTextStrVisibility, value); }
|
||||
get { return this.GetValue(x => x.AfterSaleOrderIdVisibility); }
|
||||
set { this.SetValue(x => x.AfterSaleOrderIdVisibility, value); }
|
||||
}
|
||||
|
||||
public long id { get; set; }
|
||||
@@ -61,7 +61,7 @@ namespace AllBase.Model.DBModel
|
||||
public string after_sale_order_id
|
||||
{
|
||||
get { return this.GetValue(x => x.after_sale_order_id); }
|
||||
set { this.SetValue(x => x.after_sale_order_id, value); ReasonTextStrVisibility = value.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; }
|
||||
set { this.SetValue(x => x.after_sale_order_id, value); AfterSaleOrderIdVisibility = value.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 售后单当前状态,参考:
|
||||
@@ -87,37 +87,37 @@ namespace AllBase.Model.DBModel
|
||||
public string status
|
||||
{
|
||||
get { return this.GetValue(x => x.status); }
|
||||
set
|
||||
{
|
||||
this.SetValue(x => x.status, value);
|
||||
|
||||
this.RefundStatusStr = "售后状态读取失败";
|
||||
if (value == "USER_CANCELD") this.RefundStatusStr = "用户取消申请";
|
||||
else if (value == "MERCHANT_PROCESSING") this.RefundStatusStr = "商家受理中";
|
||||
else if (value == "MERCHANT_REJECT_REFUND") this.RefundStatusStr = "商家拒绝退款";
|
||||
else if (value == "MERCHANT_REJECT_RETURN") this.RefundStatusStr = "商家拒绝退货退款";
|
||||
else if (value == "USER_WAIT_RETURN") this.RefundStatusStr = "待买家退货";
|
||||
else if (value == "RETURN_CLOSED") this.RefundStatusStr = "退货退款关闭";
|
||||
else if (value == "MERCHANT_WAIT_RECEIPT") this.RefundStatusStr = "待商家收货";
|
||||
else if (value == "MERCHANT_OVERDUE_REFUND") this.RefundStatusStr = "商家逾期未退款";
|
||||
else if (value == "MERCHANT_REFUND_SUCCESS") this.RefundStatusStr = "退款完成";
|
||||
else if (value == "MERCHANT_RETURN_SUCCESS") this.RefundStatusStr = "退货退款完成";
|
||||
else if (value == "PLATFORM_REFUNDING") this.RefundStatusStr = "平台退款中";
|
||||
else if (value == "PLATFORM_REFUND_FAIL") this.RefundStatusStr = "平台退款失败";
|
||||
else if (value == "USER_WAIT_CONFIRM") this.RefundStatusStr = "待用户确认";
|
||||
else if (value == "MERCHANT_REFUND_RETRY_FAIL") this.RefundStatusStr = "商家打款失败,客服关闭售后";
|
||||
else if (value == "MERCHANT_FAIL") this.RefundStatusStr = "售后关闭";
|
||||
else if (value == "USER_WAIT_CONFIRM_UPDATE") this.RefundStatusStr = "待用户处理商家协商";
|
||||
else if (value == "USER_WAIT_HANDLE_MERCHANT_AFTER_SALE") this.RefundStatusStr = "待用户处理商家代发起的售后申请";
|
||||
else if (value == "WAIT_PACKAGE_INTERCEPT") this.RefundStatusStr = "物流拦截中";
|
||||
else if (value == "USER_WAIT_RECEIPT") this.RefundStatusStr = "换货商品已发货";
|
||||
else this.RefundStatusStr = value;
|
||||
//MERCHANT_EXCHANGE_SUCCESS
|
||||
|
||||
if (order_id == "3738189148379849472")
|
||||
set
|
||||
{
|
||||
if (order_id == "3739902323987233280")
|
||||
{
|
||||
|
||||
}
|
||||
this.SetValue(x => x.status, value);
|
||||
|
||||
this.RefundStatusStr = "售后状态读取失败";
|
||||
if (status == "USER_CANCELD") this.RefundStatusStr = "用户取消申请";
|
||||
else if (status == "MERCHANT_PROCESSING") this.RefundStatusStr = "商家受理中";
|
||||
else if (status == "MERCHANT_REJECT_REFUND") this.RefundStatusStr = "商家拒绝退款";
|
||||
else if (status == "MERCHANT_REJECT_RETURN") this.RefundStatusStr = "商家拒绝退货退款";
|
||||
else if (status == "USER_WAIT_RETURN") this.RefundStatusStr = "待买家退货";
|
||||
else if (status == "RETURN_CLOSED") this.RefundStatusStr = "退货退款关闭";
|
||||
else if (status == "MERCHANT_WAIT_RECEIPT") this.RefundStatusStr = "待商家收货";
|
||||
else if (status == "MERCHANT_OVERDUE_REFUND") this.RefundStatusStr = "商家逾期未退款";
|
||||
else if (status == "MERCHANT_REFUND_SUCCESS") this.RefundStatusStr = "退款完成";
|
||||
else if (status == "MERCHANT_RETURN_SUCCESS") this.RefundStatusStr = "退货退款完成";
|
||||
else if (status == "PLATFORM_REFUNDING") this.RefundStatusStr = "平台退款中";
|
||||
else if (status == "PLATFORM_REFUND_FAIL") this.RefundStatusStr = "平台退款失败";
|
||||
else if (status == "USER_WAIT_CONFIRM") this.RefundStatusStr = "待用户确认";
|
||||
else if (status == "MERCHANT_REFUND_RETRY_FAIL") this.RefundStatusStr = "商家打款失败,客服关闭售后";
|
||||
else if (status == "MERCHANT_FAIL") this.RefundStatusStr = "售后关闭";
|
||||
else if (status == "USER_WAIT_CONFIRM_UPDATE") this.RefundStatusStr = "待用户处理商家协商";
|
||||
else if (status == "USER_WAIT_HANDLE_MERCHANT_AFTER_SALE") this.RefundStatusStr = "待用户处理商家代发起的售后申请";
|
||||
else if (status == "WAIT_PACKAGE_INTERCEPT") this.RefundStatusStr = "物流拦截中";
|
||||
else if (status == "USER_WAIT_RECEIPT") this.RefundStatusStr = "换货商品已发货";
|
||||
else this.RefundStatusStr = status;
|
||||
//MERCHANT_EXCHANGE_SUCCESS
|
||||
|
||||
|
||||
List<string> refundStrLst = new List<string>() { "商家受理中", "待买家退货", "待商家收货", "商家逾期未退款", "退款完成", "退货退款完成", "平台退款中", "待用户确认",
|
||||
"待用户处理商家协商", "待用户处理商家代发起的售后申请", "物流拦截中"};
|
||||
@@ -207,7 +207,7 @@ namespace AllBase.Model.DBModel
|
||||
set
|
||||
{
|
||||
this.SetValue(x => x.reason_text, value);
|
||||
ReasonTextStr = string.IsNullOrEmpty(reason_text) ? string.Empty : "售后原因:" + reason_text;
|
||||
ReasonTextStr = string.IsNullOrEmpty(reason_text) ? string.Empty : ("售后原因:" + reason_text);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user