|
|
@ -236,16 +236,32 @@ namespace BBWY.Client.ViewModels |
|
|
|
} |
|
|
|
else if (storageType == StorageType.代发) |
|
|
|
{ |
|
|
|
var relationPurchaseOrder = new RelationPurchaseOrder(orderId, null, order.ItemList.Select(osku => new RelationPurchaseOrderSku() |
|
|
|
if (order.ItemList.Count > 1) |
|
|
|
{ |
|
|
|
Logo = osku.Logo, |
|
|
|
ProductId = osku.ProductId, |
|
|
|
SkuId = osku.Id, |
|
|
|
Quantity = osku.ItemTotal, |
|
|
|
Title = osku.Title |
|
|
|
}).ToList()); |
|
|
|
relationPurchaseOrder.Closed += RelationPurchaseOrder_Closed; |
|
|
|
relationPurchaseOrder.ShowDialog(); |
|
|
|
MessageBox.Show("多个Sku请拆单", "提示"); |
|
|
|
return; |
|
|
|
} |
|
|
|
var chooseDFType = new ChooseDFType(order.ItemList[0].Id); |
|
|
|
if (chooseDFType.ShowDialog() != true) |
|
|
|
return; |
|
|
|
|
|
|
|
if (chooseDFType.DFType == DFType.关联订单) |
|
|
|
{ |
|
|
|
var relationPurchaseOrder = new RelationPurchaseOrder(orderId, null, order.ItemList.Select(osku => new RelationPurchaseOrderSku() |
|
|
|
{ |
|
|
|
Logo = osku.Logo, |
|
|
|
ProductId = osku.ProductId, |
|
|
|
SkuId = osku.Id, |
|
|
|
Quantity = osku.ItemTotal, |
|
|
|
Title = osku.Title |
|
|
|
}).ToList()); |
|
|
|
relationPurchaseOrder.Closed += RelationPurchaseOrder_Closed; |
|
|
|
relationPurchaseOrder.ShowDialog(); |
|
|
|
} |
|
|
|
else if (chooseDFType.DFType == DFType.在线采购) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|