This commit is contained in:
chfei committed 2026-10-18 20:36:25 +08:00
commit fe87aece4e
16 files changed
+329 -182

No files matched your search

-1
View File
@@ -144,7 +144,6 @@ namespace _29WxOrderWpf
#endregion #endregion
new MainWindow().Show(); new MainWindow().Show();
//new OrderSupportTicketWindow().Show();
} }
//static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) //static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
@@ -14,8 +14,6 @@ namespace _29WxOrderWpf.Converters
{ {
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{ {
return Visibility.Collapsed;
if (value == null) if (value == null)
return Visibility.Collapsed; return Visibility.Collapsed;
return !value.ParseToString().Trim().IsNullOrEmpty() ? Visibility.Visible : Visibility.Collapsed; return !value.ParseToString().Trim().IsNullOrEmpty() ? Visibility.Visible : Visibility.Collapsed;
@@ -1264,7 +1264,7 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
{ {
// 退款状态有变化才发起修改(退款状态不能从退款成功变成未退款) // 退款状态有变化才发起修改(退款状态不能从退款成功变成未退款)
PddBuyerAfterSaleLiteInfo afterSaleRefundSuccessExist = null; PddBuyerAfterSaleLiteInfo afterSaleRefundSuccessExist = null;
afterSaleRefundSuccessExist = lstPddBuyerAfterSaleInfoLite.FirstOrDefault(a => a.afterSalesId != afterSale.afterSalesId && afterSaleRefundSuccessExist = lstPddBuyerAfterSaleInfoLite.ToList().FirstOrDefault(a => a.afterSalesId != afterSale.afterSalesId &&
a.orderSn == afterSale.orderSn && (a.AfterSaleStatusStr.Contains("退款成功") || a.AfterSaleStatusStr.Contains("交易已取消"))); a.orderSn == afterSale.orderSn && (a.AfterSaleStatusStr.Contains("退款成功") || a.AfterSaleStatusStr.Contains("交易已取消")));
if ((afterSaleRefundSuccessExist == null || afterSale.AfterSaleStatusStr == afterSaleRefundSuccessExist.AfterSaleStatusStr) && if ((afterSaleRefundSuccessExist == null || afterSale.AfterSaleStatusStr == afterSaleRefundSuccessExist.AfterSaleStatusStr) &&
@@ -18,14 +18,6 @@
<ColumnDefinition Width="auto" /> <ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Image
Width="24"
Height="24"
Margin="4,0,0,0"
Cursor="Hand"
MouseLeftButtonUp="Image_MouseLeftButtonUp"
Source="{StaticResource imgBuyerOrder}" />
<wpf:SpacingStackPanel <wpf:SpacingStackPanel
@@ -34,6 +26,15 @@
Orientation="Vertical" Orientation="Vertical"
VerticalSpacing="2"> VerticalSpacing="2">
<WrapPanel x:Name="wpPddBuyer"> <WrapPanel x:Name="wpPddBuyer">
<Image
Width="24"
Height="24"
Margin="4,0,0,0"
Cursor="Hand"
MouseLeftButtonUp="Image_MouseLeftButtonUp"
Source="{StaticResource imgBuyerOrder}" />
<CheckBox <CheckBox
x:Name="chkPddBuyerLogin" x:Name="chkPddBuyerLogin"
Margin="2,2,2,2" Margin="2,2,2,2"
@@ -121,6 +122,15 @@
d:Visibility="Visible" d:Visibility="Visible"
Visibility="Visible"> Visibility="Visible">
<Image
x:Name="imgTb"
Width="24"
Height="24"
Margin="4,0,0,0"
Cursor="Hand"
MouseLeftButtonUp="imgTb_MouseLeftButtonUp"
Source="{StaticResource imgBuyerOrder}" />
<CheckBox <CheckBox
x:Name="chkTbBuyerLogin" x:Name="chkTbBuyerLogin"
Margin="2,2,2,2" Margin="2,2,2,2"
@@ -151,8 +151,6 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
int buyZIndex = 2; int buyZIndex = 2;
private void Image_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) private void Image_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
if (/*wpPddBuyer.Visibility == Visibility.Visible*/ chkPddBuyerLogin.IsChecked == true)
{ {
if (MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility != Visibility.Visible) if (MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility != Visibility.Visible)
MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility = Visibility.Visible; MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility = Visibility.Visible;
@@ -164,24 +162,37 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
Panel.SetZIndex(MainWindow.Instance.pddBuyerOrderReadCtrl, buyZIndex++); Panel.SetZIndex(MainWindow.Instance.pddBuyerOrderReadCtrl, buyZIndex++);
MainWindow.Instance.pddBuyerOrderReadCtrl.Visibility = Visibility.Visible; MainWindow.Instance.pddBuyerOrderReadCtrl.Visibility = Visibility.Visible;
MainWindow.Instance.tbBuyerOrderReadCtrl.Visibility = Visibility.Visible; MainWindow.Instance.tbBuyerOrderReadCtrl.Visibility = Visibility.Visible;
}
else if (/*wpTaobaoBuyer.Visibility == Visibility.Visible*/ chkTbBuyerLogin.IsChecked == true)
{
if (MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility != Visibility.Visible)
MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility = Visibility.Visible;
if (Panel.GetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl) < 1)
Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, 1);
else
Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, -1);
Panel.SetZIndex(MainWindow.Instance.tbBuyerOrderReadCtrl, buyZIndex++); //if (/*wpPddBuyer.Visibility == Visibility.Visible*/ chkPddBuyerLogin.IsChecked == true)
MainWindow.Instance.pddBuyerOrderReadCtrl.Visibility = Visibility.Visible; //{
MainWindow.Instance.tbBuyerOrderReadCtrl.Visibility = Visibility.Visible; // if (MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility != Visibility.Visible)
} // MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility = Visibility.Visible;
else // if (Panel.GetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl) < 1)
{ // Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, 1);
Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, -1); // else
} // Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, -1);
// Panel.SetZIndex(MainWindow.Instance.pddBuyerOrderReadCtrl, buyZIndex++);
// MainWindow.Instance.pddBuyerOrderReadCtrl.Visibility = Visibility.Visible;
// MainWindow.Instance.tbBuyerOrderReadCtrl.Visibility = Visibility.Visible;
//}
//else if (/*wpTaobaoBuyer.Visibility == Visibility.Visible*/ chkTbBuyerLogin.IsChecked == true)
//{
// if (MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility != Visibility.Visible)
// MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility = Visibility.Visible;
// if (Panel.GetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl) < 1)
// Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, 1);
// else
// Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, -1);
// Panel.SetZIndex(MainWindow.Instance.tbBuyerOrderReadCtrl, buyZIndex++);
// MainWindow.Instance.pddBuyerOrderReadCtrl.Visibility = Visibility.Visible;
// MainWindow.Instance.tbBuyerOrderReadCtrl.Visibility = Visibility.Visible;
//}
//else
//{
// Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, -1);
//}
} }
@@ -324,8 +335,9 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
} }
} }
private void chkBuyerLogin_Click(object sender, RoutedEventArgs e) private async void chkBuyerLogin_Click(object sender, RoutedEventArgs e)
{ {
if (sender == chkPddBuyerLogin) if (sender == chkPddBuyerLogin)
{ {
chkPddBuyerLogin.IsChecked = true; chkPddBuyerLogin.IsChecked = true;
@@ -336,9 +348,12 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
{ {
//OrderListCtrl.InitOrderObservableProp(order); //OrderListCtrl.InitOrderObservableProp(order);
foreach (var orderItem in order.orderItems) foreach (var orderItem in order.orderItems)
{
await Task.Run(() =>
{ {
orderItem.UpdateOrderItemBuyButton(); orderItem.UpdateOrderItemBuyButton();
orderItem.SetAbnormalAndDirectBtnVisibility(); orderItem.SetAbnormalAndDirectBtnVisibility();
});
} }
} }
} }
@@ -352,12 +367,29 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
{ {
//OrderListCtrl.InitOrderObservableProp(order); //OrderListCtrl.InitOrderObservableProp(order);
foreach (var orderItem in order.orderItems) foreach (var orderItem in order.orderItems)
{
await Task.Run(() =>
{ {
orderItem.UpdateOrderItemBuyButton(); orderItem.UpdateOrderItemBuyButton();
orderItem.SetAbnormalAndDirectBtnVisibility(); orderItem.SetAbnormalAndDirectBtnVisibility();
});
} }
} }
} }
} }
private void imgTb_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
if (MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility != Visibility.Visible)
MainWindow.Instance.gridTbBuyerOrderReadCtrl.Visibility = Visibility.Visible;
if (Panel.GetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl) < 1)
Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, 1);
else
Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, -1);
Panel.SetZIndex(MainWindow.Instance.tbBuyerOrderReadCtrl, buyZIndex++);
MainWindow.Instance.pddBuyerOrderReadCtrl.Visibility = Visibility.Visible;
MainWindow.Instance.tbBuyerOrderReadCtrl.Visibility = Visibility.Visible;
}
} }
} }
@@ -270,22 +270,6 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
Thread.Sleep(1); Thread.Sleep(1);
Dispatcher.Invoke(new Action(() => Dispatcher.Invoke(new Action(() =>
{ {
if (cefShowShopOrderLstWebBrowser == null)
{
cefShowShopOrderLstWebBrowser = WPFCEFBrowser.CreateChromiumWebBrowser("about:blank", false);
LocalResourceRequestHandler resourceRequestHandler = new LocalResourceRequestHandler();
resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadComplete;
resourceRequestHandler.BeforeResourceLoadEvent += RequestHandler_BeforeResourceLoad;
cefShowShopOrderLstWebBrowser.RequestHandler = new LocalRequestHandler(resourceRequestHandler);
var lifeSapnHandler = new LocalLifeSpanHandler(PopWindowType.SelfWindow);
cefShowShopOrderLstWebBrowser.LifeSpanHandler = lifeSapnHandler;
cefShowShopOrderLstWebBrowser.KeyboardHandler = new CefKeyboardHandler();
cefShowShopOrderLstWebBrowser.FrameLoadEnd += CefWebBrowser_FrameLoadEnd;
cefShowShopOrderLstWebBrowser.AddressChanged += CefWebBrowser_AddressChanged;
cefShowShopOrderLstWebBrowser.LoadError += CefWebBrowser_LoadError;
Grid.SetRow(cefShowShopOrderLstWebBrowser, 0);
this.GridCef.Children.Add(cefShowShopOrderLstWebBrowser);
}
if (cefWebBrowser == null) if (cefWebBrowser == null)
{ {
cefWebBrowser = WPFCEFBrowser.CreateChromiumWebBrowser("about:blank", false); cefWebBrowser = WPFCEFBrowser.CreateChromiumWebBrowser("about:blank", false);
@@ -305,6 +289,22 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
if (buyer.wpf_browser == null) if (buyer.wpf_browser == null)
buyer.wpf_browser = cefWebBrowser; buyer.wpf_browser = cefWebBrowser;
if (cefShowShopOrderLstWebBrowser == null)
{
cefShowShopOrderLstWebBrowser = WPFCEFBrowser.CreateChromiumWebBrowser("about:blank", false);
LocalResourceRequestHandler resourceRequestHandler = new LocalResourceRequestHandler();
resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadComplete;
resourceRequestHandler.BeforeResourceLoadEvent += RequestHandler_BeforeResourceLoad;
cefShowShopOrderLstWebBrowser.RequestHandler = new LocalRequestHandler(resourceRequestHandler);
var lifeSapnHandler = new LocalLifeSpanHandler(PopWindowType.SelfWindow);
cefShowShopOrderLstWebBrowser.LifeSpanHandler = lifeSapnHandler;
cefShowShopOrderLstWebBrowser.KeyboardHandler = new CefKeyboardHandler();
cefShowShopOrderLstWebBrowser.FrameLoadEnd += CefWebBrowser_FrameLoadEnd;
cefShowShopOrderLstWebBrowser.AddressChanged += CefWebBrowser_AddressChanged;
cefShowShopOrderLstWebBrowser.LoadError += CefWebBrowser_LoadError;
Grid.SetRow(cefShowShopOrderLstWebBrowser, 0);
this.GridCef.Children.Add(cefShowShopOrderLstWebBrowser);
}
})); }));
} }
} }
@@ -2674,7 +2674,7 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, -1); Panel.SetZIndex(MainWindow.Instance.gridTbBuyerOrderReadCtrl, -1);
} }
private void CheckBox_Click(object sender, RoutedEventArgs e) private async void CheckBox_Click(object sender, RoutedEventArgs e)
{ {
if (sender is CheckBox chk) if (sender is CheckBox chk)
{ {
@@ -2695,18 +2695,18 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
//t.Wait(); //t.Wait();
foreach (var cook in cookieLst) foreach (var cook in cookieLst)
{ {
var t = WPFCEFBrowser.SetCookieAsync(cook.Domain.Trim('.'), cook.Name + "=" + cook.Value + ";", cefShowShopOrderLstWebBrowser.GetCookieManager(null)); await WPFCEFBrowser.SetCookieAsync(cook.Domain.Trim('.'), cook.Name + "=" + cook.Value + ";", cefShowShopOrderLstWebBrowser.GetCookieManager(null));
t.Wait(5000);
} }
Panel.SetZIndex(this.cefShowShopOrderLstWebBrowser, maxZIndex++); Panel.SetZIndex(this.cefShowShopOrderLstWebBrowser, maxZIndex++);
cefShowShopOrderLstWebBrowser.Load("https://buyertrade.taobao.com/trade/itemlist/list_bought_items.htm?");
} }
} }
} }
//if (e.Source) //if (e.Source)
} }
private void txtBuyerNick_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) private async void txtBuyerNick_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{ {
if (sender is TextBox txt) if (sender is TextBox txt)
{ {
@@ -2727,11 +2727,11 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
//t.Wait(); //t.Wait();
foreach (var cook in cookieLst) foreach (var cook in cookieLst)
{ {
var t = WPFCEFBrowser.SetCookieAsync(cook.Domain.Trim('.'), cook.Name + "=" + cook.Value + ";", cefShowShopOrderLstWebBrowser.GetCookieManager(null)); await WPFCEFBrowser.SetCookieAsync(cook.Domain.Trim('.'), cook.Name + "=" + cook.Value + ";", cefShowShopOrderLstWebBrowser.GetCookieManager(null));
t.Wait(5000);
} }
Panel.SetZIndex(this.cefShowShopOrderLstWebBrowser, maxZIndex++); Panel.SetZIndex(this.cefShowShopOrderLstWebBrowser, maxZIndex++);
cefShowShopOrderLstWebBrowser.Load("https://buyertrade.taobao.com/trade/itemlist/list_bought_items.htm?");
} }
} }
} }
@@ -60,6 +60,8 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
/// </summary> /// </summary>
public partial class OrderListCtrl : UserControl, INotifyPropertyChanged public partial class OrderListCtrl : UserControl, INotifyPropertyChanged
{ {
private static readonly object locker = new object();
public static bool IsAutoBuy { get; set; } = false; public static bool IsAutoBuy { get; set; } = false;
public CheckBox chkSelectAll = null; public CheckBox chkSelectAll = null;
OrderFilterConfig _orderFilterConfig; OrderFilterConfig _orderFilterConfig;
@@ -1019,15 +1021,14 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
else else
{ {
oms_wei_ewaybill_path_list = JsonHelper.DeserializeJsonToList<oms_wei_ewaybill_path>(JObject.Parse(html)["data"].ParseToString()).OrderByDescending(p => p.update_time).ToList(); oms_wei_ewaybill_path_list = JsonHelper.DeserializeJsonToList<oms_wei_ewaybill_path>(JObject.Parse(html)["data"].ParseToString()).OrderByDescending(p => p.update_time).ToList();
return oms_wei_ewaybill_path_list;
} }
} }
catch catch
{ {
} }
} }
if (oms_wei_ewaybill_path_list == null) return new List<oms_wei_ewaybill_path>();
oms_wei_ewaybill_path_list = new List<oms_wei_ewaybill_path>();
return oms_wei_ewaybill_path_list;
} }
public static List<WXBuyMapInfo> GetBuyProdMap(List<oms_wei_order_item_info> orderItems) public static List<WXBuyMapInfo> GetBuyProdMap(List<oms_wei_order_item_info> orderItems)
@@ -1075,6 +1076,7 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
} }
catch catch
{ {
return new List<WXBuyMapInfo>();
} }
} }
return GlobalConfig.BuyMapList.Where(m => orderItems.Any(oi => m.spu_code == oi.out_product_id || m.spu_code == oi.product_id)).ToList(); return GlobalConfig.BuyMapList.Where(m => orderItems.Any(oi => m.spu_code == oi.out_product_id || m.spu_code == oi.product_id)).ToList();
@@ -1544,71 +1546,46 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
TabItem tabItem = null; TabItem tabItem = null;
List<TabItem> tabItems = this.tabOrderType.Items.Cast<TabItem>().ToList(); List<TabItem> tabItems = this.tabOrderType.Items.Cast<TabItem>().ToList();
//Dispatcher.Invoke(new Action(() => { tabItem = tabItems.FirstOrDefault(t => t.Header.ParseToString().StartsWith("待采购")); }));
//if (tabItem != null)
{ {
var lstCount = userOrderLst.Where(r => r.IsWaitBuy).Count(); var lstCount = userOrderLst.Where(r => r.IsWaitBuy).Count();
var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "待采购")).Count(); var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "待采购")).Count();
//Dispatcher.Invoke(new Action(() => { tabItem.Header = "待采购(" + lstCount + "|" + filteLstTmpCount + ")"; }));
WaitBuyTabTxt = "待采购(" + lstCount + "|" + filteLstTmpCount + ")"; WaitBuyTabTxt = "待采购(" + lstCount + "|" + filteLstTmpCount + ")";
} }
//Dispatcher.Invoke(new Action(() => { tabItem = tabItems.FirstOrDefault(t => t.Header.ParseToString().StartsWith("待发货")); }));
//if (tabItem != null)
{ {
var lstCount = userOrderLst.Where(r => r.IsWaitSend).Count(); var lstCount = userOrderLst.Where(r => r.IsWaitSend).Count();
var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "待发货")).Count(); var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "待发货")).Count();
//Dispatcher.Invoke(new Action(() => { tabItem.Header = "待发货(" + lstCount + "|" + filteLstTmpCount + ")"; }));
WaitSendTabTxt = "待发货(" + lstCount + "|" + filteLstTmpCount + ")"; WaitSendTabTxt = "待发货(" + lstCount + "|" + filteLstTmpCount + ")";
} }
//Dispatcher.Invoke(new Action(() => { tabItem = tabItems.FirstOrDefault(t => t.Header.ParseToString().StartsWith("待收货")); }));
//if (tabItem != null)
{ {
var lstCount = userOrderLst.Where(r => r.IsWaitReceive).Count(); var lstCount = userOrderLst.Where(r => r.IsWaitReceive).Count();
var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "待收货")).Count(); var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "待收货")).Count();
//Dispatcher.Invoke(new Action(() => { tabItem.Header = "待收货(" + lstCount + "|" + filteLstTmpCount + ")"; }));
WaitReceiveTabTxt = "待收货(" + lstCount + "|" + filteLstTmpCount + ")"; WaitReceiveTabTxt = "待收货(" + lstCount + "|" + filteLstTmpCount + ")";
} }
//Dispatcher.Invoke(new Action(() => { tabItem = tabItems.FirstOrDefault(t => t.Header.ParseToString().StartsWith("售后完成单")); }));
//if (tabItem != null)
{ {
var lstCount = userOrderLst.Where(r => r.IsRefund).Count(); var lstCount = userOrderLst.Where(r => r.IsRefund).Count();
var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "售后完成单")).Count(); var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "售后完成单")).Count();
//Dispatcher.Invoke(new Action(() => { tabItem.Header = "售后完成单(" + lstCount + "|" + filteLstTmpCount + ")"; }));
RefundTabTxt = "售后完成单(" + lstCount + "|" + filteLstTmpCount + ")"; RefundTabTxt = "售后完成单(" + lstCount + "|" + filteLstTmpCount + ")";
} }
//Dispatcher.Invoke(new Action(() => { tabItem = tabItems.FirstOrDefault(t => t.Header.ParseToString().StartsWith("需处理售后单")); }));
//if (tabItem != null)
{ {
var lstCount = userOrderLst.Where(r => r.IsEmergencyManualReturnOrder).Count(); var lstCount = userOrderLst.Where(r => r.IsEmergencyManualReturnOrder).Count();
var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "需处理售后单")).Count(); var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "需处理售后单")).Count();
//Dispatcher.Invoke(new Action(() => { tabItem.Header = "需处理售后单(" + lstCount + "|" + filteLstTmpCount + ")"; }));
EmergencyManualReturnOrderTabTxt = "需处理售后单(" + lstCount + "|" + filteLstTmpCount + ")"; EmergencyManualReturnOrderTabTxt = "需处理售后单(" + lstCount + "|" + filteLstTmpCount + ")";
} }
//Dispatcher.Invoke(new Action(() => { tabItem = tabItems.FirstOrDefault(t => t.Header.ParseToString().StartsWith("退货仓自动售后单")); }));
//if (tabItem != null)
{ {
var lstCount = userOrderLst.Where(r => r.IsEmergencyDistribReturnOrder).Count(); var lstCount = userOrderLst.Where(r => r.IsEmergencyDistribReturnOrder).Count();
var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "退货仓自动售后单")).Count(); var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "退货仓自动售后单")).Count();
//Dispatcher.Invoke(new Action(() => { tabItem.Header = "退货仓自动售后单(" + lstCount + "|" + filteLstTmpCount + ")"; }));
EmergencyDistribReturnOrderTabTxt = "退货仓自动售后单(" + lstCount + "|" + filteLstTmpCount + ")"; EmergencyDistribReturnOrderTabTxt = "退货仓自动售后单(" + lstCount + "|" + filteLstTmpCount + ")";
} }
//Dispatcher.Invoke(new Action(() => { tabItem = tabItems.FirstOrDefault(t => t.Header.ParseToString().StartsWith("异常需重拍")); }));
//if (tabItem != null)
{ {
var lstCount = userOrderLst.Where(r => r.IsAbnormal).Count(); var lstCount = userOrderLst.Where(r => r.IsAbnormal).Count();
var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "异常需重拍")).Count(); var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "异常需重拍")).Count();
//Dispatcher.Invoke(new Action(() => { tabItem.Header = "异常需重拍(" + lstCount + "|" + filteLstTmpCount + ")"; }));
AbnormalTabTxt = "异常需重拍(" + lstCount + "|" + filteLstTmpCount + ")"; AbnormalTabTxt = "异常需重拍(" + lstCount + "|" + filteLstTmpCount + ")";
} }
//Dispatcher.Invoke(new Action(() => { tabItem = tabItems.FirstOrDefault(t => t.Header.ParseToString().StartsWith("全部订单")); }));
//if (tabItem != null)
{ {
var lstCount = userOrderLst.Count(); var lstCount = userOrderLst.Count();
var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "全部订单")).Count(); var filteLstTmpCount = userOrderLst.Where(o => !GetOrderIsFilter(o, "全部订单")).Count();
//Dispatcher.Invoke(new Action(() => { tabItem.Header = "全部订单(" + lstCount + "|" + filteLstTmpCount + ")"; }));\
AllOrderTabTxt = "全部订单(" + lstCount + "|" + filteLstTmpCount + ")"; AllOrderTabTxt = "全部订单(" + lstCount + "|" + filteLstTmpCount + ")";
} }
//txtMsg.Text = "当前条件共计 " + GlobalConfig.lstFilterOrder.Count() + " 条订单记录";
} }
CancellationTokenSource TokenSource = null; CancellationTokenSource TokenSource = null;
@@ -1626,6 +1603,18 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
if (this.lbxOrder == null) if (this.lbxOrder == null)
return; return;
if (token.IsCancellationRequested)
return;
Dispatcher.Invoke(new Action(() =>
{
GlobalConfig.lstFilterOrder.Clear();
//GlobalConfig.lstFilterOrder = new ObservableCollection<oms_wei_order_info>(orderLstTmp);
GlobalConfig.lstFilterOrder = new ObservableCollection<oms_wei_order_info>();
this.lbxOrder.ItemsSource = GlobalConfig.lstFilterOrder;
}));
if (token.IsCancellationRequested)
return;
var orderLstTmp = new List<oms_wei_order_info>(); var orderLstTmp = new List<oms_wei_order_info>();
if (GlobalConfig.OrderTabHeaderStr.StartsWith("需处理售后单") || GlobalConfig.OrderTabHeaderStr.StartsWith("退货仓自动售后单")) if (GlobalConfig.OrderTabHeaderStr.StartsWith("需处理售后单") || GlobalConfig.OrderTabHeaderStr.StartsWith("退货仓自动售后单"))
orderLstTmp = GlobalConfig.lstOrder.Where(o => !GetOrderIsFilter(o)).OrderByDescending(o => o.RefundDatetime).ToList(); orderLstTmp = GlobalConfig.lstOrder.Where(o => !GetOrderIsFilter(o)).OrderByDescending(o => o.RefundDatetime).ToList();
@@ -1634,23 +1623,23 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
else else
orderLstTmp = GlobalConfig.lstOrder.Where(o => !GetOrderIsFilter(o)).OrderByDescending(o => o.create_time).ToList(); orderLstTmp = GlobalConfig.lstOrder.Where(o => !GetOrderIsFilter(o)).OrderByDescending(o => o.create_time).ToList();
//Task.Run(() => { if (token.IsCancellationRequested)
return;
disPlayOrderTabOrderCount(); disPlayOrderTabOrderCount();
//});
Dispatcher.Invoke(new Action(() => int n = 0;
{
GlobalConfig.lstFilterOrder.Clear();
}));
foreach (var order in orderLstTmp) foreach (var order in orderLstTmp)
{ {
if (n++ % 100 == 0)
Thread.Sleep(1);
if (token.IsCancellationRequested) if (token.IsCancellationRequested)
break; break;
if (!GlobalConfig.lstFilterOrder.ToList().Any(o => o.order_id == order.order_id)) if (!GlobalConfig.lstFilterOrder.ToList().Any(o => o.order_id == order.order_id))
Dispatcher.Invoke(new Action(() =>
{ {
GlobalConfig.lstFilterOrder.Add(order); Dispatcher.Invoke(() => { GlobalConfig.lstFilterOrder.Add(order); });
})); }
} }
} }
catch (Exception ex) catch (Exception ex)
@@ -1690,11 +1679,14 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
else else
nextOrder = GlobalConfig.lstFilterOrder.ToList().FirstOrDefault(o => o.create_time < order.create_time); nextOrder = GlobalConfig.lstFilterOrder.ToList().FirstOrDefault(o => o.create_time < order.create_time);
var index = -1;
if (nextOrder != null)
index = GlobalConfig.lstFilterOrder.IndexOf(nextOrder);
Dispatcher.Invoke(() => Dispatcher.Invoke(() =>
{ {
if (nextOrder != null) if (nextOrder != null && index >= 0 && GlobalConfig.lstFilterOrder.Count > index)
{ {
GlobalConfig.lstFilterOrder.Insert(GlobalConfig.lstFilterOrder.IndexOf(nextOrder), order); GlobalConfig.lstFilterOrder.Insert(index, order);
} }
else else
{ {
@@ -466,7 +466,7 @@
Background="Transparent" Background="Transparent"
Foreground="#f56c6c" Foreground="#f56c6c"
Text="{Binding ItemRefund.ReasonTextStr}" Text="{Binding ItemRefund.ReasonTextStr}"
Visibility="{Binding ItemRefund.ReasonTextStrVisibility}" /> Visibility="{Binding RefundReasonTextStrVisibility}" />
<!-- 售后结果 --> <!-- 售后结果 -->
<TextBlock <TextBlock
@@ -536,7 +536,7 @@
IsReadOnly="True" IsReadOnly="True"
Text="{Binding ItemRefund.after_sale_order_id}" Text="{Binding ItemRefund.after_sale_order_id}"
TextWrapping="Wrap" TextWrapping="Wrap"
Visibility="{Binding ItemRefund.AfterSaleOrderIdVisibility}" Visibility="{Binding RefundAfterSaleOrderIdVisibility}"
WaterMark="退款单号" /> WaterMark="退款单号" />
<Border <Border
Width="12" Width="12"
@@ -702,7 +702,7 @@
BorderBrush="{Binding TransitRefundStatusBackColor}" BorderBrush="{Binding TransitRefundStatusBackColor}"
BorderThickness="1" BorderThickness="1"
CornerRadius="2" CornerRadius="2"
Visibility="{Binding TransitRefundStatusStr, Converter={StaticResource HasTextVisibility}}"> Visibility="{Binding TransitRefundStatusStrVisibility}">
<TextBlock <TextBlock
x:Name="txtRefundStatus" x:Name="txtRefundStatus"
MinWidth="20" MinWidth="20"
@@ -722,7 +722,7 @@
Title="采购单号:" Title="采购单号:"
Cursor="Hand" Cursor="Hand"
Foreground="#0099ff" Foreground="#0099ff"
Visibility="{Binding ElementName=txtTransitOrderNumStr, Path=Text, Converter={StaticResource HasTextVisibility}}"> Visibility="{Binding ItemTransitOutOrderNoStrVisibility}">
<WrapPanel Orientation="Horizontal"> <WrapPanel Orientation="Horizontal">
<uc:UcWaterMarkTextBox1 <uc:UcWaterMarkTextBox1
x:Name="txtTransitOrderNumStr" x:Name="txtTransitOrderNumStr"
@@ -746,8 +746,7 @@
Background="Transparent" Background="Transparent"
Cursor="Hand" Cursor="Hand"
MouseLeftButtonDown="Path_MouseLeftButtonDown" MouseLeftButtonDown="Path_MouseLeftButtonDown"
Tag="{Binding order_id}" Tag="{Binding order_id}">
Visibility="{Binding ElementName=txtTransitOrderBuyerStr, Path=Text, Converter={StaticResource HasTextVisibility}}">
<Path <Path
Data="M80 432a128 128 0 0 1 128-128h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128h-384a128 128 0 0 1-128-128v-384z m128-64a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64v-384a64 64 0 0 0-64-64h-384z M816 144h-384a64 64 0 0 0-64 64 32 32 0 0 1-64 0 128 128 0 0 1 128-128h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128 32 32 0 0 1 0-64 64 64 0 0 0 64-64v-384a64 64 0 0 0-64-64z" Data="M80 432a128 128 0 0 1 128-128h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128h-384a128 128 0 0 1-128-128v-384z m128-64a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64v-384a64 64 0 0 0-64-64h-384z M816 144h-384a64 64 0 0 0-64 64 32 32 0 0 1-64 0 128 128 0 0 1 128-128h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128 32 32 0 0 1 0-64 64 64 0 0 0 64-64v-384a64 64 0 0 0-64-64z"
Fill="{StaticResource PageLinkBrush}" Fill="{StaticResource PageLinkBrush}"
@@ -762,7 +761,7 @@
x:Name="wpBuyTime" x:Name="wpBuyTime"
Title="采购时间:" Title="采购时间:"
Foreground="{Binding OutOrderTimeQualifiedBrush}" Foreground="{Binding OutOrderTimeQualifiedBrush}"
Visibility="{Binding ElementName=txtOutOrderTimeQualifiedStr, Path=Text, Converter={StaticResource HasTextVisibility}}"> Visibility="{Binding OutOrderTimeQualifiedStrVisibility}">
<uc:UcWaterMarkTextBox1 <uc:UcWaterMarkTextBox1
x:Name="txtOutOrderTimeQualifiedStr" x:Name="txtOutOrderTimeQualifiedStr"
Margin="-2,0" Margin="-2,0"
@@ -781,7 +780,7 @@
<wpf:TitleContent <wpf:TitleContent
Title="取号物流:" Title="取号物流:"
Foreground="{StaticResource PageOkBrush}" Foreground="{StaticResource PageOkBrush}"
Visibility="{Binding TransitOrderWaybillToWareHouseStr, Converter={StaticResource HasTextVisibility}}"> Visibility="{Binding TransitOrderWaybillToWareHouseStrVisibility}">
<uc:UcWaterMarkTextBox1 <uc:UcWaterMarkTextBox1
Margin="-2,0" Margin="-2,0"
Padding="0" Padding="0"
@@ -811,7 +810,7 @@
</wpf:TitleContent> </wpf:TitleContent>
<!-- 仓库物流 --> <!-- 仓库物流 -->
<wpf:TitleContent Title="仓库物流:" Visibility="{Binding TransitOrderWaybillFromWareHouseStr, Converter={StaticResource HasTextVisibility}}"> <wpf:TitleContent Title="仓库物流:" Visibility="{Binding TransitOrderWaybillFromWareHouseStrVisibility}">
<WrapPanel> <WrapPanel>
<uc:UcWaterMarkTextBox1 <uc:UcWaterMarkTextBox1
Margin="-2,0" Margin="-2,0"
@@ -835,7 +834,7 @@
</wpf:TitleContent> </wpf:TitleContent>
<!-- 仓库物流 --> <!-- 仓库物流 -->
<wpf:TitleContent Title="补发物流:" Visibility="{Binding TransitExtraPackageWaybillStr, Converter={StaticResource HasTextVisibility}}"> <wpf:TitleContent Title="补发物流:" Visibility="{Binding TransitExtraPackageWaybillStrVisibility}">
<WrapPanel> <WrapPanel>
<uc:UcWaterMarkTextBox1 <uc:UcWaterMarkTextBox1
Margin="-2,0" Margin="-2,0"
@@ -855,7 +854,7 @@
Click="btnVoidTransitExtraOrder_Click" Click="btnVoidTransitExtraOrder_Click"
Content="{Binding TransitExtraPackageWaybillBtnStr}" Content="{Binding TransitExtraPackageWaybillBtnStr}"
Style="{StaticResource LinkButton}" Style="{StaticResource LinkButton}"
Visibility="{Binding TransitExtraPackageWaybillBtnStr, Converter={StaticResource HasTextVisibility}}" /> Visibility="{Binding TransitExtraPackageWaybillBtnStrVisibility}" />
</WrapPanel> </WrapPanel>
</wpf:TitleContent> </wpf:TitleContent>
@@ -942,7 +941,7 @@
<wpf:TitleContent <wpf:TitleContent
x:Name="wpDirectBuyTime" x:Name="wpDirectBuyTime"
Title="外采时间:" Title="外采时间:"
Visibility="{Binding ElementName=txtDirectOrderBuyTimeStr, Path=Text, Converter={StaticResource HasTextVisibility}}"> Visibility="{Binding DirectOrderBuyTimeStrVisibility}">
<uc:UcWaterMarkTextBox1 <uc:UcWaterMarkTextBox1
x:Name="txtDirectOrderBuyTimeStr" x:Name="txtDirectOrderBuyTimeStr"
Margin="-2,2" Margin="-2,2"
@@ -1293,7 +1292,7 @@
</wpf:TitleContent> </wpf:TitleContent>
<!-- 总店地址 --> <!-- 总店地址 -->
<wpf:TitleContent Title="总店地址:" Visibility="{Binding PddBuyerAfterSaleAddressStr, Converter={StaticResource HasTextVisibility}}"> <wpf:TitleContent Title="总店地址:" Visibility="{Binding PddBuyerAfterSaleAddressStrVisibility}">
<WrapPanel Orientation="Horizontal"> <WrapPanel Orientation="Horizontal">
<uc:UcWaterMarkTextBox1 <uc:UcWaterMarkTextBox1
x:Name="txtBuyerRefundAddress" x:Name="txtBuyerRefundAddress"
@@ -1303,10 +1302,9 @@
Background="Transparent" Background="Transparent"
BorderThickness="1" BorderThickness="1"
IsReadOnly="True" IsReadOnly="True"
Text="{Binding PddBuyerAfterSaleAddressStr, Converter={StaticResource TextEllipsisConverter}}" Text="{Binding PddBuyerAfterSaleAddressShortStr}"
TextWrapping="Wrap" TextWrapping="Wrap"
ToolTip="{Binding PddBuyerAfterSaleAddressStr}" ToolTip="{Binding PddBuyerAfterSaleAddressStr}"
Visibility="{Binding Text, RelativeSource={RelativeSource Self}, Converter={StaticResource HasTextVisibility}}"
WaterMark="总店退货地址" /> WaterMark="总店退货地址" />
<Border <Border
Width="12" Width="12"
@@ -1326,7 +1324,7 @@
</wpf:TitleContent> </wpf:TitleContent>
<!-- 直发总店 --> <!-- 直发总店 -->
<wpf:TitleContent Title="直发总店:" Visibility="{Binding DirectPddBuyerAfterSaleAddressStr, Converter={StaticResource HasTextVisibility}}"> <wpf:TitleContent Title="直发总店:" Visibility="{Binding DirectPddBuyerAfterSaleAddressStrVisibility}">
<WrapPanel Orientation="Horizontal"> <WrapPanel Orientation="Horizontal">
<uc:UcWaterMarkTextBox1 <uc:UcWaterMarkTextBox1
x:Name="txtDirectBuyerRefundAddress" x:Name="txtDirectBuyerRefundAddress"
@@ -1336,10 +1334,9 @@
Background="Transparent" Background="Transparent"
BorderThickness="1" BorderThickness="1"
IsReadOnly="True" IsReadOnly="True"
Text="{Binding DirectPddBuyerAfterSaleAddressStr, Converter={StaticResource TextEllipsisConverter}}" Text="{Binding DirectPddBuyerAfterSaleAddressShortStr}"
TextWrapping="Wrap" TextWrapping="Wrap"
ToolTip="{Binding DirectPddBuyerAfterSaleAddressStr}" ToolTip="{Binding DirectPddBuyerAfterSaleAddressStr}"
Visibility="{Binding Text, RelativeSource={RelativeSource Self}, Converter={StaticResource HasTextVisibility}}"
WaterMark="总店退货地址" /> WaterMark="总店退货地址" />
<Border <Border
Width="12" Width="12"
@@ -787,8 +787,7 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
// 异步加载图片防止卡顿 // 异步加载图片防止卡顿
// 缩略图在有的电脑上无法显示 // 缩略图在有的电脑上无法显示
//BitmapImage bImg = ImageUrlToBitmapImageConverter.LoadImageFromUrl(order_item.thumb_img + "?imageView2/1/w/100/format/webp|imageMogr2/auto-orient="); //BitmapImage bImg = ImageUrlToBitmapImageConverter.LoadImageFromUrl(order_item.thumb_img + "?imageView2/1/w/100/format/webp|imageMogr2/auto-orient=");
//BitmapImage bImg = AllBase.ImageBuild.LoadBitmipImageFromUrl(order_item.thumb_img); BitmapImage bImg = AllBase.ImageBuild.LoadBitmipImageFromUrl(order_item.thumb_img, 100, 100);
BitmapImage bImg = AllBase.ImageBuild.LoadBitmipImageFromUrl(order_item.thumb_img + "?imageView2/1/w/100/format/webp|imageMogr2/auto-orient=");
Thread.Sleep(Randomx.GetId(1000)); Thread.Sleep(Randomx.GetId(1000));
Dispatcher.Invoke(new Action(() => Dispatcher.Invoke(new Action(() =>
{ {
+1 -1
View File
@@ -37,7 +37,7 @@ namespace AllBase
/// 版本ID /// 版本ID
/// </summary> /// </summary>
public static int VersionCount = 327; public static int VersionCount = 330;
public static string ServerUrl { get; set; } = "http://1.13.195.131:9000"; public static string ServerUrl { get; set; } = "http://1.13.195.131:9000";
public static string DebugUrl { get; set; } = "http://localhost:9000"; public static string DebugUrl { get; set; } = "http://localhost:9000";
+7 -1
View File
@@ -5,6 +5,7 @@ using System.Drawing.Imaging;
using System.IO; using System.IO;
using System.Net; using System.Net;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
@@ -385,7 +386,7 @@ namespace AllBase
} }
} }
public static BitmapImage LoadBitmipImageFromUrl(string url) public static BitmapImage LoadBitmipImageFromUrl(string url, int? width = 0, int? height = 0)
{ {
BitmapImage bitmap = new BitmapImage(); BitmapImage bitmap = new BitmapImage();
@@ -398,6 +399,11 @@ namespace AllBase
{ {
stream.Position = 0; // 重置流的位置到开始处 stream.Position = 0; // 重置流的位置到开始处
bitmap.BeginInit(); bitmap.BeginInit();
if (width != null && height != null)
{
bitmap.DecodePixelWidth = width.Value;
bitmap.DecodePixelHeight = height.Value;
}
bitmap.CreateOptions = BitmapCreateOptions.PreservePixelFormat; bitmap.CreateOptions = BitmapCreateOptions.PreservePixelFormat;
bitmap.CacheOption = BitmapCacheOption.OnLoad; // 或者使用 BitmapCacheOption.OnLoad 以减少内存使用 bitmap.CacheOption = BitmapCacheOption.OnLoad; // 或者使用 BitmapCacheOption.OnLoad 以减少内存使用
bitmap.UriSource = null; // 清除可能的旧UriSource,防止缓存问题 bitmap.UriSource = null; // 清除可能的旧UriSource,防止缓存问题
@@ -14,8 +14,13 @@ namespace AllBase.Model.DBModel
{ {
public string OutOrderNumStr public string OutOrderNumStr
{ {
get { return out_order_no; } get {
set { } if (this.order_no == "3739906242901888256")
{
}
return this.GetValue(x => x.OutOrderNumStr);
}
set { this.SetValue(x => x.OutOrderNumStr, value); }
} }
public string OutOrderBuyerStr public string OutOrderBuyerStr
{ {
@@ -30,7 +35,18 @@ namespace AllBase.Model.DBModel
public long id { get; set; } public long id { get; set; }
public string out_order_no { get; set; } public string out_order_no
{
get { return this.GetValue(x => x.out_order_no); }
set
{
if (this.order_no == "3739906242901888256")
{
}
this.SetValue(x => x.out_order_no, value); OutOrderNumStr = value;
}
}
public string order_no { get; set; } public string order_no { get; set; }
public string order_sku_id { get; set; } public string order_sku_id { get; set; }
public string buyer_account { get; set; } public string buyer_account { get; set; }
+7 -3
View File
@@ -136,6 +136,8 @@ namespace AllBase.Model.DBModel
//状态10 待付款;20 待发货;21 部分发货;30 待收货;100 完成;200 全部商品售后之后,订单取消;250 未付款用户主动取消或超时未付款订单自动取消; //状态10 待付款;20 待发货;21 部分发货;30 待收货;100 完成;200 全部商品售后之后,订单取消;250 未付款用户主动取消或超时未付款订单自动取消;
if (status == 10) if (status == 10)
orderStatusStr = "待付款"; orderStatusStr = "待付款";
else if (status == 20)
orderStatusStr = "待发货";
else if (status == 21) else if (status == 21)
orderStatusStr = "部分发货"; orderStatusStr = "部分发货";
else if (status == 30) else if (status == 30)
@@ -407,7 +409,11 @@ namespace AllBase.Model.DBModel
/// <summary> /// <summary>
/// 状态10 待付款;20 待发货;21 部分发货;30 待收货;100 完成;200 全部商品售后之后,订单取消;250 未付款用户主动取消或超时未付款订单自动取消; /// 状态10 待付款;20 待发货;21 部分发货;30 待收货;100 完成;200 全部商品售后之后,订单取消;250 未付款用户主动取消或超时未付款订单自动取消;
/// </summary> /// </summary>
public int? status { get; set; } public int? status
{
get { return this.GetValue(x => x.status); }
set { this.SetValue(x => x.status, value); SetOrderStatusStr(); }
}
/// <summary> /// <summary>
/// 售后信息json /// 售后信息json
/// </summary> /// </summary>
@@ -691,8 +697,6 @@ namespace AllBase.Model.DBModel
public void SetOrderTextProperty() public void SetOrderTextProperty()
{ {
SetOrderStatusStr();
Shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ErpShopId == shop_id.ParseToString()); Shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ErpShopId == shop_id.ParseToString());
if (this.orderItems.Any(oi => oi.OrderItemExt?.buy_type == "直发") && this.orderItems.Any(oi => oi.ItemTransitOrderWithVoid != null)) if (this.orderItems.Any(oi => oi.OrderItemExt?.buy_type == "直发") && this.orderItems.Any(oi => oi.ItemTransitOrderWithVoid != null))
+122 -29
View File
@@ -103,11 +103,7 @@ namespace AllBase.Model.DBModel
public order_item_ext OrderItemExt public order_item_ext OrderItemExt
{ {
get { return this.GetValue(x => x.OrderItemExt); } get { return this.GetValue(x => x.OrderItemExt); }
set set { this.SetValue(x => x.OrderItemExt, value); }
{
this.SetValue(x => x.OrderItemExt, value);
ShopWaybillExceptionStr = value == null ? "" : value.abnormal_text.ParseToString();
}
} }
/// <summary> /// <summary>
/// 店铺后台显示的物流异常信息(订单扩展信息) /// 店铺后台显示的物流异常信息(订单扩展信息)
@@ -115,13 +111,18 @@ namespace AllBase.Model.DBModel
public string ShopWaybillExceptionStr public string ShopWaybillExceptionStr
{ {
get { return this.GetValue(x => x.ShopWaybillExceptionStr); } get { return this.GetValue(x => x.ShopWaybillExceptionStr); }
set { this.SetValue(x => x.ShopWaybillExceptionStr, value); ShopWaybillExceptionStrVisibility = value.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; } set { this.SetValue(x => x.ShopWaybillExceptionStr, value); }
} }
public Visibility ShopWaybillExceptionStrVisibility public Visibility ShopWaybillExceptionStrVisibility
{ {
get { return this.GetValue(x => x.ShopWaybillExceptionStrVisibility); } get { return this.GetValue(x => x.ShopWaybillExceptionStrVisibility); }
set { this.SetValue(x => x.ShopWaybillExceptionStrVisibility, value); } set { this.SetValue(x => x.ShopWaybillExceptionStrVisibility, value); }
} }
void SetOrderItemExtInfo()
{
ShopWaybillExceptionStr = OrderItemExt == null ? "" : OrderItemExt.abnormal_text.ParseToString();
ShopWaybillExceptionStrVisibility = ShopWaybillExceptionStr.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible;
}
public oms_wei_order_info ItemOrder public oms_wei_order_info ItemOrder
@@ -134,8 +135,21 @@ namespace AllBase.Model.DBModel
public oms_wei_refund_info ItemRefund public oms_wei_refund_info ItemRefund
{ {
get { return this.GetValue(x => x.ItemRefund); } get { return this.GetValue(x => x.ItemRefund); }
set { this.SetValue(x => x.ItemRefund, value); } set { this.SetValue(x => x.ItemRefund, value);
RefundReasonTextStrVisibility = ItemRefund?.ReasonTextStrVisibility ?? Visibility.Collapsed;
RefundAfterSaleOrderIdVisibility = ItemRefund?.AfterSaleOrderIdVisibility ?? Visibility.Collapsed; }
} }
public Visibility RefundReasonTextStrVisibility
{
get { return this.GetValue(x => x.RefundReasonTextStrVisibility); }
set { this.SetValue(x => x.RefundReasonTextStrVisibility, value); }
}
public Visibility RefundAfterSaleOrderIdVisibility
{
get { return this.GetValue(x => x.RefundAfterSaleOrderIdVisibility); }
set { this.SetValue(x => x.RefundAfterSaleOrderIdVisibility, value); }
}
public string RefundAddressStr public string RefundAddressStr
{ {
get { return this.GetValue(x => x.RefundAddressStr); } get { return this.GetValue(x => x.RefundAddressStr); }
@@ -143,10 +157,10 @@ namespace AllBase.Model.DBModel
{ {
this.SetValue(x => x.RefundAddressStr, value); this.SetValue(x => x.RefundAddressStr, value);
if (value.ParseToString().Length > 26) if (RefundAddressStr.ParseToString().Length > 26)
RefundAddressShortStr = string.Join("", value.ParseToString().Take(26)) + "…"; RefundAddressShortStr = string.Join("", RefundAddressStr.ParseToString().Take(26)) + "…";
else else
RefundAddressShortStr = value.ParseToString(); RefundAddressShortStr = RefundAddressStr.ParseToString().Trim();
RefundAddressShortStrVisibility = RefundAddressShortStr.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; RefundAddressShortStrVisibility = RefundAddressShortStr.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible;
} }
@@ -164,6 +178,10 @@ namespace AllBase.Model.DBModel
public void SetItemRefund() public void SetItemRefund()
{ {
if (order_id == "3739902323987233280")
{
}
if (ItemOrder?.refundItems?.Count == 1) if (ItemOrder?.refundItems?.Count == 1)
ItemRefund = ItemOrder?.refundItems?.FirstOrDefault(); ItemRefund = ItemOrder?.refundItems?.FirstOrDefault();
else else
@@ -193,7 +211,7 @@ namespace AllBase.Model.DBModel
public string RefundResultStr public string RefundResultStr
{ {
get { return this.GetValue(x => x.RefundResultStr); } get { return this.GetValue(x => x.RefundResultStr); }
set { this.SetValue(x => x.RefundResultStr, value); RefundResultStrVisibility = value.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; } set { this.SetValue(x => x.RefundResultStr, value); RefundResultStrVisibility = RefundResultStr.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; }
} }
public Visibility RefundResultStrVisibility public Visibility RefundResultStrVisibility
{ {
@@ -260,6 +278,11 @@ namespace AllBase.Model.DBModel
get { return this.GetValue(x => x.ItemTransitOutOrderBuyerStrVisibility); } get { return this.GetValue(x => x.ItemTransitOutOrderBuyerStrVisibility); }
set { this.SetValue(x => x.ItemTransitOutOrderBuyerStrVisibility, value); } set { this.SetValue(x => x.ItemTransitOutOrderBuyerStrVisibility, value); }
} }
public Visibility ItemTransitOutOrderNoStrVisibility
{
get { return this.GetValue(x => x.ItemTransitOutOrderNoStrVisibility); }
set { this.SetValue(x => x.ItemTransitOutOrderNoStrVisibility, value); }
}
public List<oms_wei_external_procurement_after_sale_info> ItemTransitOrderAfterSales { get; set; } = new List<oms_wei_external_procurement_after_sale_info>(); public List<oms_wei_external_procurement_after_sale_info> ItemTransitOrderAfterSales { get; set; } = new List<oms_wei_external_procurement_after_sale_info>();
public oms_wei_external_procurement_after_sale_info ItemTransitOrderAfterSale public oms_wei_external_procurement_after_sale_info ItemTransitOrderAfterSale
{ {
@@ -276,10 +299,6 @@ namespace AllBase.Model.DBModel
get { return this.GetValue(x => x.ItemTransitExtraOrder); } get { return this.GetValue(x => x.ItemTransitExtraOrder); }
set set
{ {
if (order_id == "3739278903964250368")
{
}
this.SetValue(x => x.ItemTransitExtraOrder, value); this.SetValue(x => x.ItemTransitExtraOrder, value);
if (ItemTransitExtraOrder != null) if (ItemTransitExtraOrder != null)
{ {
@@ -295,12 +314,22 @@ namespace AllBase.Model.DBModel
public string TransitExtraPackageWaybillStr public string TransitExtraPackageWaybillStr
{ {
get { return this.GetValue(x => x.TransitExtraPackageWaybillStr); } get { return this.GetValue(x => x.TransitExtraPackageWaybillStr); }
set { this.SetValue(x => x.TransitExtraPackageWaybillStr, value); } set { this.SetValue(x => x.TransitExtraPackageWaybillStr, value); TransitExtraPackageWaybillStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible; }
}
public Visibility TransitExtraPackageWaybillStrVisibility
{
get { return this.GetValue(x => x.TransitExtraPackageWaybillStrVisibility); }
set { this.SetValue(x => x.TransitExtraPackageWaybillStrVisibility, value); }
} }
public string TransitExtraPackageWaybillBtnStr public string TransitExtraPackageWaybillBtnStr
{ {
get { return this.GetValue(x => x.TransitExtraPackageWaybillBtnStr); } get { return this.GetValue(x => x.TransitExtraPackageWaybillBtnStr); }
set { this.SetValue(x => x.TransitExtraPackageWaybillBtnStr, value); } set { this.SetValue(x => x.TransitExtraPackageWaybillBtnStr, value); TransitExtraPackageWaybillBtnStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible; }
}
public Visibility TransitExtraPackageWaybillBtnStrVisibility
{
get { return this.GetValue(x => x.TransitExtraPackageWaybillBtnStrVisibility); }
set { this.SetValue(x => x.TransitExtraPackageWaybillBtnStrVisibility, value); }
} }
public List<order_pdd_buyer_order> PddBuyerOrders { get; set; } = new List<order_pdd_buyer_order>(); public List<order_pdd_buyer_order> PddBuyerOrders { get; set; } = new List<order_pdd_buyer_order>();
public order_pdd_buyer_order PddBuyerOrder public order_pdd_buyer_order PddBuyerOrder
@@ -322,7 +351,26 @@ namespace AllBase.Model.DBModel
public string PddBuyerAfterSaleAddressStr public string PddBuyerAfterSaleAddressStr
{ {
get { return this.GetValue(x => x.PddBuyerAfterSaleAddressStr); } get { return this.GetValue(x => x.PddBuyerAfterSaleAddressStr); }
set { this.SetValue(x => x.PddBuyerAfterSaleAddressStr, value); } set
{
this.SetValue(x => x.PddBuyerAfterSaleAddressStr, value);
PddBuyerAfterSaleAddressStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible;
if (value.ParseToString().Length > 19)
PddBuyerAfterSaleAddressShortStr = string.Join("", value.ParseToString().Take(19)) + "…";
else
PddBuyerAfterSaleAddressShortStr = value.ParseToString();
}
}
public string PddBuyerAfterSaleAddressShortStr
{
get { return this.GetValue(x => x.PddBuyerAfterSaleAddressShortStr); }
set { this.SetValue(x => x.PddBuyerAfterSaleAddressShortStr, value); }
}
public Visibility PddBuyerAfterSaleAddressStrVisibility
{
get { return this.GetValue(x => x.PddBuyerAfterSaleAddressStrVisibility); }
set { this.SetValue(x => x.PddBuyerAfterSaleAddressStrVisibility, value); }
} }
@@ -334,9 +382,6 @@ namespace AllBase.Model.DBModel
public void SetTransitOrder() public void SetTransitOrder()
{ {
if (order_id == "3739241588056569856")
{
}
this.ItemTransitOrder = ItemTransitOrders?.FirstOrDefault(t => t.order_void_status != 1); this.ItemTransitOrder = ItemTransitOrders?.FirstOrDefault(t => t.order_void_status != 1);
this.ItemTransitOrderWithVoid = ItemTransitOrders?.FirstOrDefault(); this.ItemTransitOrderWithVoid = ItemTransitOrders?.FirstOrDefault();
this.SetTransitRefundStatusStr(); this.SetTransitRefundStatusStr();
@@ -530,7 +575,12 @@ namespace AllBase.Model.DBModel
public string TransitOrderWaybillToWareHouseStr public string TransitOrderWaybillToWareHouseStr
{ {
get { return this.GetValue(x => x.TransitOrderWaybillToWareHouseStr); } get { return this.GetValue(x => x.TransitOrderWaybillToWareHouseStr); }
set { this.SetValue(x => x.TransitOrderWaybillToWareHouseStr, value); } set { this.SetValue(x => x.TransitOrderWaybillToWareHouseStr, value); TransitOrderWaybillToWareHouseStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible; }
}
public Visibility TransitOrderWaybillToWareHouseStrVisibility
{
get { return this.GetValue(x => x.TransitOrderWaybillToWareHouseStrVisibility); }
set { this.SetValue(x => x.TransitOrderWaybillToWareHouseStrVisibility, value); }
} }
/// <summary> /// <summary>
/// 提前取号物流编号(虚拟) /// 提前取号物流编号(虚拟)
@@ -546,7 +596,12 @@ namespace AllBase.Model.DBModel
public string TransitOrderWaybillFromWareHouseStr public string TransitOrderWaybillFromWareHouseStr
{ {
get { return this.GetValue(x => x.TransitOrderWaybillFromWareHouseStr); } get { return this.GetValue(x => x.TransitOrderWaybillFromWareHouseStr); }
set { this.SetValue(x => x.TransitOrderWaybillFromWareHouseStr, value); } set { this.SetValue(x => x.TransitOrderWaybillFromWareHouseStr, value); TransitOrderWaybillFromWareHouseStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible; }
}
public Visibility TransitOrderWaybillFromWareHouseStrVisibility
{
get { return this.GetValue(x => x.TransitOrderWaybillFromWareHouseStrVisibility); }
set { this.SetValue(x => x.TransitOrderWaybillFromWareHouseStrVisibility, value); }
} }
public string TransitWarehouseAfterSaleWayBillStr public string TransitWarehouseAfterSaleWayBillStr
{ {
@@ -785,7 +840,12 @@ namespace AllBase.Model.DBModel
public string TransitRefundStatusStr public string TransitRefundStatusStr
{ {
get { return this.GetValue(x => x.TransitRefundStatusStr); } get { return this.GetValue(x => x.TransitRefundStatusStr); }
set { this.SetValue(x => x.TransitRefundStatusStr, value); } set { this.SetValue(x => x.TransitRefundStatusStr, value); TransitRefundStatusStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible; }
}
public Visibility TransitRefundStatusStrVisibility
{
get { return this.GetValue(x => x.TransitRefundStatusStrVisibility); }
set { this.SetValue(x => x.TransitRefundStatusStrVisibility, value); }
} }
/// <summary> /// <summary>
/// 中转仓表买手售后字段文字显示背景颜色 /// 中转仓表买手售后字段文字显示背景颜色
@@ -855,7 +915,12 @@ namespace AllBase.Model.DBModel
public string OutOrderTimeQualifiedStr public string OutOrderTimeQualifiedStr
{ {
get { return this.GetValue(x => x.OutOrderTimeQualifiedStr); } get { return this.GetValue(x => x.OutOrderTimeQualifiedStr); }
set { this.SetValue(x => x.OutOrderTimeQualifiedStr, value); } set { this.SetValue(x => x.OutOrderTimeQualifiedStr, value); OutOrderTimeQualifiedStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible; }
}
public Visibility OutOrderTimeQualifiedStrVisibility
{
get { return this.GetValue(x => x.OutOrderTimeQualifiedStrVisibility); }
set { this.SetValue(x => x.OutOrderTimeQualifiedStrVisibility, value); }
} }
void SetOutOrderTimeQualifiedStr() void SetOutOrderTimeQualifiedStr()
{ {
@@ -1009,7 +1074,12 @@ namespace AllBase.Model.DBModel
public string DirectOrderBuyTimeStr public string DirectOrderBuyTimeStr
{ {
get { return this.GetValue(x => x.DirectOrderBuyTimeStr); } get { return this.GetValue(x => x.DirectOrderBuyTimeStr); }
set { this.SetValue(x => x.DirectOrderBuyTimeStr, value); } set { this.SetValue(x => x.DirectOrderBuyTimeStr, value); DirectOrderBuyTimeStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible; }
}
public Visibility DirectOrderBuyTimeStrVisibility
{
get { return this.GetValue(x => x.DirectOrderBuyTimeStrVisibility); }
set { this.SetValue(x => x.DirectOrderBuyTimeStrVisibility, value); }
} }
@@ -1032,7 +1102,25 @@ namespace AllBase.Model.DBModel
public string DirectPddBuyerAfterSaleAddressStr public string DirectPddBuyerAfterSaleAddressStr
{ {
get { return this.GetValue(x => x.DirectPddBuyerAfterSaleAddressStr); } get { return this.GetValue(x => x.DirectPddBuyerAfterSaleAddressStr); }
set { this.SetValue(x => x.DirectPddBuyerAfterSaleAddressStr, value); } set
{
this.SetValue(x => x.DirectPddBuyerAfterSaleAddressStr, value);
if (value.ParseToString().Length > 19)
DirectPddBuyerAfterSaleAddressShortStr = string.Join("", value.ParseToString().Take(19)) + "…";
else
DirectPddBuyerAfterSaleAddressShortStr = value.ParseToString();
DirectPddBuyerAfterSaleAddressStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible;
}
}
public string DirectPddBuyerAfterSaleAddressShortStr
{
get { return this.GetValue(x => x.DirectPddBuyerAfterSaleAddressShortStr); }
set { this.SetValue(x => x.DirectPddBuyerAfterSaleAddressShortStr, value); }
}
public Visibility DirectPddBuyerAfterSaleAddressStrVisibility
{
get { return this.GetValue(x => x.DirectPddBuyerAfterSaleAddressStrVisibility); }
set { this.SetValue(x => x.DirectPddBuyerAfterSaleAddressStrVisibility, value); }
} }
public string DirectRefundStatusStr public string DirectRefundStatusStr
{ {
@@ -1439,7 +1527,11 @@ namespace AllBase.Model.DBModel
/// <summary> /// <summary>
/// sku属性JSON /// sku属性JSON
/// </summary> /// </summary>
public string sku_attrs { get; set; } public string sku_attrs
{
get { return this.GetValue(x => x.sku_attrs); }
set { this.SetValue(x => x.sku_attrs, value); SetSkuAttrStr(); }
}
/// <summary> /// <summary>
/// sku实付总价,取estimate_price和change_price中较小值 /// sku实付总价,取estimate_price和change_price中较小值
/// </summary> /// </summary>
@@ -1561,7 +1653,6 @@ namespace AllBase.Model.DBModel
// })); // }));
//} //}
this.SetSkuAttrStr();
this.SetItemRefund(); this.SetItemRefund();
this.SetTransitOrder(); this.SetTransitOrder();
this.SetDirectOrder(); this.SetDirectOrder();
@@ -1576,6 +1667,7 @@ namespace AllBase.Model.DBModel
SetOutOrderTimeQualifiedStr(); SetOutOrderTimeQualifiedStr();
CalcOrderPrice(); CalcOrderPrice();
SetOrderItemStatusAndColor(); SetOrderItemStatusAndColor();
SetOrderItemExtInfo();
if (this.ItemTransitOrders != null) if (this.ItemTransitOrders != null)
{ {
@@ -1584,6 +1676,7 @@ namespace AllBase.Model.DBModel
tOrder.SetOutOrderBuyerStr(); tOrder.SetOutOrderBuyerStr();
} }
ItemTransitOutOrderBuyerStrVisibility = (ItemTransitOrderWithVoid?.OutOrderBuyerStr).IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; ItemTransitOutOrderBuyerStrVisibility = (ItemTransitOrderWithVoid?.OutOrderBuyerStr).IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible;
ItemTransitOutOrderNoStrVisibility = (ItemTransitOrderWithVoid?.OutOrderNumStr).IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible;
} }
} }
+32 -32
View File
@@ -15,8 +15,8 @@ namespace AllBase.Model.DBModel
{ {
public string RefundStatusStr public string RefundStatusStr
{ {
get { return this.GetValue(x => x.status); } get { return this.GetValue(x => x.RefundStatusStr); }
set { this.SetValue(x => x.status, value); RefundStatusStrVisibility = RefundStatusStr.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; } set { this.SetValue(x => x.RefundStatusStr, value); RefundStatusStrVisibility = RefundStatusStr.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; }
} }
public Visibility RefundStatusStrVisibility public Visibility RefundStatusStrVisibility
{ {
@@ -52,8 +52,8 @@ namespace AllBase.Model.DBModel
} }
public Visibility AfterSaleOrderIdVisibility public Visibility AfterSaleOrderIdVisibility
{ {
get { return this.GetValue(x => x.ReasonTextStrVisibility); } get { return this.GetValue(x => x.AfterSaleOrderIdVisibility); }
set { this.SetValue(x => x.ReasonTextStrVisibility, value); } set { this.SetValue(x => x.AfterSaleOrderIdVisibility, value); }
} }
public long id { get; set; } public long id { get; set; }
@@ -61,7 +61,7 @@ namespace AllBase.Model.DBModel
public string after_sale_order_id public string after_sale_order_id
{ {
get { return this.GetValue(x => x.after_sale_order_id); } get { return this.GetValue(x => x.after_sale_order_id); }
set { this.SetValue(x => x.after_sale_order_id, value); ReasonTextStrVisibility = value.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; } set { this.SetValue(x => x.after_sale_order_id, value); AfterSaleOrderIdVisibility = value.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; }
} }
/// <summary> /// <summary>
/// 售后单当前状态,参考: /// 售后单当前状态,参考:
@@ -89,35 +89,35 @@ namespace AllBase.Model.DBModel
get { return this.GetValue(x => x.status); } get { return this.GetValue(x => x.status); }
set set
{ {
this.SetValue(x => x.status, value); if (order_id == "3739902323987233280")
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 = "物流拦截中";
else if (value == "USER_WAIT_RECEIPT") this.RefundStatusStr = "换货商品已发货";
else this.RefundStatusStr = value;
//MERCHANT_EXCHANGE_SUCCESS
if (order_id == "3738189148379849472")
{ {
} }
this.SetValue(x => x.status, value);
this.RefundStatusStr = "售后状态读取失败";
if (status == "USER_CANCELD") this.RefundStatusStr = "用户取消申请";
else if (status == "MERCHANT_PROCESSING") this.RefundStatusStr = "商家受理中";
else if (status == "MERCHANT_REJECT_REFUND") this.RefundStatusStr = "商家拒绝退款";
else if (status == "MERCHANT_REJECT_RETURN") this.RefundStatusStr = "商家拒绝退货退款";
else if (status == "USER_WAIT_RETURN") this.RefundStatusStr = "待买家退货";
else if (status == "RETURN_CLOSED") this.RefundStatusStr = "退货退款关闭";
else if (status == "MERCHANT_WAIT_RECEIPT") this.RefundStatusStr = "待商家收货";
else if (status == "MERCHANT_OVERDUE_REFUND") this.RefundStatusStr = "商家逾期未退款";
else if (status == "MERCHANT_REFUND_SUCCESS") this.RefundStatusStr = "退款完成";
else if (status == "MERCHANT_RETURN_SUCCESS") this.RefundStatusStr = "退货退款完成";
else if (status == "PLATFORM_REFUNDING") this.RefundStatusStr = "平台退款中";
else if (status == "PLATFORM_REFUND_FAIL") this.RefundStatusStr = "平台退款失败";
else if (status == "USER_WAIT_CONFIRM") this.RefundStatusStr = "待用户确认";
else if (status == "MERCHANT_REFUND_RETRY_FAIL") this.RefundStatusStr = "商家打款失败,客服关闭售后";
else if (status == "MERCHANT_FAIL") this.RefundStatusStr = "售后关闭";
else if (status == "USER_WAIT_CONFIRM_UPDATE") this.RefundStatusStr = "待用户处理商家协商";
else if (status == "USER_WAIT_HANDLE_MERCHANT_AFTER_SALE") this.RefundStatusStr = "待用户处理商家代发起的售后申请";
else if (status == "WAIT_PACKAGE_INTERCEPT") this.RefundStatusStr = "物流拦截中";
else if (status == "USER_WAIT_RECEIPT") this.RefundStatusStr = "换货商品已发货";
else this.RefundStatusStr = status;
//MERCHANT_EXCHANGE_SUCCESS
List<string> refundStrLst = new List<string>() { "商家受理中", "待买家退货", "待商家收货", "商家逾期未退款", "退款完成", "退货退款完成", "平台退款中", "待用户确认", List<string> refundStrLst = new List<string>() { "商家受理中", "待买家退货", "待商家收货", "商家逾期未退款", "退款完成", "退货退款完成", "平台退款中", "待用户确认",
"待用户处理商家协商", "待用户处理商家代发起的售后申请", "物流拦截中"}; "待用户处理商家协商", "待用户处理商家代发起的售后申请", "物流拦截中"};
@@ -207,7 +207,7 @@ namespace AllBase.Model.DBModel
set set
{ {
this.SetValue(x => x.reason_text, value); this.SetValue(x => x.reason_text, value);
ReasonTextStr = string.IsNullOrEmpty(reason_text) ? string.Empty : "售后原因:" + reason_text; ReasonTextStr = string.IsNullOrEmpty(reason_text) ? string.Empty : ("售后原因:" + reason_text);
} }
} }
/// <summary> /// <summary>
@@ -1181,6 +1181,7 @@ namespace TemuKJD.ToolForms
} }
} }
} }
//time=1792314251&code=22107EDBDC132F485500B33B4C58CFDB&code_version=1&version=329&user_name=13367632144&path=29wx&spu_code=10001462916616&sku_code=%e7%bb%bf%e8%89%b2%e6%8c%8e%e5%8c%85%e5%b0%8f%e9%bb%91%e7%8c%ab%e6%8c%82%e4%bb%b6&main_user_name=13367632144&map_goods_name=超萌小黑猫挂件手工编织毛绒公仔多色礼物送朋友&map_spec_name=【大眼猫】挎包绿&map_goods_id=984310168545&map_sku_id=1941546612897&map_send_address=&transit_warehouse_id=XDYSHANDC
url = BaseClass.Build29WxObjString("order/wx_add_mdy_buy_prod_map"); url = BaseClass.Build29WxObjString("order/wx_add_mdy_buy_prod_map");
var result = await GetHtml.PostUtf8Async(url, data); var result = await GetHtml.PostUtf8Async(url, data);
if (!result.Contains("\"code\":200")) if (!result.Contains("\"code\":200"))