Explorar o código

1.修改NPD Place Order屏蔽Model Availability。

Pen Li %!s(int64=8) %!d(string=hai) anos
pai
achega
719e1a6bf4

+ 1 - 1
RedAnt ERP Mobile/common/CommonEditor/EnumSelectViewController.m

@@ -37,7 +37,7 @@
 {
     [super viewDidLoad];
     
-    self.automaticallyAdjustsScrollViewInsets = NO;
+//    self.automaticallyAdjustsScrollViewInsets = NO;
 //    self.max_select = 0;
     
     self.navi_item.title = self.title;

+ 19 - 1
RedAnt ERP Mobile/common/Functions/order/RAOrderPreviewController.m

@@ -15,6 +15,7 @@
 #import "AddressEditorViewController.h"
 #import "CreditCardEditorViewController.h"
 #import "JKTimerManager.h"
+#import "CommonEditorCellModel.h"
 
 #define SUBMIT_CONFIRM 123
 #define KEEP_TAIL 456
@@ -3283,7 +3284,7 @@
         
         if ([weakSelf.class_name isEqualToString:@"CreateOrderViewController"]) {
             // CreateOrderViewController
-            
+              
             
             [urgencyDic setValue:appDelegate.order_code forKey:@"order_code"];
             MainViewController *mainVC = (MainViewController *)appDelegate.main_vc;
@@ -3305,5 +3306,22 @@
     [[JKTimerManager sharedTimerManager] cancelTimerWithName:self.urgency_timer_name];
 }
 
+#pragma mark - Override
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
+    
+    UITableViewCell *cell = [super tableView:tableView cellForRowAtIndexPath:indexPath];
+    
+    NSDictionary* item_json =((NSMutableArray*)self.content_data_control[indexPath.section])[indexPath.row];
+    NSString* control = [item_json valueForKey:@"control"];
+    
+    if([control isEqualToString:@"model"]) {
+        ((CommonEditorCellModel *)cell).avalibilityLabel.hidden = YES;
+    }
+    
+    return cell;
+    
+}
+
 
 @end