Просмотр исходного кода

ERP MOBILE
修复cart 更改数量和价格,切换到order history 列表没有重新刷新的bug

Ray Zhang 7 лет назад
Родитель
Сommit
42ba3a4a2b
1 измененных файлов с 17 добавлено и 1 удалено
  1. 17 1
      RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

+ 17 - 1
RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

@@ -1363,7 +1363,7 @@
         
         //        navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
         
-        DebugLog(@"EditModelPriceViewController present.........");
+        DebugLog(@"general notes editor present.........");
         
         //   self.btop = false;
         //  <#code#>
@@ -1834,6 +1834,13 @@
         }
         //  [self.content_data setObject:item_json forKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]];
         [weakSelf refresh_total];
+        
+#ifdef RA_NOTIFICATION
+        [ActiveViewController Notify:@"OrderListViewController" Message:RA_NOTIFICATION_RELOAD_DATA];
+#else
+        AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+        [((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
+#endif
     };
  //   cell.delegate=self;
  //   cell.from=indexPath;
@@ -2409,7 +2416,16 @@
                         tableView.editing = false;
 //                        [tableView reloadRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationMiddle];
 //                        [self refresh_total];
+                        
+                        
                         [weakself reload_data];
+                        
+#ifdef RA_NOTIFICATION
+                        [ActiveViewController Notify:@"OrderListViewController" Message:RA_NOTIFICATION_RELOAD_DATA];
+#else
+                        AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+                        [((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
+#endif
                     }
                     else
                     {