仓库退货订单逻辑 30%

This commit is contained in:
wule committed 2026-08-07 20:04:53 +08:00
1 parent d25374956e
commit d5d235c0b0
18 files changed
+747 -39

No files matched your search

@@ -16,6 +16,12 @@ namespace _29WxOrderWpf.Ctrls.Statistics
InitializeComponent();
// 默认天统计;当 XAML 指定 Week/Month 时通过 PeriodType 回调切换
DataContext = new PeriodRevenueStatisticsViewModel(PeriodStatisticType.Day);
this.Loaded += PeriodRevenueStatisticsView_Loaded;
}
private void PeriodRevenueStatisticsView_Loaded(object sender, RoutedEventArgs e)
{
//(DataContext as PeriodRevenueStatisticsViewModel).Init();
}
public static readonly DependencyProperty PeriodTypeProperty =
@@ -122,7 +122,7 @@
</UserControl.Resources>
<Grid Background="#F5F7FB">
<TabControl Style="{StaticResource StatisticsTabControlStyle}">
<TabControl Style="{StaticResource StatisticsTabControlStyle}" SelectionChanged="TabControl_SelectionChanged">
<TabItem Header="综合统计" Style="{StaticResource StatisticsTabItemStyle}">
<ScrollViewer
wpf:ScrollViewerBehavior.FixMouseWheel="True"
@@ -31,5 +31,18 @@ namespace _29WxOrderWpf.Ctrls.Statistics
{
InfoPopup.IsOpen = false;
}
private void TabControl_Selected(object sender, System.Windows.RoutedEventArgs e)
{
}
private void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (e.AddedItems != null && e.AddedItems.Count > 0 && e.AddedItems[0] is TabItem tab && tab.Content is PeriodRevenueStatisticsView view && view.DataContext is PeriodRevenueStatisticsViewModel vm)
{
vm.Init();
}
}
}
}
@@ -62,6 +62,10 @@ namespace _29WxOrderWpf.Ctrls.Statistics.ViewModels
_nextPageCommand = new DelegateCommand(() => GoToPage(PageIndex + 1), () => HasNextPage);
_lastPageCommand = new DelegateCommand(() => GoToPage(TotalPages), () => HasNextPage);
}
public void Init()
{
InitializeAsync();
}