直发买手拍单功能

This commit is contained in:
wule committed 2026-08-03 16:23:25 +08:00
1 parent fe9635f37f
commit 785fcce29e
22 files changed
+1172 -529

No files matched your search

+51 -26
View File
@@ -1,4 +1,5 @@
using System;
using AllBase.Model.MvvmBaseClasses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -7,33 +8,17 @@ using System.Windows.Media;
namespace AllBase.Model.DBModel
{
public class oms_wei_refund_info
public class oms_wei_refund_info : PropertyNotifyObject
{
public string RefundStatusStr
{
get
{
if (status == "USER_CANCELD") return "用户取消申请";
if (status == "MERCHANT_PROCESSING") return "商家受理中";
if (status == "MERCHANT_REJECT_REFUND") return "商家拒绝退款";
if (status == "MERCHANT_REJECT_RETURN") return "商家拒绝退货退款";
if (status == "USER_WAIT_RETURN") return "待买家退货";
if (status == "RETURN_CLOSED") return "退货退款关闭";
if (status == "MERCHANT_WAIT_RECEIPT") return "待商家收货";
if (status == "MERCHANT_OVERDUE_REFUND") return "商家逾期未退款";
if (status == "MERCHANT_REFUND_SUCCESS") return "退款完成";
if (status == "MERCHANT_RETURN_SUCCESS") return "退货退款完成";
if (status == "PLATFORM_REFUNDING") return "平台退款中";
if (status == "PLATFORM_REFUND_FAIL") return "平台退款失败";
if (status == "USER_WAIT_CONFIRM") return "待用户确认";
if (status == "MERCHANT_REFUND_RETRY_FAIL") return "商家打款失败,客服关闭售后";
if (status == "MERCHANT_FAIL") return "售后关闭";
if (status == "USER_WAIT_CONFIRM_UPDATE") return "待用户处理商家协商";
if (status == "USER_WAIT_HANDLE_MERCHANT_AFTER_SALE") return "待用户处理商家代发起的售后申请";
if (status == "WAIT_PACKAGE_INTERCEPT") return "物流拦截中";
return "售后状态读取失败";
}
set { }
get { return this.GetValue(x => x.status); }
set { this.SetValue(x => x.status, value); }
}
public bool IsRefund
{
get { return this.GetValue(x => x.IsRefund); }
set { this.SetValue(x => x.IsRefund, value); }
}
/// <summary>
/// 退款状态颜色
@@ -90,7 +75,39 @@ namespace AllBase.Model.DBModel
/// USER_WAIT_HANDLE_MERCHANT_AFTER_SALE 待用户处理商家代发起的售后申请
/// WAIT_PACKAGE_INTERCEPT 物流拦截中;
/// </summary>
public string status { get; set; }
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 = "物流拦截中";
List<string> refundStrLst = new List<string>() { "商家受理中", "待买家退货", "待商家收货", "商家逾期未退款", "退款完成", "退货退款完成", "平台退款中", "待用户确认",
"待用户处理商家协商", "待用户处理商家代发起的售后申请", "物流拦截中"};
if (refundStrLst.Contains(this.RefundStatusStr) || RefundStatusStr == "售后状态读取失败")
this.IsRefund = true;
}
}
/// <summary>
/// 买家身份标识
/// </summary>
@@ -199,5 +216,13 @@ namespace AllBase.Model.DBModel
/// 仓库受理状态
/// </summary>
public int? warehouse_status { get; set; }
public string return_user_name { get; set; }
public string return_province { get; set; }
public string return_city { get; set; }
public string return_county { get; set; }
public string return_detail { get; set; }
public string return_tel { get; set; }
}
}