|
|
@ -197,9 +197,9 @@ namespace BBWY.Client.ViewModels |
|
|
|
/// 加载采购方案
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="productList"></param>
|
|
|
|
private void LoadPurchaseScheme(IList<ProductSku> skuList, Platform? platform = Platform.阿里巴巴) |
|
|
|
private void LoadPurchaseScheme(IList<ProductSku> skuList, Platform? purchasePlatform = Platform.阿里巴巴) |
|
|
|
{ |
|
|
|
var response = purchaseService.GetPurchaseSchemeList(skuList.Select(s => s.Id).ToList(), string.Empty, globalContext.User.Shop.ShopId, platform: platform); |
|
|
|
var response = purchaseService.GetPurchaseSchemeList(skuList.Select(s => s.Id).ToList(), string.Empty, globalContext.User.Shop.ShopId, purchasePlatform: purchasePlatform); |
|
|
|
if (!response.Success) |
|
|
|
{ |
|
|
|
App.Current.Dispatcher.BeginInvoke((Action)delegate { MessageBox.Show(response.Msg, "获取采购方案"); }); |
|
|
@ -331,7 +331,14 @@ namespace BBWY.Client.ViewModels |
|
|
|
var productId = paramList[0].ToString(); |
|
|
|
var platform = (Platform)paramList[1]; |
|
|
|
|
|
|
|
|
|
|
|
var product = ProductList.FirstOrDefault(p => p.Id == productId); |
|
|
|
IsLoading = true; |
|
|
|
Task.Factory.StartNew(() => LoadPurchaseScheme(product.SkuList, platform)) |
|
|
|
.ContinueWith(t => |
|
|
|
{ |
|
|
|
App.Current.Dispatcher.Invoke(() => ExtractPurchaser(productId)); |
|
|
|
IsLoading = false; |
|
|
|
}); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|