|
|
@ -435,6 +435,7 @@ namespace BBWY.Client.ViewModels |
|
|
|
MessageBox.Show("缺少运费账单"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
foreach (var order in OrderList) |
|
|
|
{ |
|
|
|
//矫正销售运费
|
|
|
@ -454,7 +455,8 @@ namespace BBWY.Client.ViewModels |
|
|
|
//矫正出仓操作
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var correctionCount = OrderList.Count(o => !string.IsNullOrEmpty(o.ChangedContent)); |
|
|
|
MessageBox.Show($"矫正完成,本次矫正{correctionCount}笔订单", "矫正费用"); |
|
|
|
} |
|
|
|
|
|
|
|
private void Clear() |
|
|
@ -489,6 +491,26 @@ namespace BBWY.Client.ViewModels |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
var billCorrectionOrderList = saveOrderList.Select(o => new BillCorrectionRequest() |
|
|
|
{ |
|
|
|
OrderId = o.OrderId, |
|
|
|
NewDeliveryExpressFreight = o.NewDeliveryExpressFreight |
|
|
|
}).ToList(); |
|
|
|
IsLoading = true; |
|
|
|
Task.Factory.StartNew(() => billCorrectionService.CorrectOrder(billCorrectionOrderList)) |
|
|
|
.ContinueWith(t => |
|
|
|
{ |
|
|
|
IsLoading = false; |
|
|
|
var response = t.Result; |
|
|
|
if (!response.Success) |
|
|
|
{ |
|
|
|
App.Current.Dispatcher.Invoke(() => MessageBox.Show(response.Msg, "矫正费用 ")); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
App.Current.Dispatcher.Invoke(() => MessageBox.Show("矫正账单成功", "矫正费用")); |
|
|
|
this.Clear(); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|