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.
341 lines
20 KiB
341 lines
20 KiB
<c:BWindow x:Class="BBWY.Client.Views.PackTask.CreatePackTask"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:BBWY.Client.Views.PackTask"
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters"
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
mc:Ignorable="d"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
CloseButtonVisibility="Visible"
|
|
CloseButtonColor="{StaticResource WindowButtonColor}"
|
|
DataContext="{Binding CreateTaskView,Source={StaticResource Locator}}"
|
|
MinButtonVisibility="Collapsed"
|
|
MaxButtonVisibility="Collapsed"
|
|
RightButtonGroupMargin="0,5,5,0"
|
|
Title="CreatePackTask" Height="350" Width="1500">
|
|
<!-- DataContext="{Binding CreateTaskView,Source={StaticResource Locator}}" -->
|
|
<Window.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>
|
|
|
|
</Window.Resources>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="150"/>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="40"/>
|
|
</Grid.RowDefinitions>
|
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/>
|
|
<Grid Background="{StaticResource Border.Background}">
|
|
<TextBlock Text="发布任务" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
|
</Grid>
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="350"/>
|
|
<ColumnDefinition Width="350"/>
|
|
<ColumnDefinition Width="350"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="2*"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal">
|
|
<c:BTextBox Width="200" Margin="10,0,5,0" Height="35" Text="{Binding SearchSkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="请输入SkuId"/>
|
|
<Button Content="查询" Width="118" Height="35" VerticalAlignment="Stretch" Command="{Binding SearchSkuCommand}"
|
|
Background="{StaticResource Button.Background}" BorderThickness="0" Foreground="White"/>
|
|
</StackPanel>
|
|
<Grid Grid.Row="1" Margin="10,0,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<c:BAsyncImage UrlSource="{Binding Logo}"
|
|
Width="80" DecodePixelWidth="80"
|
|
VerticalAlignment="Top" Margin="0,5,0,0"
|
|
Cursor="Hand">
|
|
<b:Interaction.Triggers>
|
|
<b:EventTrigger EventName="PreviewMouseLeftButtonDown">
|
|
<b:InvokeCommandAction >
|
|
<b:InvokeCommandAction.CommandParameter>
|
|
<MultiBinding Converter="{StaticResource mptConverter}">
|
|
<!--<Binding Path="DataContext.Id" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}"/>
|
|
<Binding Path="Id"/>-->
|
|
</MultiBinding>
|
|
</b:InvokeCommandAction.CommandParameter>
|
|
</b:InvokeCommandAction>
|
|
</b:EventTrigger>
|
|
</b:Interaction.Triggers>
|
|
</c:BAsyncImage>
|
|
|
|
<!--<Image Height="80" Width="80" Source="{Binding Logo}" Grid.Column="0"/>-->
|
|
<Grid Grid.Column="2" >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock VerticalAlignment="Center" Margin="10,0">
|
|
<Run Text="SKU名称: "/>
|
|
<Run Text="{Binding SkuName}"/>
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="1" VerticalAlignment="Center" Margin="10,0">
|
|
<Run Text="货号: "/>
|
|
<Run Text="{Binding ProductNo}"/>
|
|
</TextBlock>
|
|
<Grid Grid.Row="2" VerticalAlignment="Center" Margin="10,0">
|
|
<TextBlock Text="品名:" VerticalAlignment="Center"/>
|
|
<c:BTextBox Width="200" Margin="10,0,0,0" Text="{Binding BrandName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="请输入品名"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
<Grid Margin="10" Grid.Column="1" Background="{StaticResource Border.Background}">
|
|
<Button Content="设置条形码" Width="100" Height="30" VerticalAlignment="Center" Command="{Binding SetBarCodeCommand}"
|
|
Visibility="{Binding IsSetBarCode, Converter={StaticResource objConverter}, ConverterParameter=true:Visible:Collapsed }"
|
|
Background="{StaticResource Button.Background}" BorderThickness="0" Foreground="White"/>
|
|
<StackPanel Visibility="{Binding IsSetBarCode, Converter={StaticResource objConverter}, ConverterParameter=false:Visible:Collapsed }" Orientation="Horizontal" HorizontalAlignment="Center" >
|
|
<Button Content="预览" Width="100" Height="30" VerticalAlignment="Center" Command="{Binding LookBarCommand}"
|
|
Background="#2879ff" BorderThickness="0" Foreground="White"/>
|
|
<Button Content="修改" Width="100" Height="30" VerticalAlignment="Center" Command="{Binding SetBarCodeCommand}"
|
|
Background="{StaticResource Button.Background}" BorderThickness="0" Foreground="White"/>
|
|
|
|
</StackPanel >
|
|
</Grid>
|
|
<Grid Margin="10" Grid.Column="2" Background="{StaticResource Border.Background}">
|
|
<Button Content="设置合格证" Width="100" Height="30" VerticalAlignment="Center"
|
|
Command="{Binding SetCertificateCommand}"
|
|
Visibility="{Binding IsSetCertificate, Converter={StaticResource objConverter}, ConverterParameter=true:Visible:Collapsed }"
|
|
Background="{StaticResource Button.Background}" BorderThickness="0" Foreground="White"/>
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
|
|
Visibility="{Binding IsSetCertificate, Converter={StaticResource objConverter}, ConverterParameter=false:Visible:Collapsed }">
|
|
<Button Content="预览" Width="100" Height="30" VerticalAlignment="Center" Command="{Binding LookCerCommand}"
|
|
Background="#2879ff" BorderThickness="0" Foreground="White"/>
|
|
<Button Content="修改" Width="100" Height="30" VerticalAlignment="Center" Command="{Binding SetCertificateCommand}"
|
|
Background="{StaticResource Button.Background}" BorderThickness="0" Foreground="White"/>
|
|
|
|
</StackPanel >
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<Grid Margin="10" Grid.Row="2">
|
|
|
|
<Grid >
|
|
<Grid.Resources>
|
|
|
|
|
|
<Style TargetType="TextBlock">
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="FontFamily" Value="微软雅黑"/>
|
|
</Style>
|
|
<Style TargetType="Border" >
|
|
<Setter Property="BorderBrush" Value="{StaticResource Border.Brush}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid.Resources>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="60"/>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="60"/>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition MinWidth="100"/>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40" />
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" Grid.Column="0" />
|
|
<Border Grid.Row="0" Grid.Column="1" />
|
|
<Border Grid.Row="0" Grid.Column="2" />
|
|
<Border Grid.Row="0" Grid.Column="3"/>
|
|
<Border Grid.Row="0" Grid.Column="4" />
|
|
<Border Grid.Row="0" Grid.Column="5" />
|
|
<Border Grid.Row="0" Grid.Column="6" />
|
|
<Border Grid.Row="0" Grid.Column="7" />
|
|
<Border Grid.Row="0" Grid.Column="8" />
|
|
<Border Grid.Row="0" Grid.Column="9"/>
|
|
<Border Grid.Row="0" Grid.Column="10" />
|
|
<Border Grid.Row="0" Grid.Column="11" />
|
|
<Border Grid.Row="0" Grid.Column="12" />
|
|
<Border Grid.Row="0" Grid.Column="13" />
|
|
|
|
<Border Grid.Row="1" Grid.Column="0" />
|
|
<Border Grid.Row="1" Grid.Column="1" />
|
|
<Border Grid.Row="1" Grid.Column="2" />
|
|
<Border Grid.Row="1" Grid.Column="3"/>
|
|
<Border Grid.Row="1" Grid.Column="4" />
|
|
<Border Grid.Row="1" Grid.Column="5" />
|
|
<Border Grid.Row="1" Grid.Column="6" />
|
|
<Border Grid.Row="1" Grid.Column="7" />
|
|
<Border Grid.Row="1" Grid.Column="8" />
|
|
<Border Grid.Row="1" Grid.Column="9"/>
|
|
<Border Grid.Row="1" Grid.Column="10" />
|
|
<Border Grid.Row="1" Grid.Column="11" />
|
|
<Border Grid.Row="1" Grid.Column="12" />
|
|
<Border Grid.Row="1" Grid.Column="13" />
|
|
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="SKU数量"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Text="到货情况"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="2" Text="加急"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="3" Text="落仓"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="4" Text="组合类型"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="5" Text="配件数量"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="6" Text="SKU配件商品"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="7" Text="基础包装"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="8" Text="增量耗材"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="9" Text="增量耗材"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="10" Text="条码标签"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="11" Text="合格证"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="12" Text="合格证位置"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="13" Text="注意事项/对接备注"/>
|
|
|
|
|
|
<c:BTextBox BorderBrush="Transparent" Grid.Row="1" Grid.Column="0" Height="30" Text="{Binding SkuCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
|
|
<c:BTextBox BorderBrush="Transparent" Grid.Row="1" Grid.Column="5" Height="30" Margin="5" Text="{Binding GoodsNumber,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
<c:BTextBox BorderBrush="Transparent" Grid.Row="1" Grid.Column="6" Height="30" Margin="5" Text="{Binding SkuTitle,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
<c:BTextBox BorderBrush="Transparent" Grid.Row="1" Grid.Column="13" Margin="5" Height="30" Text="{Binding MarkMessage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<Grid Grid.Row="1" Grid.Column="1" >
|
|
|
|
<ComboBox VerticalContentAlignment="Center" Margin="5" Text="{Binding Availability}" >
|
|
<ComboBoxItem Content="已到货" IsSelected="True" />
|
|
<ComboBoxItem Content="部分到货"/>
|
|
<ComboBoxItem Content="未到货"/>
|
|
</ComboBox>
|
|
|
|
</Grid>
|
|
<Grid Grid.Row="1" Grid.Column="2" >
|
|
<ComboBox VerticalContentAlignment="Center" Text="{Binding IsWorry}" Margin="5" >
|
|
<ComboBoxItem Content="否" IsSelected="True" />
|
|
<ComboBoxItem Content="是"/>
|
|
</ComboBox>
|
|
</Grid>
|
|
<Grid Grid.Row="1" Grid.Column="3" >
|
|
<ComboBox VerticalContentAlignment="Center" Text="{Binding PositionType}" Margin="5" >
|
|
<ComboBoxItem Content="本地仓" IsSelected="True" />
|
|
<ComboBoxItem Content="齐越仓"/>
|
|
<ComboBoxItem Content="京东仓"/>
|
|
</ComboBox>
|
|
</Grid>
|
|
<Grid Grid.Row="1" Grid.Column="4" >
|
|
<ComboBox VerticalContentAlignment="Center" Margin="5" Text="{Binding PackType}" >
|
|
<ComboBoxItem Content="单件" IsSelected="True" />
|
|
<ComboBoxItem Content="多件"/>
|
|
</ComboBox>
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1" Grid.Column="7" >
|
|
<ComboBox BorderBrush="Transparent" VerticalContentAlignment="Center" Margin="5" Text="{Binding BasicPack}" >
|
|
<ComboBoxItem Content="快递袋" IsSelected="True" />
|
|
<ComboBoxItem Content="纸箱"/>
|
|
<ComboBoxItem Content="麻袋"/>
|
|
</ComboBox>
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1" Grid.Column="8">
|
|
<c:BTextBox WaterRemark="增量耗材关键字" HorizontalAlignment="Stretch" BorderBrush="Transparent"
|
|
Text="{Binding SearchIncrementKeyWord,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
</Grid>
|
|
<Grid Grid.Row="1" Grid.Column="9">
|
|
<Grid.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>
|
|
</Grid.Resources>
|
|
<hc:CheckComboBox IsTextSearchEnabled="True" ItemsSource="{Binding IncreateList}"
|
|
ShowClearButton="True"
|
|
MinWidth="90"
|
|
Height="25"
|
|
Margin="5,0,5,0">
|
|
<hc:CheckComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal" Margin="5,2.5">
|
|
<CheckBox Content="{Binding IncreateName}" 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>
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1" Grid.Column="10" >
|
|
<ComboBox VerticalContentAlignment="Center" Margin="5" Text="{Binding IsNeedBarCode}">
|
|
<ComboBoxItem Content="需要" />
|
|
<ComboBoxItem Content="不需要" IsSelected="True"/>
|
|
</ComboBox>
|
|
</Grid>
|
|
<Grid Grid.Row="1" Grid.Column="11" >
|
|
<ComboBox VerticalContentAlignment="Center" Margin="5" Text="{Binding IsNeedCertificateModel}">
|
|
<ComboBoxItem Content="需要" />
|
|
<ComboBoxItem Content="不需要" IsSelected="True"/>
|
|
</ComboBox>
|
|
</Grid>
|
|
<Grid Grid.Row="1" Grid.Column="12" >
|
|
<ComboBox VerticalContentAlignment="Center" Margin="5" Text="{Binding CertificatePosition}">
|
|
<ComboBoxItem Content="外部包装" />
|
|
<ComboBoxItem Content="产品包装"/>
|
|
<ComboBoxItem Content="无" IsSelected="True"/>
|
|
</ComboBox>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
<Grid Grid.Row="3">
|
|
|
|
<Button Content="发布" Width="100" HorizontalAlignment="Right" VerticalAlignment="Stretch" Margin="0,2,5,2"
|
|
Command="{Binding CreateTaskCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
|
|
Background="{StaticResource Button.Background}" BorderThickness="0" Foreground="White"/>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</c:BWindow>
|
|
|