diff --git a/BBWY.Client/Views/BatchPurchase/PackSkuSplitCountAndStoreWindow.xaml b/BBWY.Client/Views/BatchPurchase/PackSkuSplitCountAndStoreWindow.xaml
index e9bc7a4a..f8db9edd 100644
--- a/BBWY.Client/Views/BatchPurchase/PackSkuSplitCountAndStoreWindow.xaml
+++ b/BBWY.Client/Views/BatchPurchase/PackSkuSplitCountAndStoreWindow.xaml
@@ -42,11 +42,11 @@
+ Command="{Binding SetStoreIndexCommand}" CommandParameter="{StaticResource store_JingCang}"/>
+ Command="{Binding SetStoreIndexCommand}" CommandParameter="{StaticResource store_YunCang}"/>
+ Command="{Binding SetStoreIndexCommand}" CommandParameter="{StaticResource store_ShangJiaCang}"/>
+ Grid.Row="4"
+ Visibility="{Binding IsJST,ConverterParameter=true:Collapsed:Visible,Converter={StaticResource objConverter}}"/>
+ VerticalContentAlignment="Center"
+ Visibility="{Binding IsJST,ConverterParameter=true:Collapsed:Visible,Converter={StaticResource objConverter}}"/>
new
{
- wareId = x.Store.Id,
- wareName = x.Store.Name,
- count = x.PackCount
+ wareId = x.IsJST ? "qiyuejushuitan" : x.Store.Id,
+ wareName = x.IsJST ? "齐越聚水潭" : x.Store.Name,
+ 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)
{
if (request.EndDate != null)
@@ -516,8 +528,8 @@ namespace BBWY.Server.Business
var order = fsql.Select().Where(p => p.Id == request.OrderId).ToOne();
fsql.Update(order)
- .Set(a => a.OrderState, payOrderResponse.PurchaseOrderState)
- .ExecuteAffrows();
+ .Set(a => a.OrderState, payOrderResponse.PurchaseOrderState)
+ .ExecuteAffrows();
}
return new PayPurchaseOrderResponse()
@@ -552,7 +564,7 @@ namespace BBWY.Server.Business
{
nLogManager.GetLogger($"取消打包任务-{request.OrderId}").Error(ex, JsonConvert.SerializeObject(request));
}
-
+
}
@@ -570,8 +582,8 @@ namespace BBWY.Server.Business
var order = fsql.Select().Where(p => p.Id == request.OrderId).ToOne();
fsql.Update(order)
- .Set(a => a.OrderState, request.PurchaseOrderState)
- .ExecuteAffrows();
+ .Set(a => a.OrderState, request.PurchaseOrderState)
+ .ExecuteAffrows();
return new UpdatePackStateResponse();
}
@@ -579,8 +591,8 @@ namespace BBWY.Server.Business
{
var order = fsql.Select().Where(p => p.Id == request.OrderId).ToOne();
fsql.Update(order)
- .Set(a => a.PackState, request.PackState)
- .ExecuteAffrows();
+ .Set(a => a.PackState, request.PackState)
+ .ExecuteAffrows();
return new UpdatePackStateResponse();
}
}
diff --git a/BBWY.Server.Model/Dto/Request/QiKu/PackSkuConfigRequest.cs b/BBWY.Server.Model/Dto/Request/QiKu/PackSkuConfigRequest.cs
index 6c3e9256..5b10c605 100644
--- a/BBWY.Server.Model/Dto/Request/QiKu/PackSkuConfigRequest.cs
+++ b/BBWY.Server.Model/Dto/Request/QiKu/PackSkuConfigRequest.cs
@@ -30,5 +30,7 @@ namespace BBWY.Server.Model.Dto
public int PackCount { get; set; }
public StoreRequest Store { get; set; }
+
+ public bool IsJST { get; set; }
}
}
diff --git a/BBWY.Server.Model/Dto/Request/Stock/StoreRequest.cs b/BBWY.Server.Model/Dto/Request/Stock/StoreRequest.cs
index 91b053b4..62589032 100644
--- a/BBWY.Server.Model/Dto/Request/Stock/StoreRequest.cs
+++ b/BBWY.Server.Model/Dto/Request/Stock/StoreRequest.cs
@@ -5,5 +5,7 @@
public string Id { get; set; }
public string Name { get; set; }
+
+ public Enums.StockType Type { get; set; }
}
}