Browse Source

批量下单接口对接齐库仓库类型参数

AddValidOverTime
shanji 2 years ago
parent
commit
ca57163bc5
  1. 12
      BBWY.Client/Views/BatchPurchase/PackSkuSplitCountAndStoreWindow.xaml
  2. 18
      BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs
  3. 2
      BBWY.Server.Model/Dto/Request/QiKu/PackSkuConfigRequest.cs
  4. 2
      BBWY.Server.Model/Dto/Request/Stock/StoreRequest.cs

12
BBWY.Client/Views/BatchPurchase/PackSkuSplitCountAndStoreWindow.xaml

@ -42,11 +42,11 @@
<c:BButton Content="京仓" Width="70" <c:BButton Content="京仓" Width="70"
Background="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=2:#8080FF:#F2F2F2}" Background="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=2:#8080FF:#F2F2F2}"
Foreground="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=2:White:#4A4A4A}" Foreground="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=2:White:#4A4A4A}"
Command="{Binding SetStoreIndexCommand,ConverterParameter={StaticResource store_JingCang}}"/> Command="{Binding SetStoreIndexCommand}" CommandParameter="{StaticResource store_JingCang}"/>
<c:BButton Content="云仓" Width="70" <c:BButton Content="云仓" Width="70"
Background="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=3:#8080FF:#F2F2F2}" Background="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=3:#8080FF:#F2F2F2}"
Foreground="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=3:White:#4A4A4A}" Foreground="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=3:White:#4A4A4A}"
Command="{Binding SetStoreIndexCommand,ConverterParameter={StaticResource store_YunCang}}"/> Command="{Binding SetStoreIndexCommand}" CommandParameter="{StaticResource store_YunCang}"/>
<c:BButton Content="聚水潭" Width="70" <c:BButton Content="聚水潭" Width="70"
Background="{Binding IsJST,Converter={StaticResource objConverter},ConverterParameter=true:#8080FF:#F2F2F2}" Background="{Binding IsJST,Converter={StaticResource objConverter},ConverterParameter=true:#8080FF:#F2F2F2}"
Foreground="{Binding IsJST,Converter={StaticResource objConverter},ConverterParameter=true:White:#4A4A4A}" Foreground="{Binding IsJST,Converter={StaticResource objConverter},ConverterParameter=true:White:#4A4A4A}"
@ -54,7 +54,7 @@
<c:BButton Content="商家仓" Width="70" <c:BButton Content="商家仓" Width="70"
Background="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=1:#8080FF:#F2F2F2}" Background="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=1:#8080FF:#F2F2F2}"
Foreground="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=1:White:#4A4A4A}" Foreground="{Binding StoreTypeIndex,Converter={StaticResource objConverter},ConverterParameter=1:White:#4A4A4A}"
Command="{Binding SetStoreIndexCommand,ConverterParameter={StaticResource store_ShangJiaCang}}"/> Command="{Binding SetStoreIndexCommand}" CommandParameter="{StaticResource store_ShangJiaCang}"/>
</StackPanel> </StackPanel>
<TextBlock Text="件数:" HorizontalAlignment="Right" VerticalAlignment="Center" <TextBlock Text="件数:" HorizontalAlignment="Right" VerticalAlignment="Center"
@ -63,11 +63,13 @@
Margin="5,0,10,0"/> Margin="5,0,10,0"/>
<TextBlock Text="落仓去向:" HorizontalAlignment="Right" VerticalAlignment="Center" <TextBlock Text="落仓去向:" HorizontalAlignment="Right" VerticalAlignment="Center"
Grid.Row="4"/> Grid.Row="4"
Visibility="{Binding IsJST,ConverterParameter=true:Collapsed:Visible,Converter={StaticResource objConverter}}"/>
<ComboBox x:Name="cbx_stroeList" Grid.Row="4" Grid.Column="1" Height="30" <ComboBox x:Name="cbx_stroeList" Grid.Row="4" Grid.Column="1" Height="30"
Margin="5,0,10,0" Margin="5,0,10,0"
DisplayMemberPath="Name" DisplayMemberPath="Name"
VerticalContentAlignment="Center"/> VerticalContentAlignment="Center"
Visibility="{Binding IsJST,ConverterParameter=true:Collapsed:Visible,Converter={StaticResource objConverter}}"/>
<c:BButton x:Name="btn_save" Content="保存" Width="80" HorizontalAlignment="Right" Grid.Row="5" <c:BButton x:Name="btn_save" Content="保存" Width="80" HorizontalAlignment="Right" Grid.Row="5"
Margin="0,0,5,0" Click="btn_save_Click" Margin="0,0,5,0" Click="btn_save_Click"

18
BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

@ -329,9 +329,10 @@ namespace BBWY.Server.Business
markMessage = string.Empty, markMessage = string.Empty,
wareHourses = skuPackConfig.PackSkuSplitConfigList.Select(x => new wareHourses = skuPackConfig.PackSkuSplitConfigList.Select(x => new
{ {
wareId = x.Store.Id, wareId = x.IsJST ? "qiyuejushuitan" : x.Store.Id,
wareName = x.Store.Name, wareName = x.IsJST ? "齐越聚水潭" : x.Store.Name,
count = x.PackCount count = x.PackCount,
wareType = x.IsJST ? 3 : GetQiKuWareType(x.Store.Type)
}) })
}); });
} }
@ -430,6 +431,17 @@ namespace BBWY.Server.Business
}; };
} }
private int GetQiKuWareType(Enums.StockType stockType)
{
if (stockType == Enums.StockType.)
return 0;
if (stockType == Enums.StockType.)
return 1;
if (stockType == Enums.StockType.)
return 2;
return 0;
}
public PurchaseOrderV2ListResponse GetPurchaseOrderList(SearchPurchaseOrderV2Request request) public PurchaseOrderV2ListResponse GetPurchaseOrderList(SearchPurchaseOrderV2Request request)
{ {
if (request.EndDate != null) if (request.EndDate != null)

2
BBWY.Server.Model/Dto/Request/QiKu/PackSkuConfigRequest.cs

@ -30,5 +30,7 @@ namespace BBWY.Server.Model.Dto
public int PackCount { get; set; } public int PackCount { get; set; }
public StoreRequest Store { get; set; } public StoreRequest Store { get; set; }
public bool IsJST { get; set; }
} }
} }

2
BBWY.Server.Model/Dto/Request/Stock/StoreRequest.cs

@ -5,5 +5,7 @@
public string Id { get; set; } public string Id { get; set; }
public string Name { get; set; } public string Name { get; set; }
public Enums.StockType Type { get; set; }
} }
} }

Loading…
Cancel
Save