From 4b32c868b68eeccd0a0d24838601c5937a90bb59 Mon Sep 17 00:00:00 2001
From: shanj <18996038927@163.com>
Date: Sun, 4 Dec 2022 05:06:06 +0800
Subject: [PATCH] 1
---
.../BillCorrection/BillCorrectionViewModel.cs | 39 +++++++++++++------
1 file changed, 27 insertions(+), 12 deletions(-)
diff --git a/BBWY.Client/ViewModels/BillCorrection/BillCorrectionViewModel.cs b/BBWY.Client/ViewModels/BillCorrection/BillCorrectionViewModel.cs
index 4f67a08e..6ca1fdce 100644
--- a/BBWY.Client/ViewModels/BillCorrection/BillCorrectionViewModel.cs
+++ b/BBWY.Client/ViewModels/BillCorrection/BillCorrectionViewModel.cs
@@ -72,6 +72,12 @@ namespace BBWY.Client.ViewModels
/// 查询订单
///
public ICommand SearchBillCorrectionOrderCommand { get; set; }
+
+ ///
+ /// 矫正费用
+ ///
+ public ICommand CorrectCommand { get; set; }
+
public bool IsLoading { get => isLoading; set { Set(ref isLoading, value); } }
public IList OrderList { get; set; }
@@ -92,6 +98,7 @@ namespace BBWY.Client.ViewModels
ImportSaleFreightBillCommand = new RelayCommand(ImportSaleFreightBill);
SearchBillCorrectionOrderCommand = new RelayCommand(SearchBillCorrectionOrder);
+ CorrectCommand = new RelayCommand(Correct);
}
private void OnSearchShopKeyWordChanged(string key)
@@ -313,25 +320,33 @@ namespace BBWY.Client.ViewModels
var list = response.Data.Map>();
- App.Current.Dispatcher.BeginInvoke((Action)delegate
+ App.Current.Dispatcher.Invoke(() =>
{
foreach (var order in list)
{
- if (string.IsNullOrEmpty(order.WaybillNo))
- continue;
- var billModel = SaleFreightBillList.FirstOrDefault(b => b.BillNo == order.WaybillNo);
- if (billModel == null)
- continue;
-
- if (billModel.Amount != order.DeliveryExpressFreight)
- {
- order.NewDeliveryExpressFreight = billModel.Amount;
- order.ChangedContent = $"销售运费 {order.DeliveryExpressFreight} -> {order.NewDeliveryExpressFreight}";
- }
+ //if (string.IsNullOrEmpty(order.WaybillNo))
+ // continue;
+ //var billModel = SaleFreightBillList.FirstOrDefault(b => b.BillNo == order.WaybillNo);
+ //if (billModel == null)
+ // continue;
+
+ //if (billModel.Amount != order.DeliveryExpressFreight)
+ //{
+ // order.NewDeliveryExpressFreight = billModel.Amount;
+ // order.ChangedContent = $"销售运费 {order.DeliveryExpressFreight} -> {order.NewDeliveryExpressFreight}";
+ //}
OrderList.Add(order);
}
});
});
}
+
+ ///
+ /// 矫正费用
+ ///
+ private void Correct()
+ {
+
+ }
}
}