步步为盈
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

251 lines
16 KiB

3 years ago
<Page x:Class="BBWY.Client.Views.BillCorrection.BillCorrectionView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:BBWY.Client.Views.BillCorrection"
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
xmlns:cmodel="clr-namespace:BBWY.Client.Models" xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d"
3 years ago
xmlns:hc="https://handyorg.github.io/handycontrol"
3 years ago
DataContext="{Binding BillCorrection,Source={StaticResource Locator}}"
d:DesignHeight="1080" d:DesignWidth="1920"
3 years ago
Title="BillCorrectionView"
Foreground="{StaticResource Text.Color}">
3 years ago
<Page.Resources>
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="cmodel:StorageType"/>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
</Page.Resources>
<Grid>
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/>
<Grid Margin="5,0">
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="5"/>
<RowDefinition Height="100"/>
<RowDefinition Height="5"/>
<RowDefinition Height="40"/>
<RowDefinition Height="5"/>
3 years ago
<RowDefinition Height="40"/>
<RowDefinition Height="5"/>
3 years ago
<RowDefinition/>
</Grid.RowDefinitions>
<Border Background="{StaticResource Border.Background}" Padding="5,0">
<Border.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Border.Resources>
<StackPanel Orientation="Horizontal">
3 years ago
<c:BTextBox WaterRemark="店铺关键字" Width="150"
Text="{Binding SearchShopKeyWord,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<hc:CheckComboBox IsTextSearchEnabled="True" ItemsSource="{Binding ShopList}"
ShowClearButton="True"
MinWidth="150"
Height="25"
Margin="5,0,0,0">
<hc:CheckComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="5,2.5">
<CheckBox Content="{Binding ShopName}" IsChecked="{Binding IsSelected,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</StackPanel>
</DataTemplate>
</hc:CheckComboBox.ItemTemplate>
<hc:CheckComboBox.ItemContainerStyle>
<Style TargetType="{x:Type hc:CheckComboBoxItem}" BasedOn="{StaticResource NoBgListBoxItemStyle}">
<Setter Property="IsSelected" Value="{Binding IsSelected,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Style>
</hc:CheckComboBox.ItemContainerStyle>
</hc:CheckComboBox>
3 years ago
<DatePicker Height="30" Margin="5,0,0,0" SelectedDate="{Binding StartDate,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<DatePicker Height="30" Margin="5,0,0,0" SelectedDate="{Binding EndDate,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
3 years ago
<c:BButton Content="查询" Margin="5,0,0,0" Padding="10,0" Command="{Binding SearchBillCorrectionOrderCommand}"/>
3 years ago
<c:BButton Content="矫正" Padding="10,0" Command="{Binding CorrectCommand}" Background="#02A7F0"/>
<c:BButton Content="清空" Padding="10,0" Command="{Binding ClearCommand}" Background="{StaticResource Text.Pink}"/>
</StackPanel>
</Border>
<Grid Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="5"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.33*"/>
<ColumnDefinition Width="5"/>
<ColumnDefinition Width="0.33*"/>
<ColumnDefinition Width="5"/>
<ColumnDefinition Width="0.34*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="快递账单"/>
<TextBlock Text="入仓账单" Grid.Column="2" />
<TextBlock Text="出仓账单" Grid.Column="4"/>
<Border BorderThickness="1" BorderBrush="{StaticResource Border.Brush}"
Grid.Row="2">
<Grid Margin="5,0">
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal">
<c:BButton Content="邮政快递" Padding="10,0"
Background="White" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}"
Foreground="{StaticResource Text.Color}"
Command="{Binding ImportSaleFreightBillCommand}" CommandParameter="YZ"/>
<c:BButton Content="圆通快递" Padding="10,0" Margin="5,0"
Background="White" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}"
Foreground="{StaticResource Text.Color}"
Command="{Binding ImportSaleFreightBillCommand}" CommandParameter="YT"/>
<c:BButton Content="京东快递" Padding="10,0"
Background="White" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}"
Foreground="{StaticResource Text.Color}"
Command="{Binding ImportSaleFreightBillCommand}" CommandParameter="JD"/>
</StackPanel>
<ListBox ItemsSource="{Binding SaleFreightBillFileList}"
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
Style="{StaticResource NoScrollViewListBoxStyle}"
Grid.Row="1"
Foreground="{StaticResource Text.Link.Color}">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" Margin="5,0"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</Border>
<Border BorderThickness="1" BorderBrush="{StaticResource Border.Brush}"
Grid.Row="2" Grid.Column="2" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
</Grid.RowDefinitions>
</Grid>
</Border>
<Border BorderThickness="1" BorderBrush="{StaticResource Border.Brush}"
Grid.Row="2" Grid.Column="4" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
</Grid.RowDefinitions>
</Grid>
</Border>
</Grid>
<Border Background="{StaticResource Border.Background}" Padding="5,0" Grid.Row="4">
<Grid>
<StackPanel Orientation="Horizontal">
3 years ago
<TextBlock Text="店铺名称" VerticalAlignment="Center"/>
<ComboBox Margin="5,0,0,0"
DisplayMemberPath="ShopName"
ItemsSource="{Binding LocalShopList}"
SelectedItem="{Binding SelectedLocalShop,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Height="25" VerticalContentAlignment="Center"/>
<TextBlock Text="发货类型" VerticalAlignment="Center" Margin="5,0,0,0"/>
<ComboBox Margin="5,0,0,0"
3 years ago
ItemsSource="{Binding LocalStorageTypeList}"
3 years ago
SelectedItem="{Binding SelectedStorageType,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
3 years ago
Height="25" VerticalContentAlignment="Center" DisplayMemberPath="Key"/>
3 years ago
<TextBlock Text="订单号" VerticalAlignment="Center" Margin="5,0,0,0"/>
3 years ago
<c:BTextBox Width="150" Height="25" Margin="5,0,0,0"
Text="{Binding SearchLocalOrderId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
3 years ago
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<c:BButton Content="结果搜索" Padding="10,0" Command="{Binding SearchLocalCommand}"/>
<c:BButton Content="清空条件" Padding="10,0" Command="{Binding ClearLocalConditionCommand}" Background="{StaticResource Text.Pink}"/>
3 years ago
<c:BButton Content="导出Excel" Padding="10,0" Background="#02A7F0" Command="{Binding ExportCommand}" Visibility="Collapsed"/>
3 years ago
<c:BButton Content="保存" Padding="10,0" Background="#1CC2A2" Command="{Binding SaveCommand}"/>
</StackPanel>
</Grid>
</Border>
3 years ago
<StackPanel Orientation="Horizontal" Grid.Row="6">
<TextBlock Text="筛选" VerticalAlignment="Center" Margin="5,0,0,0"/>
<ComboBox ItemsSource="{Binding LocalFilterOperationList}"
SelectedItem="{Binding SelectedLocalFilterOperation,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Height="25" Margin="5,0,0,0"
VerticalContentAlignment="Center">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Key}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<CheckBox Content="可矫正订单" Margin="5,0,0,0" IsChecked="{Binding IsEnableCanCorrectionOrder}"/>
</StackPanel>
<DataGrid Grid.Row="8"
ItemsSource="{Binding LocalOrderList}"
BorderThickness="1,1,0,0"
BorderBrush="{StaticResource Border.Brush}"
VirtualizingPanel.IsVirtualizing="True"
Foreground="{StaticResource Text.Color}">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding StartTime,StringFormat=yyyy-MM-dd HH:mm:ss}" Header="下单时间" Width="130"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<!--<DataGridTextColumn Binding="{Binding OrderId}" Header="订单号" Width="100"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>-->
<DataGridTemplateColumn Width="100" Header="订单号">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding OrderId}" VerticalAlignment="Center"
BorderThickness="0"
Background="Transparent"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Binding="{Binding StorageType}" Header="发货类型" Width="60"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTextColumn Binding="{Binding SkuAmount}" Header="采购货款" Width="60"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTextColumn Binding="{Binding PurchaseFreight}" Header="采购运费" Width="60"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTextColumn Binding="{Binding FirstFreight}" Header="头程运费" Width="60"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTextColumn Binding="{Binding StorageAmount}" Header="仓储费" Width="60"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTextColumn Binding="{Binding ConsumableAmount}" Header="耗才费" Width="60"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTextColumn Binding="{Binding InStorageAmount}" Header="入仓操作费" Width="70"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTextColumn Binding="{Binding OutStorageAmount}" Header="出仓操作费" Width="70"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTextColumn Binding="{Binding DeliveryExpressFreight}" Header="销售运费" Width="60"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTextColumn Binding="{Binding AfterTotalCost}" Header="售后费用" Width="60"
ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTemplateColumn Header="订单状态" Width="60">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding OrderState}"
Foreground="{Binding OrderState,ConverterParameter=已取消:Red:Gray,Converter={StaticResource objConverter}}"
VerticalAlignment="Center"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Binding="{Binding ChangedContent}" Header="矫正内容" Width="*"
ElementStyle="{StaticResource verticalCenterTextBlock}"
Foreground="Green"/>
</DataGrid.Columns>
</DataGrid>
3 years ago
</Grid>
</Grid>
</Page>