|
@ -500,32 +500,45 @@ namespace BBWY.Client.ViewModels |
|
|
AfterSaleOrderUnhandleCount = response.Data.AfterSaleOrderUnhandleCount; |
|
|
AfterSaleOrderUnhandleCount = response.Data.AfterSaleOrderUnhandleCount; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//private void DecodeConsignee(Order order)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// var plaintextMobile = string.Empty;
|
|
|
|
|
|
// var grab = new GrabJDMibole(order.Id);
|
|
|
|
|
|
// if (grab.ShowDialog() == true)
|
|
|
|
|
|
// plaintextMobile = grab.Tag.ToString();
|
|
|
|
|
|
// if (string.IsNullOrEmpty(plaintextMobile))
|
|
|
|
|
|
// {
|
|
|
|
|
|
// MessageBox.Show("未获取到手机号", "提示");
|
|
|
|
|
|
// return;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// IsLoading = true;
|
|
|
|
|
|
// Task.Factory.StartNew(() => orderService.DecodeConsignee(order.Id, plaintextMobile)).ContinueWith(t =>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// var response = t.Result;
|
|
|
|
|
|
// IsLoading = false;
|
|
|
|
|
|
// if (!response.Success)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// App.Current.Dispatcher.Invoke(() => MessageBox.Show(response.Msg, "解密失败"));
|
|
|
|
|
|
// return;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// order.Consignee.ContactName = response.Data.ContactName;
|
|
|
|
|
|
// order.Consignee.Address = response.Data.Address;
|
|
|
|
|
|
// order.Consignee.Mobile = response.Data.Mobile;
|
|
|
|
|
|
// order.Consignee.IsDecode = true;
|
|
|
|
|
|
// });
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
private void DecodeConsignee(Order order) |
|
|
private void DecodeConsignee(Order order) |
|
|
{ |
|
|
{ |
|
|
var plaintextMobile = string.Empty; |
|
|
var buyerAccount = string.Empty; |
|
|
var grab = new GrabJDMibole(order.Id); |
|
|
var grab = new GrabJDMibole(order.Id); |
|
|
if (grab.ShowDialog() == true) |
|
|
if (grab.ShowDialog() == true) |
|
|
plaintextMobile = grab.Tag.ToString(); |
|
|
buyerAccount = grab.Tag.ToString(); |
|
|
if (string.IsNullOrEmpty(plaintextMobile)) |
|
|
if (string.IsNullOrEmpty(buyerAccount)) |
|
|
{ |
|
|
{ |
|
|
MessageBox.Show("未获取到手机号", "提示"); |
|
|
MessageBox.Show("未获取到手机号", "提示"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
IsLoading = true; |
|
|
|
|
|
Task.Factory.StartNew(() => orderService.DecodeConsignee(order.Id, plaintextMobile)).ContinueWith(t => |
|
|
|
|
|
{ |
|
|
|
|
|
var response = t.Result; |
|
|
|
|
|
IsLoading = false; |
|
|
|
|
|
if (!response.Success) |
|
|
|
|
|
{ |
|
|
|
|
|
App.Current.Dispatcher.Invoke(() => MessageBox.Show(response.Msg, "解密失败")); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
order.Consignee.ContactName = response.Data.ContactName; |
|
|
|
|
|
order.Consignee.Address = response.Data.Address; |
|
|
|
|
|
order.Consignee.Mobile = response.Data.Mobile; |
|
|
|
|
|
order.Consignee.IsDecode = true; |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void ChooseStorageType(object param) |
|
|
private void ChooseStorageType(object param) |
|
|