售后单逻辑调整。
This commit is contained in:
1 parent
5571d227c8
commit
ed3545e376
14 files changed
+265
-116
No files matched your search
@@ -146,40 +146,50 @@ namespace AllBase.Model.Local
|
||||
}
|
||||
set { }
|
||||
}
|
||||
|
||||
public string BuyerWaybillStatusStr
|
||||
public string BuyerTransitWaybillStatusStr
|
||||
{
|
||||
get
|
||||
{
|
||||
if (PddBuyerOrder?.wx_order_id == "3737683253753151488")
|
||||
{
|
||||
}
|
||||
else if ((PddBuyerOrder?.order_status_prompt).ParseToString().Contains("退款成功"))
|
||||
|
||||
string refund_status = (ItemTransitOrderWithVoid?.refund_status).ParseToString();
|
||||
|
||||
//if ((PddBuyerOrder?.order_status_prompt).ParseToString().Contains("退款成功"))
|
||||
//{
|
||||
// return "买手已退款";
|
||||
//}
|
||||
//else if (refund_status.Contains("退款成功"))
|
||||
//{
|
||||
// return "买手已退款";
|
||||
//}
|
||||
|
||||
// 已到中转仓的或者中转仓已正式发出的,买手(仓上游)状态显示为已到中转仓
|
||||
if (ItemTransitOrderWithVoid?.warehouse_status == 1 || ItemTransitOrderWithVoid?.warehouse_status == 2)
|
||||
{
|
||||
return "买手已退款";
|
||||
return "已到中转仓";
|
||||
}
|
||||
// 拼多多买手状态为已签收的,为已到中转仓
|
||||
else if ((PddBuyerOrder?.order_status_prompt).ParseToString().Contains("已签收"))
|
||||
{
|
||||
return "已到中转仓";
|
||||
}
|
||||
// 售后待用户退回商品的,至少为买手已发货
|
||||
else if ((PddBuyerOrder?.order_status_prompt).ParseToString().Contains("待用户退回商品"))
|
||||
{
|
||||
return "已到中转仓";
|
||||
return "买手已发货";
|
||||
}
|
||||
else if ((PddBuyerOrder?.order_status_prompt).ParseToString().Contains("待收货"))
|
||||
{
|
||||
return "买手已发货";
|
||||
}
|
||||
|
||||
var ref_status = (ItemTransitOrderWithVoid?.refund_status).ParseToString();
|
||||
if (ref_status.Contains("退款成功"))
|
||||
{
|
||||
return "买手已退款";
|
||||
}
|
||||
if (!ref_status.Contains("退款成功") && ref_status.Length > 0)
|
||||
// 有退款还没完成的,至少为买手已发货
|
||||
if (!refund_status.Contains("退款成功") && refund_status.Length > 0)
|
||||
{
|
||||
return "买手已发货";
|
||||
}
|
||||
// 正式取号或者取号更正的,可认定买手已发货
|
||||
if (ItemTransitOrderWithVoid?.pre_allocated_order_no == 1 || ItemTransitOrderWithVoid?.pre_allocated_order_no == 3)
|
||||
return "买手已发货";
|
||||
if (ItemTransitOrderWithVoid != null)
|
||||
@@ -188,49 +198,49 @@ namespace AllBase.Model.Local
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public SolidColorBrush BuyerWaybillStatusStrColor
|
||||
public SolidColorBrush BuyerTransitWaybillStatusStrColor
|
||||
{
|
||||
get
|
||||
{
|
||||
if (BuyerWaybillStatusStr.StartsWith("买手已退款"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("买手已退款"))
|
||||
return new SolidColorBrush(Color.FromRgb(152, 96, 143));
|
||||
if (BuyerWaybillStatusStr.StartsWith("已到中转仓"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("已到中转仓"))
|
||||
return new SolidColorBrush(Color.FromRgb(19, 206, 102));
|
||||
if (BuyerWaybillStatusStr.StartsWith("买手已发货"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("买手已发货"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 186, 0));
|
||||
if (BuyerWaybillStatusStr.StartsWith("买手未发货"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("买手未发货"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 73, 73));
|
||||
return new SolidColorBrush(Color.FromRgb(255, 73, 73));
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public SolidColorBrush BuyerWaybillStatusBorderColor
|
||||
public SolidColorBrush BuyerTransitWaybillStatusBorderColor
|
||||
{
|
||||
get
|
||||
{
|
||||
if (BuyerWaybillStatusStr.StartsWith("买手已退款"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("买手已退款"))
|
||||
return new SolidColorBrush(Color.FromArgb(75, 152, 96, 143));
|
||||
if (BuyerWaybillStatusStr.StartsWith("已到中转仓"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("已到中转仓"))
|
||||
return new SolidColorBrush(Color.FromRgb(208, 245, 224));
|
||||
if (BuyerWaybillStatusStr.StartsWith("买手已发货"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("买手已发货"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 241, 204));
|
||||
if (BuyerWaybillStatusStr.StartsWith("买手未发货"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("买手未发货"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 219, 219));
|
||||
return new SolidColorBrush(Color.FromRgb(255, 219, 219));
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public SolidColorBrush BuyerWaybillStatusBackColor
|
||||
public SolidColorBrush BuyerTransitWaybillStatusBackColor
|
||||
{
|
||||
get
|
||||
{
|
||||
if (BuyerWaybillStatusStr.StartsWith("买手已退款"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("买手已退款"))
|
||||
return new SolidColorBrush(Color.FromArgb(35, 152, 96, 143));
|
||||
if (BuyerWaybillStatusStr.StartsWith("已到中转仓"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("已到中转仓"))
|
||||
return new SolidColorBrush(Color.FromRgb(231, 250, 240));
|
||||
if (BuyerWaybillStatusStr.StartsWith("买手已发货"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("买手已发货"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 248, 230));
|
||||
if (BuyerWaybillStatusStr.StartsWith("买手未发货"))
|
||||
if (BuyerTransitWaybillStatusStr.StartsWith("买手未发货"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 237, 237));
|
||||
return new SolidColorBrush(Color.FromRgb(255, 237, 237));
|
||||
}
|
||||
@@ -246,18 +256,30 @@ namespace AllBase.Model.Local
|
||||
|
||||
}
|
||||
|
||||
if (ItemTransitOrderWithVoid?.order_void_status == 2)
|
||||
return "中转作废失败";
|
||||
if (ItemTransitOrderWithVoid?.order_void_status == 1)
|
||||
return "中转已作废";
|
||||
if ((ItemTransitOrderWithVoid?.pre_allocated_order_no == 1 || ItemTransitOrderWithVoid?.pre_allocated_order_no == 3) && !ItemTransitOrderWithVoid.express_2_company.IsNullOrEmpty() && !ItemTransitOrderWithVoid.express_2_waybill.IsNullOrEmpty())
|
||||
return "中转已发货";
|
||||
if (ItemTransitOrderWithVoid?.warehouse_status == 2)
|
||||
return "中转已出库";
|
||||
// 老订单还用之前的逻辑判断
|
||||
if (ItemTransitOrderWithVoid?.created_time < new DateTime(2026, 7, 14) && (ItemTransitOrderWithVoid?.pre_allocated_order_no == 1 || ItemTransitOrderWithVoid?.pre_allocated_order_no == 3) && !ItemTransitOrderWithVoid.express_2_company.IsNullOrEmpty() && !ItemTransitOrderWithVoid.express_2_waybill.IsNullOrEmpty())
|
||||
//return "中转已出库*";
|
||||
return "中转已出库";
|
||||
if (ItemTransitOrderWithVoid?.warehouse_status == 1)
|
||||
return "中转已入库";
|
||||
//if ((ItemTransitOrderWithVoid?.pre_allocated_order_no == 1 || ItemTransitOrderWithVoid?.pre_allocated_order_no == 3) && !ItemTransitOrderWithVoid.express_2_company.IsNullOrEmpty() && !ItemTransitOrderWithVoid.express_2_waybill.IsNullOrEmpty())
|
||||
// return "中转已发货";
|
||||
//if (ItemTransitOrderWithVoid?.pre_allocated_order_no == 1 || ItemTransitOrderWithVoid?.pre_allocated_order_no == 3)
|
||||
// return "中转待发货";
|
||||
if (ItemTransitOrderWithVoid?.pre_allocated_order_no == 1 || ItemTransitOrderWithVoid?.pre_allocated_order_no == 3)
|
||||
return "待中转发货";
|
||||
return "中转已取号";
|
||||
if (ItemTransitOrderWithVoid?.pre_allocated_order_no == 2)
|
||||
return "中转提前取号";
|
||||
|
||||
//if (ItemTransitOrderWithVoid?.order_void_status == 2)
|
||||
// return "中转作废失败";
|
||||
//if (ItemTransitOrderWithVoid?.order_void_status == 1)
|
||||
// return "中转已作废";
|
||||
|
||||
if (ItemTransitOrderWithVoid?.pre_allocated_order_no == 0)
|
||||
return "待中转取号";
|
||||
return "中转待取号";
|
||||
return "";
|
||||
}
|
||||
set { }
|
||||
@@ -266,13 +288,13 @@ namespace AllBase.Model.Local
|
||||
{
|
||||
get
|
||||
{
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
return new SolidColorBrush(Color.FromRgb(152, 96, 143));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已发货"))
|
||||
//if (WarehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// return new SolidColorBrush(Color.FromRgb(152, 96, 143));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已出库"))
|
||||
return new SolidColorBrush(Color.FromRgb(19, 206, 102));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("待中转发货") || WarehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已入库") || WarehouseWaybillStatusStr.StartsWith("中转已取号") || WarehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 186, 0));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("待中转取号"))
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 73, 73));
|
||||
return new SolidColorBrush(Color.FromRgb(255, 73, 73));
|
||||
}
|
||||
@@ -282,13 +304,13 @@ namespace AllBase.Model.Local
|
||||
{
|
||||
get
|
||||
{
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
return new SolidColorBrush(Color.FromArgb(75, 152, 96, 143));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已发货"))
|
||||
//if (WarehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// return new SolidColorBrush(Color.FromArgb(75, 152, 96, 143));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已出库"))
|
||||
return new SolidColorBrush(Color.FromRgb(208, 245, 224));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("待中转发货") || WarehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已入库") || WarehouseWaybillStatusStr.StartsWith("中转已取号") || WarehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 241, 204));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("待中转取号"))
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 219, 219));
|
||||
return new SolidColorBrush(Color.FromRgb(255, 219, 219));
|
||||
}
|
||||
@@ -298,13 +320,13 @@ namespace AllBase.Model.Local
|
||||
{
|
||||
get
|
||||
{
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
return new SolidColorBrush(Color.FromArgb(35, 152, 96, 143));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已发货"))
|
||||
//if (WarehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// return new SolidColorBrush(Color.FromArgb(35, 152, 96, 143));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已出库"))
|
||||
return new SolidColorBrush(Color.FromRgb(231, 250, 240));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("待中转发货") || WarehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转已入库") || WarehouseWaybillStatusStr.StartsWith("中转已取号") || WarehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 248, 230));
|
||||
if (WarehouseWaybillStatusStr.StartsWith("待中转取号"))
|
||||
if (WarehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
return new SolidColorBrush(Color.FromRgb(255, 237, 237));
|
||||
return new SolidColorBrush(Color.FromRgb(255, 237, 237));
|
||||
}
|
||||
@@ -343,6 +365,18 @@ namespace AllBase.Model.Local
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public string TransitRefundVoidStatusStr
|
||||
{
|
||||
get
|
||||
{
|
||||
//if (ItemTransitOrderWithVoid?.order_void_status == 2)
|
||||
// return "中转作废失败";
|
||||
if (ItemTransitOrderWithVoid?.order_void_status == 1)
|
||||
return "中转已作废";
|
||||
return "";
|
||||
}
|
||||
set { }
|
||||
}
|
||||
|
||||
|
||||
// 仓库采购时间是否达标字段
|
||||
|
||||
Reference in new issue
Block a user