|
@ -3,17 +3,921 @@ |
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
|
|
|
|
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" |
|
|
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
|
|
|
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
|
|
xmlns:local="clr-namespace:BBWY.Client.Views.Order" |
|
|
xmlns:local="clr-namespace:BBWY.Client.Views.Order" |
|
|
DataContext="{Binding OrderList,Source={StaticResource Locator}}" |
|
|
DataContext="{Binding OrderList,Source={StaticResource Locator}}" |
|
|
mc:Ignorable="d" |
|
|
mc:Ignorable="d" |
|
|
d:DesignHeight="450" d:DesignWidth="800"> |
|
|
d:DesignHeight="450" d:DesignWidth="800"> |
|
|
|
|
|
<UserControl.Resources> |
|
|
|
|
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
|
|
|
|
|
<ObjectDataProvider.MethodParameters> |
|
|
|
|
|
<x:Type TypeName="cmodel:StorageType"/> |
|
|
|
|
|
</ObjectDataProvider.MethodParameters> |
|
|
|
|
|
</ObjectDataProvider> |
|
|
|
|
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/> |
|
|
|
|
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/> |
|
|
|
|
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/> |
|
|
|
|
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
|
|
|
|
|
</UserControl.Resources> |
|
|
<Grid> |
|
|
<Grid> |
|
|
<Grid.RowDefinitions> |
|
|
<Grid.RowDefinitions> |
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition Height="30"/> |
|
|
<RowDefinition Height="30"/> |
|
|
|
|
|
<RowDefinition/> |
|
|
</Grid.RowDefinitions> |
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1,1,1,0" |
|
|
|
|
|
Background="#F2F2F2"> |
|
|
|
|
|
<!--Visibility="{Binding Visibility,ElementName=listbox_order}"--> |
|
|
|
|
|
<Grid> |
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition Width="351"/> |
|
|
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="仓储类型" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="采购信息" Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="成本信息" Grid.Column="3" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="利润信息" Grid.Column="4" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="物流信息" Grid.Column="5" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="订单状态" Grid.Column="6" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="备注信息" Grid.Column="7" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
|
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
</Border> |
|
|
|
|
|
<ListBox x:Name="listbox_order" |
|
|
|
|
|
Grid.Row="7" |
|
|
|
|
|
ItemsSource="{Binding OrderList}" |
|
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
|
|
BorderThickness="1,1,1,0" |
|
|
|
|
|
Foreground="{StaticResource Text.Color}" |
|
|
|
|
|
Visibility="{Binding IncludeAfterOrder,Converter={StaticResource objConverter},ConverterParameter=true:Collapsed:Visible}"> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
|
|
|
|
|
MinHeight="185"> |
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition Height="30"/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
<Grid Background="#F2F2F2" Grid.ColumnSpan="2"> |
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock Text="{Binding OrderStartTime,StringFormat=yyyy-MM-dd HH:mm:ss}" VerticalAlignment="Center" Margin="5,0,0,0"/> |
|
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="订单号:" Margin="5,0,0,0" /> |
|
|
|
|
|
<c:BButton Content="{Binding Id}" Style="{StaticResource LinkButton}" |
|
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
|
|
|
CommandParameter="{Binding Id}" Margin="5,0,0,0"/> |
|
|
|
|
|
<Border Width="1" Margin="5,5,0,5" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<c:BButton x:Name="btn_decodeCommand" Content="解密收货信息" Style="{StaticResource LinkButton}" Margin="5,0,0,0" |
|
|
|
|
|
Command="{Binding DataContext.DecodeConsigneeCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
|
|
|
CommandParameter="{Binding }"/> |
|
|
|
|
|
<StackPanel x:Name="txt_consignee" Margin="5,0,0,0" Orientation="Horizontal" VerticalAlignment="Center"> |
|
|
|
|
|
<TextBlock Text="收货人:"/> |
|
|
|
|
|
<TextBox Text="{Binding Consignee.ContactName}" Foreground="{StaticResource Text.Color}" |
|
|
|
|
|
IsReadOnly="True" Background="Transparent" BorderThickness="0"/> |
|
|
|
|
|
<TextBlock Text="联系电话:" Margin="5,0,0,0"/> |
|
|
|
|
|
<TextBox Text="{Binding Consignee.Mobile}" Foreground="{StaticResource Text.Color}" |
|
|
|
|
|
IsReadOnly="True" Background="Transparent" BorderThickness="0"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
<Border VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Grid.Row="1"> |
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition Width="350"/> |
|
|
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
|
|
|
|
<ListBox x:Name="listbox_orerSku" ItemsSource="{Binding ItemList}" |
|
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_orerSku}"> |
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition Width="90"/> |
|
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
|
|
|
|
<!--{Binding Logo}--> |
|
|
|
|
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
|
|
|
|
|
Width="80" DecodePixelWidth="80" |
|
|
|
|
|
VerticalAlignment="Top" Margin="0,5,0,0"/> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="0,5,0,5"> |
|
|
|
|
|
<TextBlock TextTrimming="CharacterEllipsis"> |
|
|
|
|
|
<TextBlock.ToolTip> |
|
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
|
|
<TextBlock Text="{Binding Title}"/> |
|
|
|
|
|
</ToolTip> |
|
|
|
|
|
</TextBlock.ToolTip> |
|
|
|
|
|
<Run Text="SKU名称:"/> |
|
|
|
|
|
<Run Text="{Binding Title}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
<TextBlock TextWrapping="Wrap"> |
|
|
|
|
|
<Run Text="单价:"/> |
|
|
|
|
|
<Run Text="{Binding Price}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
<TextBlock TextWrapping="Wrap"> |
|
|
|
|
|
<Run Text="数量:"/> |
|
|
|
|
|
<Run Text="{Binding ItemTotal}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
|
<StackPanel Orientation="Vertical"> |
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock Text="SPU:"/> |
|
|
|
|
|
<c:BButton Content="{Binding ProductId}" Style="{StaticResource LinkButton}" |
|
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
|
|
|
|
|
CommandParameter="{Binding ProductId}" |
|
|
|
|
|
Margin=" 5,0,0,0"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock Text="SKU:"/> |
|
|
|
|
|
<c:BButton Content="{Binding Id}" Style="{StaticResource LinkButton}" |
|
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
|
|
|
|
|
CommandParameter="{Binding Id}" |
|
|
|
|
|
Margin=" 5,0,0,0"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
<c:BButton Content="修改售后" Padding="5,0" Margin="5,0,0,0" Background="{StaticResource Text.Pink}" |
|
|
|
|
|
Visibility="{Binding DataContext.IsAfterSaleOrder,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}},Converter={StaticResource objConverter},ConverterParameter=true:Visible:Collapsed}" |
|
|
|
|
|
Command="{Binding DataContext.FindAfterSaleOrderCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"> |
|
|
|
|
|
<c:BButton.CommandParameter> |
|
|
|
|
|
<MultiBinding Converter="{StaticResource mptConverter}"> |
|
|
|
|
|
<Binding Path="DataContext.Id" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}"/> |
|
|
|
|
|
<Binding Path="Id"/> |
|
|
|
|
|
<Binding Path="DataContext.OrderStartTime" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}"/> |
|
|
|
|
|
</MultiBinding> |
|
|
|
|
|
</c:BButton.CommandParameter> |
|
|
|
|
|
</c:BButton> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="货号:" /> |
|
|
|
|
|
<Run Text="{Binding ProductItemNum}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
<Border BorderBrush="{StaticResource Text.Pink}" BorderThickness="1" HorizontalAlignment="Left" Padding="5,2" |
|
|
|
|
|
Visibility="{Binding IsRefund,ConverterParameter=true:Visible:Collapsed,Converter={StaticResource objConverter}}"> |
|
|
|
|
|
<TextBlock Text="售后" Foreground="{StaticResource Text.Pink}"/> |
|
|
|
|
|
</Border> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<Border Grid.ColumnSpan="2" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}" |
|
|
|
|
|
DataContext="{Binding DataContext,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
|
|
|
Visibility="{Binding ItemList.Count,Converter={StaticResource objConverter},ConverterParameter=1:Collapsed:Visible}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
|
|
|
|
|
|
|
|
|
<ListBox x:Name="listbox_storageType" Grid.Column="1" |
|
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
|
|
BorderThickness="1,0" |
|
|
|
|
|
ItemsSource="{Binding Source={StaticResource storageTypeProvider}}" |
|
|
|
|
|
SelectedItem="{Binding StorageType,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> |
|
|
|
|
|
<ListBox.ItemContainerStyle> |
|
|
|
|
|
<Style BasedOn="{StaticResource NoBgListBoxItemStyle}" TargetType="ListBoxItem"> |
|
|
|
|
|
<Setter Property="IsEnabled"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<MultiBinding Converter="{StaticResource ostConverter}"> |
|
|
|
|
|
<MultiBinding.Bindings> |
|
|
|
|
|
<Binding Path="."/> |
|
|
|
|
|
<Binding Path="DataContext.StorageType" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}"/> |
|
|
|
|
|
</MultiBinding.Bindings> |
|
|
|
|
|
</MultiBinding> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
<Style.Triggers> |
|
|
|
|
|
<Trigger Property="IsEnabled" Value="False"> |
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
</Style.Triggers> |
|
|
|
|
|
</Style> |
|
|
|
|
|
</ListBox.ItemContainerStyle> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<!--<Grid x:Name="grid_storageType" |
|
|
|
|
|
Width="{Binding ActualWidth,ElementName=listbox_storageType}" |
|
|
|
|
|
Margin="5" Height="25" |
|
|
|
|
|
Background="{StaticResource Button.Normal.Background}"> |
|
|
|
|
|
<TextBlock x:Name="txt_storageType" Text="{Binding }" HorizontalAlignment="Center" VerticalAlignment="Center" |
|
|
|
|
|
Margin="0,0,7,0"/> |
|
|
|
|
|
</Grid>--> |
|
|
|
|
|
<c:BButton x:Name="btn_storageType" Content="{Binding }" |
|
|
|
|
|
Width="{Binding ActualWidth,ElementName=listbox_storageType}" |
|
|
|
|
|
Margin="5,5,5,0" Height="25" |
|
|
|
|
|
Background="{StaticResource Button.Normal.Background}" |
|
|
|
|
|
Foreground="{StaticResource Text.Color}" |
|
|
|
|
|
DisableText="{Binding Content,RelativeSource={RelativeSource Mode=Self}}" |
|
|
|
|
|
Command="{Binding DataContext.ChooseStorageTypeCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"> |
|
|
|
|
|
<c:BButton.CommandParameter> |
|
|
|
|
|
<MultiBinding Converter="{StaticResource mptConverter}"> |
|
|
|
|
|
<Binding Path="DataContext.Id" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}"/> |
|
|
|
|
|
<Binding Path="."/> |
|
|
|
|
|
</MultiBinding> |
|
|
|
|
|
</c:BButton.CommandParameter> |
|
|
|
|
|
</c:BButton> |
|
|
|
|
|
<DataTemplate.Triggers> |
|
|
|
|
|
<DataTrigger Binding="{Binding IsSelected,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBoxItem}}}" |
|
|
|
|
|
Value="True"> |
|
|
|
|
|
<Setter TargetName="btn_storageType" Property="Background" Value="{StaticResource Button.Selected.Background}"/> |
|
|
|
|
|
<Setter TargetName="btn_storageType" Property="Foreground" Value="White"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
</DataTemplate.Triggers> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
|
|
|
|
|
|
|
|
|
<ListBox x:Name="listbox_df" Grid.Column="2" |
|
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
|
|
ItemsSource="{Binding OrderDropShippingList}" |
|
|
|
|
|
Visibility="Collapsed" |
|
|
|
|
|
VerticalAlignment="Center" |
|
|
|
|
|
Foreground="{StaticResource Text.Color}"> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<StackPanel Grid.Column="2" VerticalAlignment="Center" |
|
|
|
|
|
HorizontalAlignment="Center" Margin="10,0,0,10"> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="采购平台"/> |
|
|
|
|
|
<Run Text="{Binding PurchasePlatform}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="买家账号"/> |
|
|
|
|
|
<Run Text="{Binding BuyerAccount}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
<TextBlock ToolTip="{Binding SellerAccount}"> |
|
|
|
|
|
<Run Text="卖家账号"/> |
|
|
|
|
|
<Run Text="{Binding SellerAccount}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock Text="采购单号"/> |
|
|
|
|
|
<c:BButton Content="{Binding PurchaseOrderId}" Style="{StaticResource LinkButton}" |
|
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
|
|
|
|
|
CommandParameter="{Binding PurchaseOrderId}" |
|
|
|
|
|
Margin="3,0,0,0"/> |
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="采购成本"/> |
|
|
|
|
|
<Run Text="{Binding PurchaseAmount}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
|
|
|
|
|
|
|
|
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="2" HorizontalAlignment="Right"/> |
|
|
|
|
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="3" HorizontalAlignment="Right"/> |
|
|
|
|
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="4" HorizontalAlignment="Right"/> |
|
|
|
|
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="5" HorizontalAlignment="Right"/> |
|
|
|
|
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="6" HorizontalAlignment="Right"/> |
|
|
|
|
|
|
|
|
|
|
|
<Border x:Name="bd_costbg" Background="#FCECEE" Grid.Column="3" |
|
|
|
|
|
Visibility="{Binding IsCostException,ConverterParameter=true:Visible:Collapsed,Converter={StaticResource objConverter}}" Margin="0,0,1,0"/> |
|
|
|
|
|
<StackPanel Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,10"> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="实收金额"/> |
|
|
|
|
|
<Run Text="{Binding ActualAmount,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
|
|
|
|
<Path Style="{StaticResource path_question}" Width="14" Margin="5,0,0,0" Fill="{StaticResource Text.Pink}" ToolTipService.InitialShowDelay="0"> |
|
|
|
|
|
<Path.ToolTip> |
|
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
|
|
<StackPanel> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="货款金额"/> |
|
|
|
|
|
<Run Text="{Binding OrderSellerPrice}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="用户支付运费"/> |
|
|
|
|
|
<Run Text="{Binding FreightPrice}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</ToolTip> |
|
|
|
|
|
</Path.ToolTip> |
|
|
|
|
|
</Path> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Visibility="{Binding OrderCost.RefundAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}" |
|
|
|
|
|
Foreground="Red"> |
|
|
|
|
|
<Run Text="退款金额"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.RefundAmount}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Visibility="{Binding OrderCost.RefundPurchaseAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}" |
|
|
|
|
|
Foreground="Red"> |
|
|
|
|
|
<Run Text="采购退款"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.RefundPurchaseAmount}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel x:Name="sp_orderCoupon" Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="优惠金额"/> |
|
|
|
|
|
<Run Text="{Binding PreferentialAmount}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
|
|
|
|
<Path Style="{StaticResource path_question}" Width="14" Margin="5,0,0,0" Fill="{StaticResource Text.Pink}" ToolTipService.InitialShowDelay="0"> |
|
|
|
|
|
<Path.ToolTip> |
|
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
|
|
<ListBox ItemsSource="{Binding OrderCouponList}" |
|
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" Foreground="{StaticResource Text.Color}"> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="{Binding CouponType}"/> |
|
|
|
|
|
<Run Text="{Binding CouponPrice,StringFormat=¥{0}}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
|
|
|
</ToolTip> |
|
|
|
|
|
</Path.ToolTip> |
|
|
|
|
|
</Path> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel x:Name="sp_purchaseAmount" Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="采购成本"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.BeforeTotalCost}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
|
|
|
|
<Path x:Name="path_purchaseAmount_question" |
|
|
|
|
|
Style="{StaticResource path_question}" |
|
|
|
|
|
Width="14" Margin="5,0,0,0" Fill="{StaticResource Text.Pink}" |
|
|
|
|
|
ToolTipService.InitialShowDelay="0" |
|
|
|
|
|
ToolTipService.ShowDuration="20000"> |
|
|
|
|
|
<Path.ToolTip> |
|
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
|
|
<Grid> |
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
<TextBlock x:Name="txt_isManualed" Text="该订单成本经过手动编辑" |
|
|
|
|
|
Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Foreground="Red" |
|
|
|
|
|
Visibility="{Binding OrderCost.IsManualEdited,Converter={StaticResource objConverter},ConverterParameter=true:Visible:Collapsed}"/> |
|
|
|
|
|
<ListBox Grid.Row="1" |
|
|
|
|
|
ItemsSource="{Binding OrderCostDetailGroupList}" |
|
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
|
|
Foreground="{StaticResource Text.Color}"> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<Grid> |
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition Height="20"/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
<TextBlock Text="{Binding SkuId,StringFormat=SKU {0}}" VerticalAlignment="Center"/> |
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="1"> |
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition Width="120"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition Height="25"/> |
|
|
|
|
|
<RowDefinition Height="25"/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.RowSpan="2"> |
|
|
|
|
|
<TextBlock Text="库存流水" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="1" Grid.ColumnSpan="2"> |
|
|
|
|
|
<TextBlock Text="商品成本" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="3" Grid.ColumnSpan="6"> |
|
|
|
|
|
<TextBlock Text="期间成本" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="9" Grid.RowSpan="2"> |
|
|
|
|
|
<TextBlock Text="小计成本" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="10" Grid.RowSpan="2"> |
|
|
|
|
|
<TextBlock Text="扣减时间" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="1" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="货款成本" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="2" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="采购运费" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="3" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="头程费" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="4" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="打包耗材" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="5" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="快递费" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="6" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="入库操作" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="7" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="出库操作" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="8" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="仓储费" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
<Border Grid.RowSpan="2" Grid.ColumnSpan="11" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.RowSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="1" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="2" Grid.RowSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="3" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="4" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="5" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="6" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="7" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="8" Grid.RowSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="9" Grid.RowSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Height="1" VerticalAlignment="Bottom" Grid.Column="1" Grid.ColumnSpan="8" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<ListBox Grid.Row="2" |
|
|
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
|
|
BorderThickness="1,0,1,0" |
|
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
|
|
ItemsSource="{Binding Items}"> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<Grid Height="25"> |
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition Width="120"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
<TextBlock Text="{Binding PurchaseOrderPKId}" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="{Binding SkuAmount}" Grid.Column="1" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding SkuAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding PurchaseFreight}" Grid.Column="2" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding PurchaseFreight,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding FirstFreight}" Grid.Column="3" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding FirstFreight,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding ConsumableAmount}" Grid.Column="4" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding ConsumableAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding DeliveryExpressFreight}" Grid.Column="5" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding DeliveryExpressFreight,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding InStorageAmount}" Grid.Column="6" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding InStorageAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding OutStorageAmount}" Grid.Column="7" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding OutStorageAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding StorageAmount}" Grid.Column="8" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding StorageAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding TotalCost2,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" Grid.Column="9" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="{Binding CreateTime,StringFormat=yyyy-MM-dd}" Grid.Column="10" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Grid.Column="1" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="2" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="3" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="4" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="5" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="6" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="7" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="8" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="9" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Height="1" VerticalAlignment="Bottom" Grid.ColumnSpan="11" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
|
|
|
<!--<TextBlock Text="汇总" Grid.Row="2"/> |
|
|
|
|
|
<Grid Grid.Row="3"> |
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
|
|
|
|
</Grid>--> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
</ToolTip> |
|
|
|
|
|
</Path.ToolTip> |
|
|
|
|
|
</Path> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel x:Name="sp_afterSaleOrder" Orientation="Horizontal" |
|
|
|
|
|
Visibility="{Binding OrderCost.AfterTotalCost,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="售后成本"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.AfterTotalCost}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
|
|
|
|
<Path Style="{StaticResource path_question}" |
|
|
|
|
|
Width="14" Margin="5,0,0,0" Fill="{StaticResource Text.Pink}" |
|
|
|
|
|
ToolTipService.InitialShowDelay="0" |
|
|
|
|
|
ToolTipService.ShowDuration="10000"> |
|
|
|
|
|
<Path.ToolTip> |
|
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
|
|
<Grid> |
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
<ListBox ItemsSource="{Binding AfterSaleOrderGroupList}" |
|
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
|
|
Foreground="{StaticResource Text.Color}"> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<Grid> |
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition Height="20"/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
<TextBlock Text="{Binding SkuId,StringFormat=SKU {0}}" VerticalAlignment="Center"/> |
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="1"> |
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition Width="120"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition Height="25"/> |
|
|
|
|
|
<RowDefinition Height="25"/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.RowSpan="2"> |
|
|
|
|
|
<TextBlock Text="服务单号" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="1" Grid.ColumnSpan="2"> |
|
|
|
|
|
<TextBlock Text="商品成本" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="3" Grid.ColumnSpan="6"> |
|
|
|
|
|
<TextBlock Text="期间成本" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="9" Grid.ColumnSpan="3"> |
|
|
|
|
|
<TextBlock Text="售后耗损" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="1" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="货款成本" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="2" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="采购运费" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="3" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="头程费" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="4" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="打包耗材" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="5" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="快递费" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="6" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="入库操作" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="7" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="出库操作" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="8" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="仓储费" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="9" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="退货入仓" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="10" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="售后补偿" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="11" Grid.Row="1"> |
|
|
|
|
|
<TextBlock Text="SD退货" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="12" Grid.RowSpan="2"> |
|
|
|
|
|
<TextBlock Text="售后小计" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Column="13" Grid.RowSpan="2"> |
|
|
|
|
|
<TextBlock Text="退款到账" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
<Border Grid.RowSpan="2" Grid.ColumnSpan="14" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.RowSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="1" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="2" Grid.RowSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="3" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="4" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="5" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="6" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="7" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="8" Grid.RowSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="9" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="10" Grid.Row="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="11" Grid.RowSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Grid.Column="12" Grid.RowSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Height="1" VerticalAlignment="Bottom" Grid.Column="1" Grid.ColumnSpan="11" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<ListBox Grid.Row="2" |
|
|
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
|
|
BorderThickness="1,0,1,0" |
|
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
|
|
ItemsSource="{Binding Items}"> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
|
<DataTemplate> |
|
|
|
|
|
<Grid Height="25"> |
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition Width="120"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="{Binding ServiceId}" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="{Binding ReissueProductAmount}" Grid.Column="1" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding ReissueProductAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding ReissueFreight}" Grid.Column="2" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding ReissueFreight,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding FirstFreight}" Grid.Column="3" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding FirstFreight,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding ConsumableAmount}" Grid.Column="4" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding ConsumableAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding DeliveryExpressFreight}" Grid.Column="5" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding DeliveryExpressFreight,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding InStorageAmount}" Grid.Column="6" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding InStorageAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding OutStorageAmount}" Grid.Column="7" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding OutStorageAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding StorageAmount}" Grid.Column="8" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding StorageAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding RefundInStorageAmount}" Grid.Column="9" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding RefundInStorageAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding ReissueAfterSaleAmount}" Grid.Column="10" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding ReissueAfterSaleAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="{Binding SDRefundFreight}" Grid.Column="11" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding SDRefundFreight,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
<TextBlock Text="{Binding AfterTotalCost}" Grid.Column="12" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
<TextBlock Text="{Binding RefundPurchaseAmount}" Grid.Column="13" Style="{StaticResource middleTextBlock}" |
|
|
|
|
|
Visibility="{Binding RefundPurchaseAmount,ConverterParameter=0|0.0|0.00:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
|
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
<Border Grid.Column="1" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="2" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="3" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="4" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="5" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="6" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="7" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="8" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="9" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="10" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="11" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Grid.Column="12" Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Margin="0,0,-1,0"/> |
|
|
|
|
|
<Border Height="1" VerticalAlignment="Bottom" Grid.ColumnSpan="14" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
|
|
|
<!--<TextBlock Text="汇总" Grid.Row="2"/> |
|
|
|
|
|
<Grid Grid.Row="3"> |
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
<RowDefinition/> |
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
|
|
|
|
</Grid>--> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
</ToolTip> |
|
|
|
|
|
</Path.ToolTip> |
|
|
|
|
|
</Path> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="平台扣点"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.PlatformCommissionAmount}"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.PlatformCommissionRatio,StringFormat=({0:P})}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock x:Name="txt_sdCommissionAmount"> |
|
|
|
|
|
<Run Text="{Binding SDType,Converter={StaticResource objConverter},ConverterParameter=自刷:空单号/刷单号:SD佣金}"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.SDCommissionAmount}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="成本总计"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.TotalCost,Mode=OneWay}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Column="3" VerticalAlignment="Bottom" Margin="0,0,0,23" |
|
|
|
|
|
Visibility="{Binding Visibility,ElementName=btn_editCost}"/> |
|
|
|
|
|
<c:BButton x:Name="btn_editCost" Content="修改" Grid.Column="3" VerticalAlignment="Bottom" |
|
|
|
|
|
Foreground="{StaticResource Text.Color}" |
|
|
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
|
|
Background="White" |
|
|
|
|
|
Margin="0,0,1,0" |
|
|
|
|
|
Command="{Binding DataContext.EditCostCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
|
|
|
|
|
CommandParameter="{Binding }" |
|
|
|
|
|
Visibility="{Binding StorageType,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}" |
|
|
|
|
|
Height="23"/> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Center"> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="利润"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.Profit}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
<TextBlock> |
|
|
|
|
|
<Run Text="利润率"/> |
|
|
|
|
|
<Run Text="{Binding OrderCost.ProfitRatio,StringFormat=\{0\}%}"/> |
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Grid x:Name="sp_store" Grid.Column="5"> |
|
|
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
|
|
|
|
|
<TextBlock x:Name="txt_storeName" |
|
|
|
|
|
Text="{Binding StoreName}" |
|
|
|
|
|
TextWrapping="Wrap" |
|
|
|
|
|
HorizontalAlignment="Center" |
|
|
|
|
|
Visibility="{Binding StoreName,Converter={StaticResource objConverter},ConverterParameter=#null|0:Collapsed:Visible}"/> |
|
|
|
|
|
<StackPanel x:Name="sp_waybill" Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock Text="{Binding WaybillNo,Converter={StaticResource waybillConverter}}"/> |
|
|
|
|
|
<c:BButton x:Name="btn_waybillCopy" Style="{StaticResource LinkButton}" |
|
|
|
|
|
Content="复制" |
|
|
|
|
|
Command="{Binding DataContext.CopyOrderWaybillCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
|
|
|
CommandParameter="{Binding }" Margin="5,0,0,0"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
<c:BButton x:Name="btn_outStore" Content="出库" VerticalAlignment="Bottom" |
|
|
|
|
|
Foreground="{StaticResource Text.Color}" |
|
|
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
|
|
Background="White" |
|
|
|
|
|
Margin="0,0,1,0" |
|
|
|
|
|
Height="25" |
|
|
|
|
|
Visibility="Collapsed" |
|
|
|
|
|
Command="{Binding DataContext.OutStockCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
|
|
|
CommandParameter="{Binding }"/> |
|
|
|
|
|
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Margin="0,0,0,25" |
|
|
|
|
|
Visibility="{Binding Visibility,ElementName=btn_outStore}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="{Binding OrderState}" Grid.Column="6" |
|
|
|
|
|
HorizontalAlignment="Center" |
|
|
|
|
|
VerticalAlignment="Center"/> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical" Grid.Column="7" Margin="5,5,5,0"> |
|
|
|
|
|
<StackPanel x:Name="sp_buyerRemark"> |
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock Text="买家备注"/> |
|
|
|
|
|
<c:BButton Content="复制" Style="{StaticResource LinkButton}" Margin="5,0,0,0" |
|
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
|
|
|
CommandParameter="{Binding BuyerRemark}"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
<TextBlock Text="{Binding BuyerRemark}" TextWrapping="Wrap"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel x:Name="sp_venderRemark" Margin="0,5,0,0"> |
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
|
<TextBlock Text="商家备注"/> |
|
|
|
|
|
<c:BButton x:Name="btn_copyVenderRemark" Content="复制" Style="{StaticResource LinkButton}" Margin="5,0,0,0" |
|
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
|
|
|
CommandParameter="{Binding VenderRemark}"/> |
|
|
|
|
|
<c:BButton Content="修改" Style="{StaticResource LinkButton}" Margin="5,0,0,0" |
|
|
|
|
|
Command="{Binding DataContext.EditVenderRemarkCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
|
|
|
CommandParameter="{Binding }"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
|
<Path x:Name="path_flag" Style="{StaticResource path_flag}" Width="16" |
|
|
|
|
|
Fill="{Binding Flag}"/> |
|
|
|
|
|
<TextBlock TextWrapping="Wrap" Text="{Binding VenderRemark}"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
<DataTemplate.Triggers> |
|
|
|
|
|
<DataTrigger Binding="{Binding WaybillNo}" Value=""> |
|
|
|
|
|
<Setter TargetName="sp_waybill" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<DataTrigger Binding="{Binding WaybillNo}" Value="-10000"> |
|
|
|
|
|
<Setter TargetName="btn_waybillCopy" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<!--<DataTrigger Binding="{Binding StoreName}" Value=""> |
|
|
|
|
|
<Setter TargetName="txt_storeName" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger>--> |
|
|
|
|
|
<DataTrigger Binding="{Binding BuyerRemark}" Value=""> |
|
|
|
|
|
<Setter TargetName="sp_buyerRemark" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<DataTrigger Binding="{Binding VenderRemark}" Value=""> |
|
|
|
|
|
<Setter TargetName="btn_copyVenderRemark" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<DataTrigger Binding="{Binding Consignee.IsDecode}" Value="True"> |
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" TargetName="txt_consignee"/> |
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" TargetName="btn_decodeCommand"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<DataTrigger Binding="{Binding PreferentialAmount}" Value="0"> |
|
|
|
|
|
<Setter TargetName="sp_orderCoupon" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<DataTrigger Binding="{Binding OrderCost.PurchaseAmount}" Value="0"> |
|
|
|
|
|
<Setter TargetName="path_purchaseAmount_question" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<DataTrigger Binding="{Binding Flag}" Value="{x:Null}"> |
|
|
|
|
|
<Setter TargetName="path_flag" Property="Fill" Value="{x:Null}"/> |
|
|
|
|
|
<Setter TargetName="path_flag" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<DataTrigger Binding="{Binding OrderCost.SDCommissionAmount}" Value="0"> |
|
|
|
|
|
<Setter TargetName="txt_sdCommissionAmount" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<!--<DataTrigger Binding="{Binding StorageType}" Value="SD"> |
|
|
|
|
|
<Setter TargetName="sp_purchaseAmount" Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
</DataTrigger>--> |
|
|
|
|
|
<DataTrigger Binding="{Binding StorageType}" Value="代发"> |
|
|
|
|
|
<Setter TargetName="listbox_df" Property="Visibility" Value="Visible"/> |
|
|
|
|
|
</DataTrigger> |
|
|
|
|
|
<MultiDataTrigger> |
|
|
|
|
|
<MultiDataTrigger.Conditions> |
|
|
|
|
|
<Condition Binding="{Binding StorageType}" Value="代发"/> |
|
|
|
|
|
<Condition Binding="{Binding OrderState}" Value="待出库"/> |
|
|
|
|
|
</MultiDataTrigger.Conditions> |
|
|
|
|
|
<MultiDataTrigger.Setters> |
|
|
|
|
|
<Setter TargetName="btn_outStore" Property="Visibility" Value="Visible"/> |
|
|
|
|
|
</MultiDataTrigger.Setters> |
|
|
|
|
|
</MultiDataTrigger> |
|
|
|
|
|
</DataTemplate.Triggers> |
|
|
|
|
|
</DataTemplate> |
|
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
|
</ListBox> |
|
|
</Grid> |
|
|
</Grid> |
|
|
</UserControl> |
|
|
</UserControl> |
|
|