优化不同订单状态下操作功能
This commit is contained in:
1 parent
c25ec3a89a
commit
1b634434c2
6 files changed
+418
-436
No files matched your search
@@ -989,7 +989,19 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
var waybillId = orderItem.ItemTransitOrderAfterSale.downstream_waybill;
|
||||
|
||||
var chkRst = AddReturnPddShopPackageInfocheck(buyer, orderSn, afterSalesId, waybillId);
|
||||
var result = AddReturnPddShopPackageInfo(buyer, orderSn, afterSalesId, waybillId);
|
||||
var type = 4;
|
||||
if (chkRst.Contains("\"interactType\":0"))
|
||||
type = 2;
|
||||
var result = AddReturnPddShopPackageInfo(buyer, orderSn, afterSalesId, waybillId, "韵达快递", "121", type.ToString());
|
||||
if (!result.Contains("\"result\":\"ok\""))
|
||||
{
|
||||
type = type == 4 ? 2 : 4;
|
||||
result = AddReturnPddShopPackageInfo(buyer, orderSn, afterSalesId, waybillId, "韵达快递", "121", type.ToString());
|
||||
}
|
||||
if (!result.Contains("\"result\":\"ok\""))
|
||||
{
|
||||
result = AddReturnPddShopPackageInfo(buyer, orderSn, afterSalesId, waybillId, "韵达快递", "121", "5");
|
||||
}
|
||||
|
||||
if (result.Contains("\"result\":\"ok\""))
|
||||
{
|
||||
@@ -1070,6 +1082,10 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
type = type == 4 ? 2 : 4;
|
||||
result = AddReturnPddShopPackageInfo(buyer, orderSn, afterSalesId, waybillId, "韵达快递", "121", type.ToString());
|
||||
}
|
||||
if (!result.Contains("\"result\":\"ok\""))
|
||||
{
|
||||
result = AddReturnPddShopPackageInfo(buyer, orderSn, afterSalesId, waybillId, "韵达快递", "121", "5");
|
||||
}
|
||||
|
||||
if (result.Contains("\"result\":\"ok\""))
|
||||
{
|
||||
@@ -1151,6 +1167,10 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
type = type == 4 ? 2 : 4;
|
||||
result = AddReturnPddShopPackageInfo(buyer, orderSn, afterSalesId, waybillId, "韵达快递", "121", type.ToString());
|
||||
}
|
||||
if (!result.Contains("\"result\":\"ok\""))
|
||||
{
|
||||
result = AddReturnPddShopPackageInfo(buyer, orderSn, afterSalesId, waybillId, "韵达快递", "121", "5");
|
||||
}
|
||||
|
||||
if (result.Contains("\"result\":\"ok\""))
|
||||
{
|
||||
@@ -1512,13 +1532,17 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
}
|
||||
if (filterHeadStr.StartsWith("待采购"))
|
||||
{
|
||||
if (order.order_id == "3739161507780018688")
|
||||
{
|
||||
|
||||
}
|
||||
if (!order.IsWaitBuy)
|
||||
return true;
|
||||
if (chkMapSku.IsChecked == true && order.orderItems.All(oi => oi.BuyMap == null && (oi.BuyMapSkus == null || oi.BuyMapSkus.Count == 0)))
|
||||
if (chkMapSku.IsChecked == true && order.orderItems.Any(oi => oi.BuyMap == null))
|
||||
return true;
|
||||
if (chkMapProd.IsChecked == true && order.orderItems.All(oi => oi.BuyMapSkus == null || oi.BuyMapSkus.Count == 0))
|
||||
if (chkMapProd.IsChecked == true && order.orderItems.All(oi => oi.BuyMapSkus == null || oi.BuyMapSkus.Count == 0 || oi.BuyMap != null))
|
||||
return true;
|
||||
if (chkNoMapProd.IsChecked == true && order.orderItems.All(oi => oi.BuyMap != null))
|
||||
if (chkNoMapProd.IsChecked == true && (order.orderItems.All(oi => oi.BuyMap != null) || order.orderItems.All(oi => oi.BuyMapSkus != null && oi.BuyMapSkus.Count > 0)))
|
||||
return true;
|
||||
}
|
||||
if (filterHeadStr.StartsWith("待发货"))
|
||||
|
||||
Reference in new issue
Block a user