From ed3545e37622ecec2436d45004d086d5b890eb4f Mon Sep 17 00:00:00 2001 From: wule Date: Tue, 14 Jul 2026 12:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=94=AE=E5=90=8E=E5=8D=95=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 29WxOrderWpf/29WxOrderWpf.csproj | 2 +- .../BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs | 34 ++++- .../Ctrls/OrderCtrls/OrderListCtrl.xaml | 20 ++- .../Ctrls/OrderCtrls/OrderListCtrl.xaml.cs | 73 ++++++---- .../OrderCtrls/OrderListRowHeaderCtrl.xaml.cs | 20 +-- .../OrderCtrls/OrderListRowItemCtrl.xaml | 29 ++-- .../OrderCtrls/OrderListRowItemCtrl.xaml.cs | 5 +- AllBase/BaseClass.cs | 2 +- AllBase/Helper/GlobalConfig.cs | 7 + .../Local/oms_wei_external_procurement_log.cs | 21 +++ AllBase/Model/Local/oms_wei_order_info.cs | 11 +- .../Model/Local/oms_wei_order_item_info.cs | 134 +++++++++++------- AllBase/Model/Local/oms_wei_refund_info.cs | 7 +- Work/_29Tools/Forms/PddMobileBuyOrderForm.cs | 16 ++- 14 files changed, 265 insertions(+), 116 deletions(-) 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 @@ - + + + + + + + + + + + +