diff --git a/29WxOrderWpf/29WxOrderWpf.csproj b/29WxOrderWpf/29WxOrderWpf.csproj index c7cabbc..8b1d1ab 100644 --- a/29WxOrderWpf/29WxOrderWpf.csproj +++ b/29WxOrderWpf/29WxOrderWpf.csproj @@ -59,7 +59,7 @@ true - ..\..\WxFindOrder155\ + ..\bin\ DEBUG;TRACE full x64 diff --git a/29WxOrderWpf/Ctrls/BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs b/29WxOrderWpf/Ctrls/BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs index d326769..57e4e52 100644 --- a/29WxOrderWpf/Ctrls/BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs +++ b/29WxOrderWpf/Ctrls/BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs @@ -781,11 +781,11 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls } else { - var index = lstPddBuyerOrderInfoLite.IndexOf(orderExist); + var index = lstFilterPddBuyerOrderInfoLite.IndexOf(orderExist); Dispatcher.Invoke(new Action(() => { - lstPddBuyerOrderInfoLite.Remove(orderExist); - lstPddBuyerOrderInfoLite.Insert(index, order); + lstFilterPddBuyerOrderInfoLite.Remove(orderExist); + lstFilterPddBuyerOrderInfoLite.Insert(index, order); })); } } @@ -979,6 +979,34 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls afterSale.PreAllocatedOrderNoStr = af.PreAllocatedOrderNoStr; afterSale.ShopOrderRefundStr = af.ShopOrderRefundStr; //afterSale.wxRefundStatus = af.wxRefundStatus; + + // 移除,添加 自动更新列表显示 + var index = lstPddBuyerAfterSaleInfoLite.IndexOf(afterSale); + Dispatcher.Invoke(new Action(() => + { + lstPddBuyerAfterSaleInfoLite.Remove(afterSale); + lstPddBuyerAfterSaleInfoLite.Insert(index, afterSale); + })); + } + } + if (filterOneBuyerAfterSale(afterSale)) + { + var afterSaleExist = lstFilterPddBuyerAfterSaleInfoLite.FirstOrDefault(afe => afe.orderSn == afterSale.orderSn); + if (afterSaleExist == null) + { + Dispatcher.Invoke(new Action(() => + { + lstFilterPddBuyerAfterSaleInfoLite.Add(afterSale); + })); + } + else + { + var index = lstFilterPddBuyerAfterSaleInfoLite.IndexOf(afterSaleExist); + Dispatcher.Invoke(new Action(() => + { + lstFilterPddBuyerAfterSaleInfoLite.Remove(afterSaleExist); + lstFilterPddBuyerAfterSaleInfoLite.Insert(index, afterSale); + })); } } diff --git a/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml b/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml index ca53fa8..5451868 100644 --- a/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml +++ b/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml @@ -161,7 +161,19 @@ - + + + + + + + + + + + +