From e00209cb2449f9784edc225ca47f79162ea156fc Mon Sep 17 00:00:00 2001 From: wule Date: Fri, 24 Jul 2026 11:16:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=86=E7=B1=BB=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=20=20=E5=BF=AB=E9=80=92=E9=87=91=E9=A2=9D=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E7=BB=9F=E8=AE=A1=EF=BC=8C=20=E5=BF=AB=E9=80=92?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E5=85=85=E5=80=BC=20=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 29WxOrder.sln | 23 +- 29WxOrderWpf/29WxOrderWpf.csproj | 15 +- 29WxOrderWpf/29WxOrderWpf.csproj.user | 2 +- .../BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs | 18 +- .../Ctrls/OrderCtrls/OrderListCtrl.xaml | 174 ++++-- .../Ctrls/OrderCtrls/OrderListCtrl.xaml.cs | 260 ++++++-- .../OrderCtrls/OrderListRowHeaderCtrl.xaml | 16 +- .../OrderCtrls/OrderListRowItemCtrl.xaml | 72 +-- .../OrderCtrls/OrderListRowItemCtrl.xaml.cs | 68 +- 29WxOrderWpf/MainWindow.xaml.cs | 2 +- 29WxOrderWpf/StartUp.cs | 16 + 29WxOrderWpf/Styles/BaseButtonStyle.xaml | 31 + .../Styles/UcWaterMarkTextBoxStyle.xaml | 4 +- .../UserControls/UcWaterMarkTextBox.xaml | 20 + .../UserControls/UcWaterMarkTextBox.xaml.cs | 75 +++ ...rMarkTextBox.cs => UcWaterMarkTextBox1.cs} | 6 +- 29WxOrderWpf/gear.ico | Bin 0 -> 270398 bytes AllBase/29WxOrderAllBase.csproj | 2 + AllBase/BaseClass.cs | 2 +- .../Model/DBModel/TransitWarehouseParam.cs | 18 +- AllBase/Model/DBModel/oms_wei_order_info.cs | 46 +- .../Model/DBModel/oms_wei_order_item_info.cs | 520 +++++++++------- AllBase/Model/DBModel/user_payment_record.cs | 154 +++++ AllBase/Model/Result/PddBuyerOrderLiteInfo.cs | 5 + Work/29WxOrderWork.csproj | 10 + Work/29WxOrderWork.csproj.user | 2 +- Work/BaseForms/BaseGeneralForm.cs | 2 +- Work/Initialization.cs | 3 + Work/_29Tools/Forms/PddMobileBuyOrderForm.cs | 58 +- .../Forms/PddMobileBuyOrderForm.designer.cs | 1 + .../Forms/ShopForms/WXShopLoginForm.cs | 35 ++ .../WXGetBalanceQrCodeForm.Designer.cs | 550 +++++++++++++++- .../Forms/UserForms/WXGetBalanceQrCodeForm.cs | 197 +++++- .../UserForms/WXGetBalanceQrCodeForm.resx | 21 + .../UserForms/WXGetTopUpQrCode.Designer.cs | 585 ++++++++++++++++++ .../Forms/UserForms/WXGetTopUpQrCode.cs | 88 +++ .../Forms/UserForms/WXGetTopUpQrCode.resx | 183 ++++++ 37 files changed, 2764 insertions(+), 520 deletions(-) create mode 100644 29WxOrderWpf/UserControls/UcWaterMarkTextBox.xaml create mode 100644 29WxOrderWpf/UserControls/UcWaterMarkTextBox.xaml.cs rename 29WxOrderWpf/UserControls/{UcWaterMarkTextBox.cs => UcWaterMarkTextBox1.cs} (85%) create mode 100644 29WxOrderWpf/gear.ico create mode 100644 AllBase/Model/DBModel/user_payment_record.cs create mode 100644 Work/_29Tools/Forms/UserForms/WXGetTopUpQrCode.Designer.cs create mode 100644 Work/_29Tools/Forms/UserForms/WXGetTopUpQrCode.cs create mode 100644 Work/_29Tools/Forms/UserForms/WXGetTopUpQrCode.resx diff --git a/29WxOrder.sln b/29WxOrder.sln index 2ffd4f3..f7b161d 100644 --- a/29WxOrder.sln +++ b/29WxOrder.sln @@ -1,14 +1,12 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.14.36221.1 d17.14 +# Visual Studio Version 18 +VisualStudioVersion = 18.7.12002.237 oobstable MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "29WxOrderAllBase", "AllBase\29WxOrderAllBase.csproj", "{6461D807-B1C8-45F0-B388-E0CA1A418DE0}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "29供应链-微信小店拍单", "29供应链-微信小店拍单", "{1A7830FA-AC8F-40FB-A232-F0626812B8BE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "29WxOrder", "29WxOrder\29WxOrder.csproj", "{D51A1BB0-17BB-44C3-9129-1F3187E82729}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "29WxOrderWork", "Work\29WxOrderWork.csproj", "{1AD45D66-6872-4522-ACF0-04E2C0514048}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "29WxOrderWpf", "29WxOrderWpf\29WxOrderWpf.csproj", "{D7884375-E42F-4B89-AA3A-D8E75508D8C7}" @@ -43,22 +41,6 @@ Global {6461D807-B1C8-45F0-B388-E0CA1A418DE0}.Release|x64.Build.0 = Release|x64 {6461D807-B1C8-45F0-B388-E0CA1A418DE0}.Release|x86.ActiveCfg = Release|x86 {6461D807-B1C8-45F0-B388-E0CA1A418DE0}.Release|x86.Build.0 = Release|x86 - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Debug|x64.ActiveCfg = Debug|x64 - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Debug|x64.Build.0 = Debug|x64 - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Debug|x86.ActiveCfg = Debug|Any CPU - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Debug|x86.Build.0 = Debug|Any CPU - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Release|Any CPU.Build.0 = Release|Any CPU - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Release|x64.ActiveCfg = Release|x64 - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Release|x64.Build.0 = Release|x64 - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Release|x86.ActiveCfg = Release|x86 - {D51A1BB0-17BB-44C3-9129-1F3187E82729}.Release|x86.Build.0 = Release|x86 {1AD45D66-6872-4522-ACF0-04E2C0514048}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1AD45D66-6872-4522-ACF0-04E2C0514048}.Debug|Any CPU.Build.0 = Debug|Any CPU {1AD45D66-6872-4522-ACF0-04E2C0514048}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 @@ -97,7 +79,6 @@ Global EndGlobalSection GlobalSection(NestedProjects) = preSolution {6461D807-B1C8-45F0-B388-E0CA1A418DE0} = {4A54DC2A-B47C-4ED1-A482-EE60161DB2C3} - {D51A1BB0-17BB-44C3-9129-1F3187E82729} = {1A7830FA-AC8F-40FB-A232-F0626812B8BE} {1AD45D66-6872-4522-ACF0-04E2C0514048} = {4A54DC2A-B47C-4ED1-A482-EE60161DB2C3} {D7884375-E42F-4B89-AA3A-D8E75508D8C7} = {1A7830FA-AC8F-40FB-A232-F0626812B8BE} EndGlobalSection diff --git a/29WxOrderWpf/29WxOrderWpf.csproj b/29WxOrderWpf/29WxOrderWpf.csproj index 246def0..4694fc4 100644 --- a/29WxOrderWpf/29WxOrderWpf.csproj +++ b/29WxOrderWpf/29WxOrderWpf.csproj @@ -55,7 +55,7 @@ 4 - 29_common_icon.ico + gear.ico true @@ -168,6 +168,9 @@ ShopListCtrl.xaml + + UcWaterMarkTextBox.xaml + LoginWindow.xaml @@ -179,7 +182,7 @@ Icons.xaml - + UcWindowBoxes.xaml @@ -219,6 +222,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -386,7 +393,9 @@ - + + + diff --git a/29WxOrderWpf/29WxOrderWpf.csproj.user b/29WxOrderWpf/29WxOrderWpf.csproj.user index e56288b..e905d8d 100644 --- a/29WxOrderWpf/29WxOrderWpf.csproj.user +++ b/29WxOrderWpf/29WxOrderWpf.csproj.user @@ -9,6 +9,6 @@ zh-CN false - ShowAllFiles + ProjectFiles \ No newline at end of file diff --git a/29WxOrderWpf/Ctrls/BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs b/29WxOrderWpf/Ctrls/BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs index 8311a37..aa33f75 100644 --- a/29WxOrderWpf/Ctrls/BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs +++ b/29WxOrderWpf/Ctrls/BuyerCtrls/PDDBuyerOrderReadCtrl.xaml.cs @@ -590,6 +590,7 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls } pdd_order.TransitCreateTime = wx_transit_order?.created_time ?? DateTime.MinValue; pdd_order.TransitPickupTime = wx_transit_order?.pickup_time ?? DateTime.MaxValue.AddMonths(-1); + pdd_order.TransitWarehouseRawMessage = wx_transit_order?.raw_message; } @@ -748,6 +749,7 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls order.TransitCreateTime = o.TransitCreateTime; order.TransitPickupTime = o.TransitPickupTime; + order.TransitWarehouseRawMessage = o.TransitWarehouseRawMessage; order.WxOrderCreateTime = o.WxOrderCreateTime; order.ShopOrderIdStr = o.ShopOrderIdStr; order.ShopOrderSkuIdStr = o.ShopOrderSkuIdStr; @@ -800,7 +802,7 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls //SendOrderE57(order); //if (order.sendStatus.ParseToString().Contains("售后")) - if (order.order_sn == "260706-681553467002665") + if (order.order_sn == "260711-223346705920980") { } @@ -813,6 +815,14 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls var afterSaleRst = PddAutoAfterSale(order); } } + if (order.TransitWarehouseRawMessage.ParseToString().Contains("超出派送范围")) + { + if (!",2,3,4,5,7,8,10,31,".Contains("," + (order.after_sales?.after_sales_status).ParseToString() + ",")) + { + // 待发货直接售后,并通知中转仓接口修改退货状态 + var afterSaleRst = PddAutoAfterSale(order); + } + } // 根据订单状态 取号/修改取号 SendTransitOrderE57(order); @@ -1029,6 +1039,10 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls if (isUpdate) { + if (afterSale.ShopOrderIdStr == "3737682397646176256") + { + + } // 如果买手退款成功,仓库不是买手退款成功,则修改仓库售后字段为买手退款成功 if (afterSale.AfterSaleStatusStr.Contains("退款成功") || afterSale.AfterSaleStatusStr.Contains("交易已取消")) { @@ -1048,7 +1062,7 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls } } // 如果中转仓表买手售后状态不等于买手售后单售后,更新仓库买手售后状态 - else if (afterSale.TransitBuyerOrderRefundStatus != afterSale.AfterSaleStatusStr) + else if (afterSale.TransitBuyerOrderRefundStatus != "买手退款成功" && afterSale.TransitBuyerOrderRefundStatus != afterSale.AfterSaleStatusStr) { //if (!afterSale.AfterSaleStatusStr.Contains("关闭") && !afterSale.AfterSaleStatusStr.Contains("撤销") && !afterSale.AfterSaleStatusStr.Contains("失败")) var orderTmp = new PddBuyerOrderLiteInfo() { ShopOrderIdStr = afterSale.ShopOrderIdStr, order_sn = afterSale.orderSn }; diff --git a/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml b/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml index 6f768f3..a3abb31 100644 --- a/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml +++ b/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml @@ -21,11 +21,11 @@ - - - + + + @@ -33,60 +33,62 @@ - - + - - - - - @@ -187,7 +187,7 @@ Margin="4,0,0,0" Content="仓库退货地址:点击复制" Click="btnGetRefundAddress_Click" Tag="{Binding order_id}">--> - - - - - - - - - - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file