|
|
|
<UserControl x:Class="BBWY.Client.Views.PackTask.WareHouseListControl"
|
|
|
|
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: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.PackTask"
|
|
|
|
DataContext="{Binding WareHouseList,Source={StaticResource Locator}}"
|
|
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DesignHeight="450" d:DesignWidth="1500">
|
|
|
|
<UserControl.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<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"/>
|
|
|
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/>
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
|
|
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
<StackPanel Panel.ZIndex="100" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="590,15,0,0"
|
|
|
|
Visibility="{Binding SelectShop,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=部门:Visible:Collapsed}"
|
|
|
|
>
|
|
|
|
<c:BTextBox x:Name="tb" Width="150" Height="30" TextChanged="tb_TextChanged" Text="{Binding SearchDepartment,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="部门名称"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<ListBox MaxHeight="300" x:Name="tipBox" SelectionChanged="SelectionChangeCommand" Background="{StaticResource Border.Background}">
|
|
|
|
|
|
|
|
</ListBox>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Panel.ZIndex="100" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="590,15,0,0"
|
|
|
|
Visibility="{Binding SelectShop,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=店铺:Visible:Collapsed}"
|
|
|
|
>
|
|
|
|
<c:BTextBox x:Name="tbShop" Width="150" Height="30" TextChanged="tbShop_TextChanged" Text="{Binding SearchShopName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="店铺名称"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<ListBox MaxHeight="300" x:Name="tipBoxShop" SelectionChanged="tipBoxShop_SelectionChanged" Background="{StaticResource Border.Background}">
|
|
|
|
|
|
|
|
</ListBox>
|
|
|
|
</StackPanel>
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="54"/>
|
|
|
|
<RowDefinition Height="45"/>
|
|
|
|
<RowDefinition />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0" HorizontalAlignment="Stretch" Panel.ZIndex="999" Margin="0,5,0,0" >
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition />
|
|
|
|
<ColumnDefinition Width="auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Orientation="Horizontal" Height="30" >
|
|
|
|
<StackPanel.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>
|
|
|
|
</StackPanel.Resources>
|
|
|
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<ComboBox BorderThickness="0" Width="110" VerticalContentAlignment="Center" ItemsSource="{Binding SelectIdList}" HorizontalContentAlignment="Center" Text="{Binding SelectTaskId ,Mode=TwoWay}" />
|
|
|
|
<UniformGrid Width="150" Rows="1" Columns="1">
|
|
|
|
<c:BTextBox Width="150" BorderThickness="1 0 0 0" WaterRemark="任务ID" Text="{Binding SearchTaskId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
Visibility="{Binding SelectTaskId,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=任务ID:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
<c:BTextBox Width="150" BorderThickness="1 0 0 0" WaterRemark="拳探订单号" Text="{Binding SearchOrderSn,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
Visibility="{Binding SelectTaskId,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=拳探订单号:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</UniformGrid>
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<ComboBox BorderThickness="0" Width="80" VerticalContentAlignment="Center" ItemsSource="{Binding SelectSkuList}" HorizontalContentAlignment="Center" Text="{Binding SelectSku ,Mode=TwoWay}" />
|
|
|
|
|
|
|
|
<UniformGrid Width="150" Rows="1" Columns="1">
|
|
|
|
<c:BTextBox Width="150" WaterRemark="SKUID" Text="{Binding SearchSkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectSku,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=SKU:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
<c:BTextBox Width="150" WaterRemark="SPUID" Text="{Binding SearchSpuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectSku,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=SPU:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</UniformGrid>
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<ComboBox BorderThickness="0" Width="80" VerticalContentAlignment="Center" ItemsSource="{Binding SelectShopList}" HorizontalContentAlignment="Center" Text="{Binding SelectShop ,Mode=TwoWay}" />
|
|
|
|
|
|
|
|
<UniformGrid Width="150" Rows="1" Columns="1">
|
|
|
|
<c:BTextBox Width="150" WaterRemark="SKUID" Text="{Binding SearchSkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectSku,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=SKU:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
<!--<c:BTextBox Width="150" WaterRemark="SPUID" Text="{Binding SearchSpuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectSku,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=SPU:Visible:Collapsed}"
|
|
|
|
/>-->
|
|
|
|
|
|
|
|
</UniformGrid>
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
<!--<TextBlock Text="部门: " VerticalAlignment="Center" Margin="16,0,2,0"/>
|
|
|
|
<c:BTextBox Visibility="Hidden" Width="150" Height="30" ></c:BTextBox>
|
|
|
|
|
|
|
|
<TextBlock x:Name="textblock_shop" Text="店铺:" VerticalAlignment="Center" Margin="16,0,0,0"/>
|
|
|
|
<c:BTextBox Name="btbShopName" Width="150" Visibility="Hidden" Margin="5,0,0,0" />-->
|
|
|
|
|
|
|
|
|
|
|
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="20,0,0,0">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<ComboBox Width="125" BorderThickness="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ItemsSource="{Binding SelectExpressList}" Text="{Binding SelectExpress }"/>
|
|
|
|
<UniformGrid Width="150" Margin="0,0,0,0" Rows="1" Columns="1">
|
|
|
|
<c:BTextBox Width="150" Text="{Binding SearchWayBillNo,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="精准搜索"
|
|
|
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectExpress,Converter={StaticResource objConverter},ConverterParameter=物流单号:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
<c:BTextBox Width="150" Text="{Binding SearchExpressName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="模糊搜索"
|
|
|
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectExpress,Converter={StaticResource objConverter},ConverterParameter=物流公司名称:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</UniformGrid>
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
<c:BButton Content="搜索" Width="94" Height="30" VerticalAlignment="Stretch" Margin="10,0,0,0"
|
|
|
|
Command="{Binding SearchTaskCommand}"
|
|
|
|
Grid.RowSpan="2" Background="{StaticResource Button.Selected.Background}" BorderThickness="0" Foreground="White"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Border Height="1" Grid.Row="1" Margin="0 10 0 0" Background="{StaticResource Border.Brush}" VerticalAlignment="Top"/>
|
|
|
|
<Grid Grid.Row="1" Margin="0 10 0 0">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="300"/>
|
|
|
|
<ColumnDefinition Width="90"/>
|
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
<ColumnDefinition MinWidth="100"/>
|
|
|
|
<ColumnDefinition Width="150"/>
|
|
|
|
<ColumnDefinition MinWidth="140"/>
|
|
|
|
<ColumnDefinition Width="0"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
</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="SKU配件商品" 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}"/>
|
|
|
|
<TextBlock Text="打包员" Grid.Column="8" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
<TextBlock Text="操作" Grid.Column="9" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>-->
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="1"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="2"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="3"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="4"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="5"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="6"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="7"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="8"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="9"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="10"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="11"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="12"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/>
|
|
|
|
</Grid>
|
|
|
|
<!--ItemsSource="{Binding OrderList}"-->
|
|
|
|
<ListBox x:Name="listbox_order"
|
|
|
|
Grid.Row="2"
|
|
|
|
ItemsSource="{Binding PackTaskList}"
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
|
|
|
BorderBrush="{StaticResource Border.Brush}"
|
|
|
|
BorderThickness="1,1,1,0"
|
|
|
|
Foreground="{StaticResource Text.Color}">
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}"
|
|
|
|
MinHeight="100">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="30"/>
|
|
|
|
<RowDefinition MinHeight="90"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Background="#F2F2F2" >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="300"/>
|
|
|
|
<ColumnDefinition Width="90"/>
|
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
<ColumnDefinition MinWidth="100"/>
|
|
|
|
<ColumnDefinition Width="150"/>
|
|
|
|
<ColumnDefinition MinWidth="140"/>
|
|
|
|
<ColumnDefinition Width="0"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="11">
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="提交时间:" Margin="14,0,0,0" />
|
|
|
|
<TextBlock Text="{Binding EndTime,StringFormat=yyyy-MM-dd HH:mm}" VerticalAlignment="Center" Margin="5,0,0,0"/>
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="任务ID:" Margin="16,0,0,0" />
|
|
|
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
|
|
|
|
CommandParameter="{Binding TaskId}"
|
|
|
|
Margin=" 5,0,7,0"/>
|
|
|
|
<Label Width="90" Height="25" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" VerticalAlignment="Center" Content="{Binding TaskState}"
|
|
|
|
Foreground="White" Background="{Binding TaskState,Converter={StaticResource enumToColorConverter} , ConverterParameter={x:Type cmodel:TaskState} }" Margin="25,0,0,0"
|
|
|
|
Visibility="{Binding DataContext.TaskState,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}},Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="部门:" Margin="14,0,0,0" />
|
|
|
|
<c:BButton Content="{Binding DepartmentName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
|
|
|
|
CommandParameter="{Binding DepartmentName}"
|
|
|
|
Margin=" 5,0,0,0"/>
|
|
|
|
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="店铺:" Margin="14,0,0,0" />
|
|
|
|
<c:BButton Content="{Binding ShopName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
|
|
|
|
CommandParameter="{Binding ShopName}"
|
|
|
|
Margin=" 5,0,0,0"/>
|
|
|
|
<StackPanel Orientation="Horizontal" Visibility="{Binding OrderId, Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}">
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="对接人:" Margin="16,0,0,0" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="{Binding AcceptName}" Margin="5,0,0,0" />
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="9" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=未到货|部分到货|待验收:Visible:Collapsed}"
|
|
|
|
>
|
|
|
|
<!-- -->
|
|
|
|
<c:BButton Command="{Binding UpdateTaskCommand}" Style="{StaticResource LinkButton}" Content="修改" />
|
|
|
|
<!--<c:BButton Command="{Binding DataContext.DeletedTaskCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" CommandParameter="{Binding}"
|
|
|
|
Margin="5,0,0,0" Style="{StaticResource LinkButton}" Content="取消"/>-->
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="300"/>
|
|
|
|
<ColumnDefinition Width="90"/>
|
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
<ColumnDefinition MinWidth="100"/>
|
|
|
|
<ColumnDefinition Width="150"/>
|
|
|
|
<ColumnDefinition MinWidth="140"/>
|
|
|
|
<ColumnDefinition Width="0"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ListBox x:Name="listbox_orerSku" ItemsSource="{Binding ItemList}"
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" BorderThickness="0"
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" >
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_orerSku}">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="90"/>
|
|
|
|
<ColumnDefinition />
|
|
|
|
<!--<ColumnDefinition />-->
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<!--{Binding Logo}-->
|
|
|
|
<c:BAsyncImage UrlSource="{Binding Logo}"
|
|
|
|
Width="80" DecodePixelWidth="80"
|
|
|
|
VerticalAlignment="Top" Margin="11,9,0,10"
|
|
|
|
Cursor="Hand">
|
|
|
|
<b:Interaction.Triggers>
|
|
|
|
<b:EventTrigger EventName="PreviewMouseLeftButtonDown">
|
|
|
|
<b:InvokeCommandAction Command="{Binding DataContext.OpenSkuDetailCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}">
|
|
|
|
<b:InvokeCommandAction.CommandParameter>
|
|
|
|
<MultiBinding Converter="{StaticResource mptConverter}">
|
|
|
|
<Binding Path="SkuId"/>
|
|
|
|
</MultiBinding>
|
|
|
|
</b:InvokeCommandAction.CommandParameter>
|
|
|
|
</b:InvokeCommandAction>
|
|
|
|
</b:EventTrigger>
|
|
|
|
</b:Interaction.Triggers>
|
|
|
|
</c:BAsyncImage>
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="8,12,0,10">
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Text="SKU:"/>
|
|
|
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
|
|
|
|
CommandParameter="{Binding SkuId}"
|
|
|
|
Margin=" 5,0,0,11"/>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis">
|
|
|
|
<TextBlock.ToolTip>
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}">
|
|
|
|
<TextBlock Text="{Binding SkuName}"/>
|
|
|
|
</ToolTip>
|
|
|
|
</TextBlock.ToolTip>
|
|
|
|
<Run Text="SKU名称:"/>
|
|
|
|
<Run Text="{Binding SkuName}"/>
|
|
|
|
</TextBlock>
|
|
|
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextWrapping="Wrap" Margin="0,11">
|
|
|
|
<Run Text="品名:"/>
|
|
|
|
<Run Text="{Binding BrandName}"/>
|
|
|
|
</TextBlock>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
<!--<StackPanel Grid.Column="2" Orientation="Horizontal" Margin="0,12,0,5">
|
|
|
|
<TextBlock Foreground="{StaticResource Text.Gray}">
|
|
|
|
<Run Text="货号:" />
|
|
|
|
</TextBlock>
|
|
|
|
<c:BButton Content="{Binding GoodsNo}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Top"
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
|
|
|
|
CommandParameter="{Binding GoodsNo}"
|
|
|
|
Margin=" 5,0,0,0"/>
|
|
|
|
</StackPanel>-->
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/>
|
|
|
|
<Grid Grid.Column="1" >
|
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
<TextBlock x:Name="txt_storeName"
|
|
|
|
Text="{Binding SkuCount}"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Grid Grid.Column="2" >
|
|
|
|
<StackPanel VerticalAlignment="Center" >
|
|
|
|
|
|
|
|
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
|
|
|
|
<TextBlock Text="组合类型:"/>
|
|
|
|
<TextBlock Text="{Binding PackType}"/>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
|
|
|
|
<TextBlock Text="配件数量:"/>
|
|
|
|
<TextBlock Text="{Binding GoodsNumber}"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="3" >
|
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
<TextBlock
|
|
|
|
Text="{Binding SkuTitle}"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="4" >
|
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
|
|
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
|
|
|
|
<TextBlock Text="基础打包:"/>
|
|
|
|
<TextBlock Text="{Binding BasicPack}"/>
|
|
|
|
</StackPanel>
|
|
|
|
<Grid Margin="10,5" VerticalAlignment="Center" HorizontalAlignment="Left" >
|
|
|
|
<TextBlock TextWrapping="Wrap">
|
|
|
|
<Run Text="增量耗材:"/>
|
|
|
|
<Run Text="{Binding Increment1}"/>
|
|
|
|
</TextBlock>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="5">
|
|
|
|
<ListBox x:Name="listbox_expressorder" ItemsSource="{Binding ExpressOrderList}"
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" BorderThickness="0"
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" VerticalAlignment="Stretch"
|
|
|
|
Visibility="{Binding ExpressOrderList,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}"
|
|
|
|
>
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_expressorder,Converter={StaticResource widthConverter},ConverterParameter=-0}"
|
|
|
|
|
|
|
|
>
|
|
|
|
<!--Height="{Binding ActualHeight,ElementName=listbox_expressorder,Converter={StaticResource widthConverter},ConverterParameter=-0}"-->
|
|
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Grid.Row="0" Margin="10 11 0 0">
|
|
|
|
<TextBlock Text="物流状态:" Foreground="Gray"/>
|
|
|
|
<TextBlock Text="{Binding ExpressState}"/>
|
|
|
|
<TextBlock Foreground="Gray" Text="{Binding TargetExpressName,StringFormat=\{0\}:}" Margin="10 0 2 0"/>
|
|
|
|
<c:BButton Style="{StaticResource LinkButton}" Content="{Binding WaybillNo}"
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
|
|
|
|
CommandParameter="{Binding WaybillNo}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
<TextBlock Text="{Binding ExpressChangedTime,StringFormat=yyyy-MM-dd HH:mm:ss}" Grid.Row="1" Margin="10 12 0 0"/>
|
|
|
|
|
|
|
|
<TextBlock Foreground="Gray" TextTrimming="CharacterEllipsis" Margin="10 11 10 11" Grid.Row="2">
|
|
|
|
<TextBlock.ToolTip>
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}">
|
|
|
|
<TextBlock Text="{Binding ExpressContent}"/>
|
|
|
|
</ToolTip>
|
|
|
|
</TextBlock.ToolTip>
|
|
|
|
<Run Text="{Binding ExpressContent}"/>
|
|
|
|
</TextBlock>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Border Background="{StaticResource Border.Brush}" Height="1" Grid.Row="0" VerticalAlignment="Top"/>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<!--<Grid Grid.Column="6" >
|
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
<TextBlock
|
|
|
|
Text="{Binding MarkMessage}"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>-->
|
|
|
|
<Grid Grid.Column="7">
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
|
|
Visibility="{Binding IsShowFees,Converter={StaticResource objConverter},ConverterParameter=true:Visible:Collapsed}"
|
|
|
|
>
|
|
|
|
<TextBlock Text="收费:"/>
|
|
|
|
<TextBlock
|
|
|
|
Text="{Binding FeesItemResponse.AllFees, StringFormat={}{0:F2}}"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
/>
|
|
|
|
<Path x:Name="path_fees_name"
|
|
|
|
Style="{StaticResource path_question}"
|
|
|
|
Width="14" Margin="0,0,0,0" Fill="{StaticResource Text.Pink}"
|
|
|
|
ToolTipService.InitialShowDelay="0" ToolTipService.ShowDuration="20000"
|
|
|
|
|
|
|
|
>
|
|
|
|
<!--Visibility="{Binding FeesItemResponse,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible }"-->
|
|
|
|
|
|
|
|
<Path.ToolTip>
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}">
|
|
|
|
<Grid>
|
|
|
|
<local:FeesExcelControl FeesItem="{Binding FeesItemResponse,Mode=TwoWay,NotifyOnSourceUpdated=True,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
Visibility="{Binding PackProcessType,Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
<local:FeesExcelV2Control FeesItem="{Binding FeesItemResponse,Mode=TwoWay,NotifyOnSourceUpdated=True,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
Visibility="{Binding PackProcessType,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</ToolTip>
|
|
|
|
</Path.ToolTip>
|
|
|
|
</Path>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="8" >
|
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
<TextBlock
|
|
|
|
Text="{Binding PackUser}"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="9" >
|
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
<c:BButton HorizontalAlignment="Center" Style="{StaticResource LinkButton}" Height="20" Margin="0 5 0 5 " VerticalAlignment="Center" Grid.Row="1" Content="验收"
|
|
|
|
Command="{Binding QualityTaskCommand}"
|
|
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待验收:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待打包:Visible:Collapsed}"
|
|
|
|
>
|
|
|
|
<c:BButton Grid.Column="11" HorizontalAlignment="Stretch" Style="{StaticResource LinkButton}" Margin="0 5 0 5 " VerticalAlignment="Center" Content="完成"
|
|
|
|
CommandParameter="{Binding}"
|
|
|
|
Command="{Binding DataContext.CompletedPackTaskCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type UserControl}}}"
|
|
|
|
Visibility="{Binding FeesItemResponse,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible }"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<c:BButton HorizontalAlignment="Center" Style="{StaticResource LinkButton}" Height="20" Margin="0 5 0 5 " VerticalAlignment="Center" Grid.Row="1" Content="商家自取"
|
|
|
|
CommandParameter="{Binding TaskId}"
|
|
|
|
Command="{Binding DataContext.StoreGetBySelfCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"
|
|
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待排单|待打包:Visible:Collapsed}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Margin="0 5 0 5 "
|
|
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=未到货|部分到货:Visible:Collapsed}"
|
|
|
|
>
|
|
|
|
|
|
|
|
<c:BButton Grid.Column="11" HorizontalAlignment="Stretch" Style="{StaticResource LinkButton}" VerticalAlignment="Center" Content="确认收货"
|
|
|
|
|
|
|
|
CommandParameter="{Binding}"
|
|
|
|
Command="{Binding DataContext.UpdateTaskStateCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"
|
|
|
|
>
|
|
|
|
|
|
|
|
</c:BButton>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<Border BorderBrush="{StaticResource Border.Brush}" Margin="10 2 10 2"
|
|
|
|
Visibility="{Binding ShowMarkMessage,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}"
|
|
|
|
CornerRadius="0" Grid.Row="1" MaxHeight="66" Grid.ColumnSpan="100">
|
|
|
|
<TextBox Text="{Binding ShowMarkMessage}" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0 5 0 5" ScrollViewer.VerticalScrollBarVisibility="Visible"
|
|
|
|
AcceptsReturn="True" TextWrapping="Wrap" IsReadOnly="True" BorderThickness="0"/>
|
|
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" VerticalAlignment="Top" Height="1" Background="{StaticResource Border.Brush}" Grid.ColumnSpan="100"/>
|
|
|
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>-->
|
|
|
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="1"/>-->
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="2" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="3" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="4" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="5" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="6" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="7" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="8" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="9" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="10" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="11" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="12" Margin="-1 0 0 0"/>
|
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</UserControl>
|