修复显示作废(显示错误)订单无法作废重拍的问题
This commit is contained in:
1 parent
04584600c8
commit
e492457516
5 files changed
+61
-5
No files matched your search
@@ -554,7 +554,7 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
|||||||
else
|
else
|
||||||
item.ItemTransitOrders.AddRange(transitOrderList.Where(t => t.order_no == item.order_id));
|
item.ItemTransitOrders.AddRange(transitOrderList.Where(t => t.order_no == item.order_id));
|
||||||
// 中转仓退货包裹订单
|
// 中转仓退货包裹订单
|
||||||
if (item.order_id == "3739241588056569856")
|
if (item.order_id == "3740040052771291904")
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1011,7 +1011,7 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
|||||||
pddBuyerAfterSales = JsonHelper.DeserializeJsonToList<yh_sync_logistics>(JObject.Parse(html6)["data"].ParseToString()).OrderByDescending(p => p.id).ToList();
|
pddBuyerAfterSales = JsonHelper.DeserializeJsonToList<yh_sync_logistics>(JObject.Parse(html6)["data"].ParseToString()).OrderByDescending(p => p.id).ToList();
|
||||||
return pddBuyerAfterSales;
|
return pddBuyerAfterSales;
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2135,6 +2135,7 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
|||||||
|
|
||||||
private async void borderWarehouseStatas_MouseUp(object sender, MouseButtonEventArgs e)
|
private async void borderWarehouseStatas_MouseUp(object sender, MouseButtonEventArgs e)
|
||||||
{
|
{
|
||||||
|
return;
|
||||||
if (this.DataContext is oms_wei_order_item_info orderItem)
|
if (this.DataContext is oms_wei_order_item_info orderItem)
|
||||||
{
|
{
|
||||||
oms_wei_order_item_transit_info transitInfo = new oms_wei_order_item_transit_info()
|
oms_wei_order_item_transit_info transitInfo = new oms_wei_order_item_transit_info()
|
||||||
|
|||||||
@@ -116,6 +116,50 @@
|
|||||||
</wpf:TitleContent>
|
</wpf:TitleContent>
|
||||||
</wpf:SpacingStackPanel>
|
</wpf:SpacingStackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
<Border
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="0,10"
|
||||||
|
BorderBrush="LightSkyBlue"
|
||||||
|
BorderThickness="0,0,1,0"
|
||||||
|
Opacity="0.5">
|
||||||
|
<wpf:SpacingStackPanel
|
||||||
|
Margin="10,10"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Orientation="Vertical"
|
||||||
|
VerticalSpacing="4">
|
||||||
|
<wpf:TitleContent
|
||||||
|
Title="{Binding WarehouseName}"
|
||||||
|
d:Title="上海仓"
|
||||||
|
FontWeight="Bold">
|
||||||
|
<TextBox
|
||||||
|
d:Text="已出仓"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderThickness="0"
|
||||||
|
FontWeight="Normal"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Text="{Binding WxOrderId}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</wpf:TitleContent>
|
||||||
|
<wpf:TitleContent Title="入库单号:">
|
||||||
|
<TextBox
|
||||||
|
d:Text="JTSD-JT12345678901122"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderThickness="0"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Text="{Binding PickUpTimeStr}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</wpf:TitleContent>
|
||||||
|
<wpf:TitleContent Title="出库单号:">
|
||||||
|
<TextBox
|
||||||
|
d:Text="YD-3111111555555123"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderThickness="0"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Text="{Binding PickUpTimeStr}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</wpf:TitleContent>
|
||||||
|
</wpf:SpacingStackPanel>
|
||||||
|
</Border>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ using System.Text;
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel;
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel;
|
||||||
@@ -896,6 +897,11 @@ namespace AllBase.Model.DBModel
|
|||||||
|
|
||||||
public bool GetIsAbnormal()
|
public bool GetIsAbnormal()
|
||||||
{
|
{
|
||||||
|
if (order_id == "3740040052771291904")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// 三退或者两退,为退款完成单
|
// 三退或者两退,为退款完成单
|
||||||
//if (orderItems.All(oi => (oi.refund_status == 4 || oi.refund_status == 11) && (oi.ItemTransitOrder != null || string.IsNullOrWhiteSpace(out_order_no)) &&
|
//if (orderItems.All(oi => (oi.refund_status == 4 || oi.refund_status == 11) && (oi.ItemTransitOrder != null || string.IsNullOrWhiteSpace(out_order_no)) &&
|
||||||
// (oi.ItemTransitOrder == null || oi.ItemTransitOrder?.refund_status == "买手退款成功") && (string.IsNullOrWhiteSpace(out_order_no) || out_after_sale_status == "退款成功")))
|
// (oi.ItemTransitOrder == null || oi.ItemTransitOrder?.refund_status == "买手退款成功") && (string.IsNullOrWhiteSpace(out_order_no) || out_after_sale_status == "退款成功")))
|
||||||
@@ -917,7 +923,7 @@ namespace AllBase.Model.DBModel
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
// 订单无售后或者售后关闭,有未作废的仓库单且仓库单买手信息为退款成功
|
// 订单无售后或者售后关闭,有未作废的仓库单且仓库单买手信息为退款成功
|
||||||
if (orderItems.Any(oi => oi.refund_status <= 1 && oi.ItemTransitOrder != null && oi.ItemTransitOrder.refund_status == "买手退款成功"))
|
if (orderItems.Any(oi => oi.refund_status <= 1 && oi.ItemTransitOrderWithVoid != null && oi.ItemTransitOrderWithVoid.refund_status == "买手退款成功"))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// 取号异常或无法调用发货也放在异常单(异常需重拍)
|
// 取号异常或无法调用发货也放在异常单(异常需重拍)
|
||||||
|
|||||||
@@ -1837,17 +1837,22 @@ namespace AllBase.Model.DBModel
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public bool GetIsAbnormalOrderRebuy()
|
public bool GetIsAbnormalOrderRebuy()
|
||||||
{
|
{
|
||||||
|
if (order_id == "3740040052771291904")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
var order_item = this;
|
var order_item = this;
|
||||||
|
|
||||||
// 不是异常单的不可异常重拍
|
// 不是异常单的不可异常重拍
|
||||||
if (order_item?.ItemOrder?.IsAbnormal != true)
|
if (order_item?.ItemOrder?.IsAbnormal != true)
|
||||||
return false;
|
return false;
|
||||||
// 买手未退款的,中转正式取号以后的,不可异常重拍
|
// 买手未退款的,中转正式取号以后的,不可异常重拍
|
||||||
if (order_item.ItemTransitOrder?.refund_status != "买手退款成功" ||
|
if (order_item.ItemTransitOrderWithVoid?.refund_status != "买手退款成功" ||
|
||||||
order_item.WarehouseWaybillStatusStr == "中转已取号" || order_item.WarehouseWaybillStatusStr == "中转已入库" || order_item.WarehouseWaybillStatusStr == "中转已出库")
|
order_item.WarehouseWaybillStatusStr == "中转已取号" || order_item.WarehouseWaybillStatusStr == "中转已入库" || order_item.WarehouseWaybillStatusStr == "中转已出库")
|
||||||
return false;
|
return false;
|
||||||
// 已正式取号的,不可异常重拍
|
// 已正式取号的,不可异常重拍
|
||||||
if (order_item.ItemTransitOrder?.pre_allocated_order_no == 1 || order_item.ItemTransitOrder?.pre_allocated_order_no == 3)
|
if (order_item.ItemTransitOrderWithVoid?.pre_allocated_order_no == 1 || order_item.ItemTransitOrderWithVoid?.pre_allocated_order_no == 3)
|
||||||
return false;
|
return false;
|
||||||
// 仓库异常的异常单不可异常重拍
|
// 仓库异常的异常单不可异常重拍
|
||||||
List<string> rawMsgKeyWords = new List<string> { "取号异常", "无法调用" };
|
List<string> rawMsgKeyWords = new List<string> { "取号异常", "无法调用" };
|
||||||
|
|||||||
Reference in new issue
Block a user