From 78a64aa661db96d981328ba0c14150913787bebb Mon Sep 17 00:00:00 2001 From: chfei Date: Wed, 11 Nov 2026 18:24:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A9=E6=B6=A6=E7=BB=9F=E8=AE=A1=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BF=AB=E9=80=92=E8=B4=B9=E7=AD=9B=E9=80=89?= =?UTF-8?q?=20=E5=BF=AB=E9=80=92=E8=B4=B9=20=E9=A1=B5=E9=9D=A2=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=AF=BC=E5=87=BA=E5=85=A8=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Models/ShopRevenueStatisticsModels.cs | 17 ++ .../RevenueStatisticsSearchBar.xaml | 17 +- .../Services/ShopRevenueStatisticsService.cs | 24 +- .../Statistics/ShopRevenueStatisticsView.xaml | 48 ++-- .../Ctrls/Statistics/ShowOrderDialogView.xaml | 6 +- .../Statistics/ShowOrderDialogView.xaml.cs | 9 +- .../PeriodRevenueStatisticsViewModel.cs | 45 ++-- .../ShopRevenueStatisticsViewModel.cs | 8 +- .../Forms/UserForms/WXGetBalanceQrCodeForm.cs | 216 ++++++++++++------ .../Commons/DialogWindow.xaml.cs | 4 +- 10 files changed, 268 insertions(+), 126 deletions(-) diff --git a/29WxOrderWpf/Ctrls/Statistics/Models/ShopRevenueStatisticsModels.cs b/29WxOrderWpf/Ctrls/Statistics/Models/ShopRevenueStatisticsModels.cs index 88b3386..103eb5e 100644 --- a/29WxOrderWpf/Ctrls/Statistics/Models/ShopRevenueStatisticsModels.cs +++ b/29WxOrderWpf/Ctrls/Statistics/Models/ShopRevenueStatisticsModels.cs @@ -23,6 +23,10 @@ namespace _29WxOrderWpf.Ctrls.Statistics.Models /// 空/Null 表示全部店铺(服务层会取全部店铺的 ErpShopId)。 /// public List ShopIds { get; set; } + /// + /// 是否统计快递费用 + /// + public bool StatPackages { get; set; } } /// @@ -111,6 +115,10 @@ namespace _29WxOrderWpf.Ctrls.Statistics.Models /// 被拒绝金额(分) /// public long RejectedRefund { get; set; } + /// + /// 包裹费用 + /// + public long PackageAmount { get; set; } } /// @@ -199,6 +207,7 @@ namespace _29WxOrderWpf.Ctrls.Statistics.Models /// public int UnrefundedAmount { get; set; } + public long PackageAmount { get; set; } /// /// 买手订单信息(一个订单号对应多个买手订单) /// @@ -288,6 +297,10 @@ namespace _29WxOrderWpf.Ctrls.Statistics.Models public decimal BuyerRefundSuccessedAmount { get; set; } /// 买手号剩余退款金额(尚未成功退款的金额,元) public decimal BuyerRefundRemainingAmount => BuyerRefundAmount - BuyerRefundSuccessedAmount; + /// + /// 包裹费用 + /// + public decimal PackageAmount { get; set; } } /// @@ -355,6 +368,10 @@ namespace _29WxOrderWpf.Ctrls.Statistics.Models /// 平均利润率(利润 / 采购金额,百分数,如 12.34 表示 12.34%) public decimal AverageProfitRate { get; set; } + /// + /// 包裹费用 + /// + public decimal PackageAmount { get; set; } } /// diff --git a/29WxOrderWpf/Ctrls/Statistics/RevenueStatisticsSearchBar.xaml b/29WxOrderWpf/Ctrls/Statistics/RevenueStatisticsSearchBar.xaml index 8910410..0875bfe 100644 --- a/29WxOrderWpf/Ctrls/Statistics/RevenueStatisticsSearchBar.xaml +++ b/29WxOrderWpf/Ctrls/Statistics/RevenueStatisticsSearchBar.xaml @@ -6,6 +6,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="clr-namespace:_29WxOrderWpf.Ctrls.Statistics.ViewModels" + xmlns:wpf="WPFCommon" d:DataContext="{d:DesignInstance Type=vm:ShopRevenueStatisticsViewModel, IsDesignTimeCreatable=True}" mc:Ignorable="d"> @@ -48,9 +49,9 @@ Width="110" Height="32" VerticalContentAlignment="Center" + BorderThickness="1" DisplayMemberPath="Text" IsReadOnly="True" - BorderThickness="1" ItemsSource="{Binding TimeRangeOptions}" SelectedItem="{Binding SelectedTimeRange, Mode=TwoWay}" Style="{StaticResource RoundedComboBox}" /> @@ -60,9 +61,10 @@ FontSize="14" Foreground="#666666" Text="日期" /> - - --> + + +