huangyp 5 роки тому
батько
коміт
abc73aeb6c
25 змінених файлів з 569 додано та 294 видалено
  1. 1 1
      shiku_im/Podfile
  2. 17 21
      shiku_im/Podfile.lock
  3. 5 7
      shiku_im/shiku_im.xcodeproj/project.pbxproj
  4. 8 8
      shiku_im/shiku_im/AppDelegate.mm
  5. 2 1
      shiku_im/shiku_im/Register&Login/loginVC.m
  6. 6 3
      shiku_im/shiku_im/controller/DocumentDetailVC.m
  7. 3 1
      shiku_im/shiku_im/controller/DocumentListVC.m
  8. 2 1
      shiku_im/shiku_im/controller/QiangShangjiVC.m
  9. 1 0
      shiku_im/shiku_im/controller/myOA/CustomeApproveIdeaView.h
  10. 10 5
      shiku_im/shiku_im/controller/myOA/CustomeApproveIdeaView.m
  11. 19 22
      shiku_im/shiku_im/controller/myOA/JLHONGDIANDetailVC.m
  12. 8 6
      shiku_im/shiku_im/controller/myOA/JOOutWorkPlanVC.m
  13. 1 1
      shiku_im/shiku_im/controller/myOA/UINavigationController+safe.m
  14. 12 0
      shiku_im/shiku_im/controller/myOA/ZQDayPickerViewController.m
  15. 91 39
      shiku_im/shiku_im/controller/审批流详情/LYYApprovalDetailVC.m
  16. 2 1
      shiku_im/shiku_im/controller/预约小秘书/共享预约/ShareListVC.m
  17. 164 164
      shiku_im/shiku_im/一元捐/项目列表/选择支付界面/ZXPayView.m
  18. 2 1
      shiku_im/shiku_im/文件夹1/CRM3.0/商机管理/Controllers/NicheSearchVC.m
  19. 2 1
      shiku_im/shiku_im/文件夹1/CRM3.0/客户管理/Controllers/UASClientDocuSearchVC.m
  20. 2 1
      shiku_im/shiku_im/文件夹1/CRM3.0/联系人管理/viewcontrller/UASCRMAddressListVC.m
  21. 1 1
      shiku_im/shiku_im/文件夹1/DataListVC.m
  22. 2 2
      shiku_im/shiku_im/文件夹1/ReportStatisticsVC.m
  23. 202 5
      shiku_im/shiku_im/文件夹1/多明细通用表单/Controllers/MoreGridDetailVC.m
  24. 1 1
      shiku_im/shiku_im/文件夹1/设备管理/viewcontellers/搜索/LYYDMDataSearchVC.m
  25. 5 1
      shiku_im/shiku_im/文件夹3/MainView/UserInfo/UASUserInfo.m

+ 1 - 1
shiku_im/Podfile

@@ -17,7 +17,7 @@ target 'shiku_im' do
   pod 'ReactiveObjC'
   pod 'Masonry'
   pod 'IQKeyboardManager'
-  pod 'AliPay'
+  
   pod 'pop'
   pod 'TZImagePickerController'
   pod 'EGOCache'

+ 17 - 21
shiku_im/Podfile.lock

@@ -14,15 +14,14 @@ PODS:
   - AFNetworking/Serialization (3.2.1)
   - AFNetworking/UIKit (3.2.1):
     - AFNetworking/NSURLSession
-  - AliPay (2.1.2)
-  - AMapFoundation (1.5.7)
-  - AMapSearch (6.9.0):
+  - AMapFoundation (1.6.0)
+  - AMapSearch (7.1.0):
     - AMapFoundation (~> 1.4)
   - Base64 (1.1.2)
   - boost-for-react-native (1.63.0)
-  - Bugtags (3.1.3):
-    - Bugtags/Core (= 3.1.3)
-  - Bugtags/Core (3.1.3)
+  - Bugtags (3.2.1):
+    - Bugtags/Core (= 3.2.1)
+  - Bugtags/Core (3.2.1)
   - CodePush (5.6.1):
     - Base64 (~> 1.1)
     - JWT (~> 3.0.0-beta.7)
@@ -39,12 +38,12 @@ PODS:
     - glog
   - glog (0.3.5)
   - HMSegmentedControl (1.5.5)
-  - IQKeyboardManager (6.5.0)
-  - JWT (3.0.0-beta.11):
+  - IQKeyboardManager (6.5.4)
+  - JWT (3.0.0-beta.12):
     - Base64 (~> 1.1.2)
   - Masonry (1.1.0)
   - MJExtension (3.0.10)
-  - MJRefresh (3.2.0)
+  - MJRefresh (3.2.3)
   - pop (1.0.12)
   - React (0.59.9):
     - React/Core (= 0.59.9)
@@ -114,13 +113,12 @@ PODS:
   - SDWebImage/Core (4.4.6)
   - SSZipArchive (2.2.2)
   - SVProgressHUD (2.2.5)
-  - TZImagePickerController (3.2.4)
+  - TZImagePickerController (3.2.7)
   - WechatOpenSDK (1.8.6)
   - yoga (0.59.9.React)
 
 DEPENDENCIES:
   - AFNetworking
-  - AliPay
   - AMapSearch
   - Bugtags
   - CodePush (from `./UU_RN/node_modules/react-native-code-push`)
@@ -160,7 +158,6 @@ DEPENDENCIES:
 SPEC REPOS:
   https://github.com/cocoapods/specs.git:
     - AFNetworking
-    - AliPay
     - AMapFoundation
     - AMapSearch
     - Base64
@@ -202,12 +199,11 @@ EXTERNAL SOURCES:
 
 SPEC CHECKSUMS:
   AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057
-  AliPay: 2bd35a4e486d2a8c035043023cd846e886bb21d1
-  AMapFoundation: 216d58448c80356434ac4332250a8fdb2f5c4d1e
-  AMapSearch: af02822537e55b85a4752e9df5c19e4b9da82031
+  AMapFoundation: bc2f6e077b9279942734ba55f9624222fcf42848
+  AMapSearch: 6bd6d361c5eb00110e0bffa4acf88b7bb9f7e059
   Base64: cecfb41a004124895a7bcee567a89bae5a89d49b
   boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
-  Bugtags: 3ea74dc1a2a0a24989c2243ab2e075bf60b48d56
+  Bugtags: 015bc05c97c0ac5168a6256eaaf18eb41d7394bc
   CodePush: b56e29c56dba8121898f601ca48a9a48b2ff5efb
   DoubleConversion: bb338842f62ab1d708ceb63ec3d999f0f3d98ecd
   EGOCache: 191fd213da6804d487b49b1a91772ba904f3e324
@@ -215,11 +211,11 @@ SPEC CHECKSUMS:
   Folly: de497beb10f102453a1afa9edbf8cf8a251890de
   glog: aefd1eb5dda2ab95ba0938556f34b98e2da3a60d
   HMSegmentedControl: f514c6dad47aa3065e0ed2e8046b73efc71221b9
-  IQKeyboardManager: 700e5155d6a292383b54e8678aec769e14fc78fc
-  JWT: 05028b9624591bba9681bb57df2c5f95fa258bad
+  IQKeyboardManager: 72b359cd7e777e3a984cedbe05f8da45320cbb63
+  JWT: 9b5c05abbcc1a0e69c3c91e1655b3387fc7e581d
   Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
   MJExtension: d86aacb740c87519d20e3cca55b6fa4be6cc7548
-  MJRefresh: ed450d6eb9d3346a2cb033ab7eb6de090aeef437
+  MJRefresh: 2b1214a2dc8f4df4c5dcb028ea2ad4e245425fb7
   pop: d582054913807fd11fd50bfe6a539d91c7e1a55a
   React: a86b92f00edbe1873a63e4a212c29b7a7ad5224f
   react-native-orientation: d4a97266b06ec8d45d74e626656a730ebbebbb6f
@@ -228,10 +224,10 @@ SPEC CHECKSUMS:
   SDWebImage: 3f3f0c02f09798048c47a5ed0a13f17b063572d8
   SSZipArchive: fa16b8cc4cdeceb698e5e5d9f67e9558532fbf23
   SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
-  TZImagePickerController: d259369c5c2cc96299e53da868ae5be1b24353cd
+  TZImagePickerController: 821b81f83594a736e831a018f2a2ce31822ddf0b
   WechatOpenSDK: 368ae03b72ee3ea1328c4f11326fbb5d2721d118
   yoga: 03ff42a6f223fb88deeaed60249020d80c3091ee
 
-PODFILE CHECKSUM: f00721d7766f2faf58b2705be26d722d08151105
+PODFILE CHECKSUM: cfc6c315d32b7e7d6662676c5a4f685038400ea5
 
 COCOAPODS: 1.6.0

+ 5 - 7
shiku_im/shiku_im.xcodeproj/project.pbxproj

@@ -18999,16 +18999,14 @@
 			);
 			inputPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-shiku_im/Pods-shiku_im-resources.sh",
-				"${PODS_ROOT}/AliPay/AlipaySDK.bundle",
 				"${PODS_ROOT}/Bugtags/Bugtags.bundle",
-				"${PODS_ROOT}/IQKeyboardManager/IQKeyboardManager/Resources/IQKeyboardManager.bundle",
+				"${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManager/IQKeyboardManager.bundle",
 				"${PODS_ROOT}/MJRefresh/MJRefresh/MJRefresh.bundle",
 				"${PODS_ROOT}/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle",
 				"${PODS_ROOT}/TZImagePickerController/TZImagePickerController/TZImagePickerController/TZImagePickerController.bundle",
 			);
 			name = "[CP] Copy Pods Resources";
 			outputPaths = (
-				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AlipaySDK.bundle",
 				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Bugtags.bundle",
 				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/IQKeyboardManager.bundle",
 				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MJRefresh.bundle",
@@ -20458,7 +20456,7 @@
 				CODEPUSH_KEY = if4T49oStVOr08rU6SJaPJQmFK3O4ksvOXqog;
 				CODEPUSH_URL = "https://uu-update.ubtob.com";
 				CODE_SIGN_ENTITLEMENTS = shiku_im/shiku_im.entitlements;
-				CODE_SIGN_IDENTITY = "iPhone Developer";
+				CODE_SIGN_IDENTITY = "iPhone Distribution";
 				"CODE_SIGN_IDENTITY[sdk=*]" = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Manual;
@@ -20576,7 +20574,7 @@
 					"$(inherited)",
 					"\"$PODS_CONFIGURATION_BUILD_DIR/IQKeyboardManager\"",
 				);
-				MARKETING_VERSION = 6.4.9;
+				MARKETING_VERSION = 6.5.7;
 				ONLY_ACTIVE_ARCH = YES;
 				OTHER_LDFLAGS = (
 					"-framework",
@@ -20619,7 +20617,7 @@
 				CODEPUSH_KEY = rKIg25bUKa6egfOwWhBgjvXOJjka4ksvOXqog;
 				CODEPUSH_URL = "https://uu-update.ubtob.com";
 				CODE_SIGN_ENTITLEMENTS = shiku_im/shiku_im.entitlements;
-				CODE_SIGN_IDENTITY = "iPhone Developer";
+				CODE_SIGN_IDENTITY = "iPhone Distribution";
 				"CODE_SIGN_IDENTITY[sdk=*]" = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Manual;
@@ -20700,7 +20698,7 @@
 					"$(PROJECT_DIR)/shiku_im/文件夹1/pay",
 					"$(PROJECT_DIR)/shiku_im/文件夹1/pay(支付宝)",
 				);
-				MARKETING_VERSION = 6.4.9;
+				MARKETING_VERSION = 6.5.7;
 				ONLY_ACTIVE_ARCH = NO;
 				OTHER_LDFLAGS = (
 					"-framework",

+ 8 - 8
shiku_im/shiku_im/AppDelegate.mm

@@ -35,7 +35,7 @@
 #import <CoreLocation/CoreLocation.h>
 #import <AVFoundation/AVFoundation.h>
 #import "iflyMSC/IFlyMSC.h"
-#import <AlipaySDK/AlipaySDK.h>
+//#import <AlipaySDK/AlipaySDK.h>
 #import "UASUserInfo.h"
 //自动内外勤
 #import <AMapLocationKit/AMapLocationKit.h>
@@ -8127,13 +8127,13 @@
     if(!url){
         return NO;
     }
-    if ([url.host isEqualToString:@"safepay"]) {
-        // 跳转支付宝钱包进行支付,处理支付结果
-        [[AlipaySDK defaultService] processOrderWithPaymentResult:url standbyCallback:^(NSDictionary *resultDic) {
-            [[NSNotificationCenter defaultCenter] postNotificationName:@"ALIPAY_SDK_BACK" object:resultDic];
-            DLog(@"result = %@",resultDic);
-        }];
-    }
+//    if ([url.host isEqualToString:@"safepay"]) {
+//        // 跳转支付宝钱包进行支付,处理支付结果
+//        [[AlipaySDK defaultService] processOrderWithPaymentResult:url standbyCallback:^(NSDictionary *resultDic) {
+//            [[NSNotificationCenter defaultCenter] postNotificationName:@"ALIPAY_SDK_BACK" object:resultDic];
+//            DLog(@"result = %@",resultDic);
+//        }];
+//    }
     
     
     return YES;

+ 2 - 1
shiku_im/shiku_im/Register&Login/loginVC.m

@@ -411,7 +411,8 @@
     _user.password  = _pwd.text;
     [_wait start:Localized(@"UU_login_loading")];
     [((AppDelegate*)[[UIApplication sharedApplication] delegate]).jxServer login:_user toView:self];
-       
+//       [self loginUas];
+//    [((AppDelegate*)[[UIApplication sharedApplication] delegate]) showMainUI];
 }
 
 //判断是否含有中文

+ 6 - 3
shiku_im/shiku_im/controller/DocumentDetailVC.m

@@ -141,9 +141,12 @@
     [btn addSubview:image];
     [btn addTarget:self action:@selector(backAction11) forControlEvents:UIControlEventTouchUpInside];
     
-    UIBarButtonItem *bbi2 = [[UIBarButtonItem alloc]initWithCustomView:btn];
-    
-    self.navigationItem.rightBarButtonItems = @[bbi2];
+    if ([self.danjuStatus isEqualToString:@"已审核"]) {
+        UIBarButtonItem *bbi2 = [[UIBarButtonItem alloc]initWithCustomView:btn];
+        self.navigationItem.rightBarButtonItems = @[bbi2];
+    }else{
+        
+    }
     
 }
 - (void)backAction11{

+ 3 - 1
shiku_im/shiku_im/controller/DocumentListVC.m

@@ -84,7 +84,9 @@ static NSString *cellID = @"cellID";
     _searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 44)];
     _searchBar.placeholder = Localized(@"UU_custom_search");
     _searchBar.delegate = self;
-    _searchBar.searchTextField.backgroundColor = BGKJ_COLOR;
+    UITextField *searchField = iOS13 ? _searchBar.searchTextField : [_searchBar valueForKey:@"_searchField"];
+    searchField.backgroundColor = BGKJ_COLOR;
+    
     _searchBar.backgroundImage = [UIImageView createImageWithColor:BGB_COLOR];
     //添加 searchBar 到 headerView
     UIView *tableHeaderView = [[UIView alloc] init];

+ 2 - 1
shiku_im/shiku_im/controller/QiangShangjiVC.m

@@ -87,7 +87,8 @@ static NSString *cellID = @"cellID";
     _searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 44)];
     _searchBar.placeholder = Localized(@"UU_custom_search");
     _searchBar.delegate = self;
-    _searchBar.searchTextField.backgroundColor = BGKJ_COLOR;
+    UITextField *searchField = iOS13 ? _searchBar.searchTextField : [_searchBar valueForKey:@"_searchField"];
+    searchField.backgroundColor = BGKJ_COLOR;
     _searchBar.backgroundImage = [UIImageView createImageWithColor:BGB_COLOR];
     //    _searchBar.showsCancelButton = YES;
     //添加 searchBar 到 headerView

+ 1 - 0
shiku_im/shiku_im/controller/myOA/CustomeApproveIdeaView.h

@@ -11,6 +11,7 @@
 @interface CustomeApproveIdeaView : UIView
 @property (strong , nonatomic) UIButton *SkipThisStepBtn;
 @property (strong , nonatomic) UIButton *comfirmBtn;
+@property (nonatomic,strong) NSString *plaStr;
 @property (copy , nonatomic) void (^block)(NSString *ApproveText);
 @property(nonatomic,strong)JOTextView * textView;
 @end

+ 10 - 5
shiku_im/shiku_im/controller/myOA/CustomeApproveIdeaView.m

@@ -42,7 +42,7 @@
     [self addSubview:bgview];
     
     _textView  = [[JOTextView alloc] initWithFrame:CGRectMake(10, 10, bgview.frame.size.width-20, 110)];
-    _textView.placeholder = @"请输入审批意见...";
+     _textView.placeholder = @"请输入...";
     _textView.font =  FONT_SIZE(13);
     _textView.textColor = [UIColor grayColor];
     _textView.backgroundColor = [UIColor whiteColor];
@@ -65,8 +65,7 @@
 
     [_comfirmBtn addTarget:self action:@selector(comfirmAction) forControlEvents:UIControlEventTouchUpInside];
 
-    [bgview addSubview:_comfirmBtn
-     ];
+    [bgview addSubview:_comfirmBtn];
     
     _SkipThisStepBtn = [UIButton buttonWithType:UIButtonTypeCustom];
     _SkipThisStepBtn.font =  FONT_SIZE(13);
@@ -76,7 +75,7 @@
     
     [bgview addSubview:_SkipThisStepBtn];
     
-    [_SkipThisStepBtn setTitle:@"跳过此步" forState:UIControlStateNormal];
+    [_SkipThisStepBtn setTitle:@"取消" forState:UIControlStateNormal];
     [_SkipThisStepBtn setTitleColor:Color(59, 174, 255, 1.0) forState:UIControlStateNormal];
     lineView1 = [[UIView alloc] initWithFrame:CGRectMake(bgview.frame.size.width/2 -0.35,130, 0.7f, 35)];
     lineView1.backgroundColor = Color(235, 233, 233, 1.0);
@@ -90,10 +89,16 @@
     self.block(_textView.text);
     [self removeFromSuperview];
 }
+
 - (void)skipAction
 {
-    self.block(@"");
     [self removeFromSuperview];
 }
 
+-(void)setPlaStr:(NSString *)plaStr
+{
+    _plaStr = plaStr;
+    _textView.placeholder = plaStr;
+}
+
 @end

+ 19 - 22
shiku_im/shiku_im/controller/myOA/JLHONGDIANDetailVC.m

@@ -170,12 +170,9 @@
     NSString * emcode = [[NSUserDefaults standardUserDefaults] stringForKey:@"erpaccount"];
     NSString * master =g_master;
 
-           
-            
-            
-            //3,查询数据
-            [_dataArray addObjectsFromArray:[self JOSelectTableForMsgTable11:master AndUUID:emcode]];
-           
+    //3,查询数据
+    [_dataArray addObjectsFromArray:[self JOSelectTableForMsgTable11:master AndUUID:emcode]];
+    
     for (int i=0; i<_dataArray.count; i++)
     {
         JLMsgModel * model11=_dataArray[i];
@@ -186,22 +183,22 @@
     }
     [_dataArray removeAllObjects];
     [_dataArray addObjectsFromArray:[self JOSelectTableForMsgTable11:master AndUUID:emcode]];
-            [self calculateShowMany];
-            
-            [self showNoReadingGuide];
-            
-            if (_dataArray.count==0)
-            {
-                _noData = [[UIImageView alloc]init];
-                _noData.image = [UIImage imageNamed:@"crm_all_noData"];
-                _noData.hidden = NO;
-                [self.view addSubview:_noData];
-                [_noData mas_makeConstraints:^(MASConstraintMaker *make) {
-                    make.width.mas_equalTo(100);
-                    make.height.mas_equalTo(126);
-                    make.center.equalTo(self.view);
-                }];
-            }
+    [self calculateShowMany];
+    
+    [self showNoReadingGuide];
+    
+    if (_dataArray.count==0)
+    {
+        _noData = [[UIImageView alloc]init];
+        _noData.image = [UIImage imageNamed:@"crm_all_noData"];
+        _noData.hidden = NO;
+        [self.view addSubview:_noData];
+        [_noData mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.width.mas_equalTo(100);
+            make.height.mas_equalTo(126);
+            make.center.equalTo(self.view);
+        }];
+    }
 
             
     

+ 8 - 6
shiku_im/shiku_im/controller/myOA/JOOutWorkPlanVC.m

@@ -3011,13 +3011,15 @@
     //点击选择时间
     else if (indexPath.row==8)
     {
-    _dayPickerViewController = [[ZQDayPickerViewController alloc] initWithNibName:NSStringFromClass([ZQDayPickerViewController class]) bundle:nil];
-    _dayPickerViewController.selectedColor = [UIColor blackColor];
-    _dayPickerViewController.hintTitle = @"请选择";
-    
-    _dayPickerViewController.delegate = self;
+        _dayPickerViewController = [[ZQDayPickerViewController alloc] initWithNibName:NSStringFromClass([ZQDayPickerViewController class]) bundle:nil];
+        _dayPickerViewController.selectedColor = [UIColor blackColor];
+        _dayPickerViewController.hintTitle = @"请选择";
+        _dayPickerViewController.delegate = self;
+        
+        JONavigationController * navi=[[JONavigationController alloc]initWithRootViewController:_dayPickerViewController];
+        
         
-    [self presentViewController:_dayPickerViewController animated:YES completion:nil];
+        [self presentViewController:navi animated:YES completion:nil];
     
     }
     

+ 1 - 1
shiku_im/shiku_im/controller/myOA/UINavigationController+safe.m

@@ -59,7 +59,7 @@ static char const *const ObjectTagKey = "objectTagKey";
     UIView *barBackgroundView = [[self.navigationBar subviews] objectAtIndex:0];
     UIImageView *backgroundImageView = [[barBackgroundView subviews] objectAtIndex:0];
     if (self.navigationBar.isTranslucent && iOS11) {
-        if (backgroundImageView != nil && backgroundImageView.image != nil) {
+        if (backgroundImageView != nil) {
             barBackgroundView.alpha = alpha;
         } else {
             UIView *backgroundEffectView = [[barBackgroundView subviews] objectAtIndex:1];

+ 12 - 0
shiku_im/shiku_im/controller/myOA/ZQDayPickerViewController.m

@@ -82,6 +82,18 @@
     _presentTransition.animationDuration = 0;
     self.transitioningDelegate = self;
     [self initComponentsWithDate:_date];
+    
+    self.view.backgroundColor = BGKJ_COLOR;
+    
+    if (statusX) {
+        
+        [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"UU_newbg3"] forBarMetrics:UIBarMetricsDefault];
+        
+    }else{
+        
+        [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"UU_newbg2"] forBarMetrics:UIBarMetricsDefault];
+        
+    }
 }
 
 - (void)createTapGesture

+ 91 - 39
shiku_im/shiku_im/controller/审批流详情/LYYApprovalDetailVC.m

@@ -35,6 +35,8 @@
 #import "LYYSelectBtnView.h"//选择是否 按钮
 #import "LYYSelectBtnView1.h"
 #import "LYYDBfindSelctedVC.h"//选择DbFind  字段
+#import "MFselectVC.h" //多选页面
+#import "JONavigationController.h"
 #define TITLES @[@"赞", @"OK", @"加油",@"好的",@"请及时完成"]
 @interface LYYApprovalDetailVC ()<UITextFieldDelegate,UITableViewDelegate,UITableViewDataSource,UITextViewDelegate,ZQDayPickerViewControllerDelegate,UIScrollViewDelegate,IFlySpeechRecognizerDelegate,UIWebViewDelegate,YBPopupMenuDelegate,UIAlertViewDelegate,NSURLConnectionDelegate>
 {
@@ -228,6 +230,7 @@
     }
     [self caluterPIanyi];
    
+    [IQKeyboardManager sharedManager].enable = YES;
 }
 -(void)buildFirstView
 {
@@ -779,7 +782,7 @@
                 aaStr = @"0";
             }
             
-            if (![obj1[@"FD_TYPE"] isEqualToString:@"H"] && ![aaStr isEqualToString:@"0"] &&![[obj1 objectForKey:@"FD_TYPE"] isEqualToString:@"MF"] && FORMAT(@"%@",obj1[@"FD_CAPTION"]).length != 0) {
+            if (![obj1[@"FD_TYPE"] isEqualToString:@"H"] && ![aaStr isEqualToString:@"0"] && FORMAT(@"%@",obj1[@"FD_CAPTION"]).length != 0) {
                 if (arr.count > 0) {
                     NSDictionary *dic = arr[0];
                     
@@ -1771,7 +1774,10 @@
         _dayPickerViewController02.selectedColor = [UIColor blackColor];
         _dayPickerViewController02.hintTitle = @"请选择";
         _dayPickerViewController02.delegate = self;
-        [self presentViewController:_dayPickerViewController02 animated:YES completion:nil];
+        
+        JONavigationController * navi=[[JONavigationController alloc]initWithRootViewController:_dayPickerViewController02];
+        [self presentViewController:navi animated:YES completion:nil];
+        
         timeStr = sender.tag;
         
         _piyiWeiZhi ++;
@@ -3498,49 +3504,88 @@
                 if ([model.DBfindType isEqualToString:@"FF"] && ![FORMAT(@"%@",model.FB_type) isEqualToString:@"F"]) {
                     YYYYYY  =NO;
                     _piyiWeiZhi++;
-                    LYYDBfindSelctedVC *vc = [[LYYDBfindSelctedVC alloc] init];
-                    vc.type = @"form";
-                    vc.filed = model.FB_field;
-                    vc.caller = _FD_model.jp_caller;
-                    if ([_FD_model.jp_form containsString:_FD_model.currentMaster]) {
-                        vc.specialMaster = _FD_model.currentMaster;
-                    }else{
-                        vc.specialMaster = g_master;
-                    }
-                    
-                    
-                    vc.title = @"搜索字段";
-                    [vc setMyBlock:^(NSDictionary *dic,NSMutableArray *arr) {
+                    if ([model.FB_type isEqualToString:@"MF"]) {
+                        MFselectVC *dataVC = [[MFselectVC alloc]init];
+                        
+                        dataVC.caller = _FD_model.jp_caller;
+                        
+                        dataVC.title = model.FB_name;
                         
-                        for (NSInteger a = 0;a < _FD_model.inputArr.count;a++) {
-                            LYYFuJianModel *model1 = _FD_model.inputArr[a];
-                            if (model1.fpd_id.length == 0 && model1.fpd_fpid.length != 0) {
+                        dataVC.field = model.FB_field;
+                        
+                        dataVC.type = @"MF";
+                        
+                        dataVC.block = ^(NSArray *backData,NSString *showKey,NSMutableArray *dgField){
+                            for (int a = 0; a < dgField.count; a++) {
                                 
-                                UITextField *textfiled1 = [self.view viewWithTag:11111+a+1];
-                                if (textfiled1.tag == sender.tag - 22222)
-                                {
-                                    for (NSInteger b  = 0; b < arr.count; b ++) {
-                                        
-                                        NSDictionary *dic1 = arr[b];
-                                        if ([dic1[@"field"] isEqualToString:model1.FB_field]) {
-                                            model1.inputStr =dic[dic1[@"dbGridField"]];
-                                            textfiled1.text =dic[dic1[@"dbGridField"]];
+                                for (NSInteger c = 0;c < _FD_model.inputArr.count;c++) {
+                                    LYYFuJianModel *model1 = _FD_model.inputArr[c];
+                                    NSString *valueStr = @"";
+                                    if (model1.fpd_id.length == 0 && model1.fpd_fpid.length != 0) {
+                                        if ([model1.FB_field isEqualToString:[dgField[a] objectForKey:@"field"]]) {
+                                            for (NSInteger b = 0; b < backData.count; b ++) {
+                                                valueStr = [valueStr stringByAppendingString:[backData[b] objectForKey:[dgField[a] objectForKey:@"dbGridField"]]];
+                                                if (b != (backData.count-1)) {
+                                                    valueStr = [valueStr stringByAppendingString:@"#"];
+                                                }
+                                            }
+                                            UITextField *textfiled1 = [self.view viewWithTag:11111+c+1];
+                                            if (textfiled1.tag == sender.tag - 22222)
+                                            {
+                                                model1.inputStr = valueStr;
+                                                textfiled1.text = valueStr;
+                                                SLog(@"%@---%@",textfiled1.text,valueStr);
+                                            }
                                         }
-                                        
-                                        
-                                        
                                     }
-                                    
                                 }
                             }
-                            
+                        };
+                        
+                        [self.navigationController pushViewController:dataVC animated:YES];
+                        
+                        
+                    }else{
+                        LYYDBfindSelctedVC *vc = [[LYYDBfindSelctedVC alloc] init];
+                        vc.type = @"form";
+                        vc.filed = model.FB_field;
+                        vc.caller = _FD_model.jp_caller;
+                        if ([_FD_model.jp_form containsString:_FD_model.currentMaster]) {
+                            vc.specialMaster = _FD_model.currentMaster;
+                        }else{
+                            vc.specialMaster = g_master;
                         }
                         
-                    }];
-                    [self.navigationController pushViewController:vc animated:YES];
-                    
-                    
-                }else{
+                        
+                        vc.title = @"搜索字段";
+                        [vc setMyBlock:^(NSDictionary *dic,NSMutableArray *arr) {
+                            
+                            for (NSInteger a = 0;a < _FD_model.inputArr.count;a++) {
+                                LYYFuJianModel *model1 = _FD_model.inputArr[a];
+                                if (model1.fpd_id.length == 0 && model1.fpd_fpid.length != 0) {
+                                    
+                                    UITextField *textfiled1 = [self.view viewWithTag:11111+a+1];
+                                    if (textfiled1.tag == sender.tag - 22222)
+                                    {
+                                        for (NSInteger b  = 0; b < arr.count; b ++) {
+                                            
+                                            NSDictionary *dic1 = arr[b];
+                                            if ([dic1[@"field"] isEqualToString:model1.FB_field]) {
+                                                model1.inputStr =dic[dic1[@"dbGridField"]];
+                                                textfiled1.text =dic[dic1[@"dbGridField"]];
+                                            }
+                                        }
+                                    }
+                                }
+                                
+                            }
+                            
+                        }];
+                        [self.navigationController pushViewController:vc animated:YES];
+                    }
+  
+                }
+                else{
                     
                     if (model.FB_COMBOSTOREArr.count > 0 ) {
                         YYYYYY  =NO;
@@ -3664,7 +3709,8 @@
         _dayPickerViewController02.selectedColor = [UIColor blackColor];
         _dayPickerViewController02.hintTitle = @"请选择";
         _dayPickerViewController02.delegate = self;
-        [self presentViewController:_dayPickerViewController02 animated:YES completion:nil];
+        JONavigationController * navi=[[JONavigationController alloc]initWithRootViewController:_dayPickerViewController02];
+        [self presentViewController:navi animated:YES completion:nil];
         timeStr = sender.tag;
         _piyiWeiZhi ++;
         
@@ -4578,7 +4624,10 @@
                             model.fpd_fpid = _FD_model.nameFpd_mainID;
                             model.FB_name = [c objectForKey:@"FD_CAPTION"];
                             if ([model.DBfindType isEqualToString:@"FF"]) {
-                                model.FB_type = @"";
+                                if ([FORMAT(@"%@",c[@"FD_TYPE"]) isEqualToString:@"MF"]) {
+                                    model.FB_type = [c objectForKey:@"FD_TYPE"];
+                                }else
+                                    model.FB_type = @"";
                             }else
                                 model.FB_type = [c objectForKey:@"FD_TYPE"];
                             model.inputStr = @"";
@@ -4633,8 +4682,10 @@
                                 if ([model.FB_type isEqualToString:@"C"] || [model.FB_type isEqualToString:@"YN"] || [model.FB_type isEqualToString:@"B"]||([model.DBfindType isEqualToString:@"FF"] &&![FORMAT(@"%@",model.FB_type) isEqualToString:@"F"]))
                                 {
                                     but.tag = bb +33333;
+                                    SLog(@"33333:%@--%@--%@--%ld",model.FB_name,model.DBfindType,model.FB_type,(long)but.tag);
                                 }else{
                                     but.tag =bb +22222;
+                                    SLog(@"22222:%@--%@--%@--%ld",model.FB_name,model.DBfindType,model.FB_type,(long)but.tag);
                                 }
                                 [_firstView addSubview:but];
                                 [but addTarget:self action:@selector(selectTimeSecond:) forControlEvents:UIControlEventTouchUpInside];
@@ -5700,6 +5751,7 @@
 -(void)viewWillDisappear:(BOOL)animated{
     [_iFlySpeechRecognizer cancel];
     [self.MyView removeFromSuperview];
+    [IQKeyboardManager sharedManager].enable = NO;
 }
 - (LYYSelectBtnView *)createLyyselcetBtn:(NSUInteger)tag withselect:(NSString *)yes1{
     LYYSelectBtnView *btn = [[LYYSelectBtnView alloc] initWithFrame:CGRectMake(80, _height,SCREEN_WIDTH-140, 16)];

+ 2 - 1
shiku_im/shiku_im/controller/预约小秘书/共享预约/ShareListVC.m

@@ -357,7 +357,8 @@ static NSString *cellID = @"cellID";
     _searchBar.placeholder = Localized(@"UU_custom_search");
     _searchBar.delegate = self;
     _searchBar.backgroundColor = BGKJ_COLOR;
-    _searchBar.searchTextField.backgroundColor = BGKJ_COLOR;
+    UITextField *searchField = iOS13 ? _searchBar.searchTextField : [_searchBar valueForKey:@"_searchField"];
+    searchField.backgroundColor = BGKJ_COLOR;
     //    _searchBar.showsCancelButton = YES;
     //添加 searchBar 到 headerView
     UIView * uv = [[UIView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH-48, 7.5, 40, 30)];

+ 164 - 164
shiku_im/shiku_im/一元捐/项目列表/选择支付界面/ZXPayView.m

@@ -7,7 +7,7 @@
 
 #import "ZXPayView.h"
 #import "ZXPayWayViewModel.h"
-#import <AlipaySDK/AlipaySDK.h>
+//#import <AlipaySDK/AlipaySDK.h>
 #import "WLDecimalKeyboard.h"
 #import "WXApi.h"
 #define amountArr @[@"1元",@"10元",@"50元",@"100元"]
@@ -40,16 +40,16 @@
     int callBackCount;
 }
 -(instancetype)initWithFrame:(CGRect)frame{
-    
+
     if (self == [super initWithFrame:frame]) {
-        
+
         self.backgroundColor = Color(0, 0, 0 , 0.5);
         [self initUI];
-        
-        
+
+
     }
     return self;
-    
+
 }
 
 -(void)initUI{
@@ -59,20 +59,20 @@
     _HUD.mode = MBProgressHUDModeIndeterminate;
     //    [_HUD show:YES];
     [g_window addSubview:_HUD];
-    
+
     callBackCount = 1;
     RACSignal * deallocSignal = [self rac_signalForSelector:@selector(viewWillDisappear:)];
     @weakify(self);
     [[[[NSNotificationCenter defaultCenter] rac_addObserverForName:@"ALIPAY_SDK_BACK" object:nil] takeUntil:deallocSignal] subscribeNext:^(NSNotification * _Nullable noti) {
         @strongify(self)
-        
+
         int resultStatus = [noti.object[@"resultStatus"] intValue];
         [self payResultWith:resultStatus];
-        
+
     }];
     self.isAgree = YES;
     self.SelectStatus = YES;
-   
+
     UIView *contentV = [[UIView alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT, SCREEN_WIDTH, 340)];
     contentV.backgroundColor = [UIColor whiteColor];
     [self addSubview:contentV];
@@ -94,13 +94,13 @@
     deleBtn.frame = CGRectMake(self.width-25, 5, 20, 20);
     [deleBtn setImage:[UIImage imageNamed:@"uu_work_delete"] forState:UIControlStateNormal];
     [contentV addSubview:deleBtn];
-    
+
     [[deleBtn rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(__kindof UIControl * _Nullable x) {
         @strongify(self)
         [self hidePayView];
-        
+
     }];
-    
+
     for (int i = 0; i<4; i++) {
         UIButton * btn = [[UIButton alloc]initWithFrame:CGRectMake(22+((SCREEN_WIDTH-44-30)/4+10)*i, 59, (SCREEN_WIDTH-44-30)/4, 30)];
         [btn setTitle:amountArr[i] forState:UIControlStateNormal];
@@ -124,13 +124,13 @@
         [contentV addSubview:btn];
     }
     self.PayMoney = @"1";
-    
+
     UILabel * contentLable = [[UILabel alloc]initWithFrame:CGRectMake(22, 100, 115+cellScale*2, 30)];
     contentLable.userInteractionEnabled = YES;
     contentLable.layer.borderColor = Color(153, 153, 153, 1).CGColor;
     contentLable.layer.borderWidth = 0.5;
     [_contentV addSubview:contentLable];
-    
+
     UITextField * moneyTextField = [[UITextField alloc]initWithFrame:CGRectMake(0, 0,90+cellScale*2, 30)];
     moneyTextField.font = FONT_SIZE(13);
     moneyTextField.textAlignment = NSTextAlignmentCenter;
@@ -146,23 +146,23 @@
     CustomeLable.textAlignment = NSTextAlignmentCenter;
     CustomeLable.font = FONT_SIZE(13);
     [contentLable addSubview:CustomeLable];
-    
+
     WLDecimalKeyboard *inputView = [[WLDecimalKeyboard alloc] init];
     moneyTextField.delegate = self;
     moneyTextField.inputView = inputView;
     [moneyTextField reloadInputViews];
     inputView.done = ^{
-       
 
-        
+
+
     };
     self.inputView = inputView;
     UIView *bgview = [UIView new];
     bgview.backgroundColor = HexColor(@"#F4F4F4");
     bgview.frame = CGRectMake(0, CGRectGetMaxY(contentLable.frame), SCREEN_WIDTH, 10);
     [contentV addSubview:bgview];
-    
-    
+
+
     UILabel * Waylable = [[UILabel alloc]initWithFrame:CGRectMake(22, CGRectGetMaxY(bgview.frame), 80+2*cellScale, 30)];
     Waylable.text = @"付款方式";
     Waylable.font = FONT_SIZE(14);
@@ -174,7 +174,7 @@
 
     self.wxButton = [self ButtonWithFrame:CGRectMake(20,CGRectGetMaxY(Waylable.frame)+1, SCREEN_WIDTH-40, 40) Image:@"uu_work_wxPay" title:@"微信支付"];
 //    self.wxButton.selected = YES;
-   
+
     [[self.wxButton rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(__kindof UIControl * _Nullable x) {
        @strongify(self)
         self.PayWay = @"wxPay";
@@ -185,15 +185,15 @@
         self.wxButton.selected = YES;
         self.alipayButton.selected = NO;
          [UASMethodTools popAnimationWithView:self.wxButton.imageView];
-        
+
     }];
-    
+
     self.alipayButton = [self ButtonWithFrame:CGRectMake(20,CGRectGetMaxY(self.wxButton.frame), SCREEN_WIDTH-40, 40) Image:@"uu_work_aliPay" title:@"支付宝支付"];
     self.alipayButton.selected = YES;
     UIImageView *slectImage = [self.alipayButton viewWithTag:1001];
- 
+
     slectImage.hidden = NO;
-  
+
     //设置默认支付方式
     self.PayWay = @"aliPay";
     [[self.alipayButton rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(__kindof UIControl * _Nullable x) {
@@ -206,7 +206,7 @@
         self.alipayButton.selected = YES;
         self.wxButton.selected = NO;
         [UASMethodTools popAnimationWithView:self.alipayButton.imageView];
-        
+
     }];
 
     UIButton * AgreeBtn = [[UIButton alloc]initWithFrame:CGRectMake(Waylable.x, CGRectGetMaxY(self.alipayButton.frame)+10, 80+cellScale*3, 20)];
@@ -236,10 +236,10 @@
         __strong typeof(ZXPayView) *strongSelf = weakSelf;
         [strongSelf hidePayView];
         BLOCK_EXEC(strongSelf->_PushWebBlock,);
-       
+
     }];
     [self.contentV addSubview:xiyiDonationBtn];
-    
+
     UIButton * donationBtn  =[[UIButton alloc]initWithFrame:CGRectMake(0, 250+40, SCREEN_WIDTH, 50)];
     [donationBtn setFont:FONT_SIZE(15)];
     [donationBtn setTitle:@"立即捐款" forState:UIControlStateNormal];
@@ -255,46 +255,46 @@
         strongSelf.donationBtn.userInteractionEnabled = NO;
         [strongSelf hidePayView];
         [strongSelf->_HUD show:YES];
-        
+
         if (strongSelf.ProId.length == 0) {
-            
+
             [UASAlertView showWithTitle:@"配置异常" content:@"服务器配置异常" sureTitle:Localized(@"UU_custom_sure") cancelTitle:nil click:^(NSInteger index) {
-                
+
             }];
-            
+
         }
-        
+
         if ([strongSelf.PayWay isEqualToString:@"aliPay"]) {
-            
+
             NSDictionary *dic = @{@"projectName": @"测试",
                                   @"amount":strongSelf.moneyTextField.text.length == 0?strongSelf.PayMoney: strongSelf.moneyTextField.text,
                                   @"proId":strongSelf.ProId,
                                   @"imid":[UASUserInfo shareManager].imid,
                                   @"way":@"支付宝",
                                   };
-            
+
             [[ZXPayWayViewModel singalForOrderPaySignal:dic] subscribeNext:^(NSString * responderObject) {
-            
+
                 [strongSelf->_HUD hide:YES];
-                [[AlipaySDK defaultService] payOrder:responderObject
-                                          fromScheme:@"alipaySchemes"
-                                            callback:^(NSDictionary *resultDic) {
-                                                BLOCK_EXEC(strongSelf.payWebBackBlock,resultDic);
-//                                                DLog(@"支付宝支付1111111:%@-----",resultDic);
-                                                int resultStatus = [resultDic[@"resultStatus"] intValue];
-//
-                                                [strongSelf payResultWith:resultStatus];
-                                            }];
-                
-                
+//                [[AlipaySDK defaultService] payOrder:responderObject
+//                                          fromScheme:@"alipaySchemes"
+//                                            callback:^(NSDictionary *resultDic) {
+//                                                BLOCK_EXEC(strongSelf.payWebBackBlock,resultDic);
+////                                                DLog(@"支付宝支付1111111:%@-----",resultDic);
+//                                                int resultStatus = [resultDic[@"resultStatus"] intValue];
+////
+//                                                [strongSelf payResultWith:resultStatus];
+//                                            }];
+
+
             } error:^(NSError * _Nullable error) {
                 [strongSelf->_HUD hide:YES];
                 NSData *returnData = [[error userInfo] objectForKey:@"com.alamofire.serialization.response.error.data"];
                 if (returnData) {
                     NSDictionary *content = [NSJSONSerialization JSONObjectWithData:returnData options:NSJSONReadingMutableContainers error:nil];//转换数据格式
-                    
+
                     NSString *errorStr = [NSString stringWithFormat:@"%@",[content objectForKey:@"exceptionInfo"]];
-                    
+
                     DLog(@"错误的原因:%@",errorStr);
                     BLOCK_EXEC(strongSelf.RequestInfoBackBlock,errorStr);
                 }
@@ -302,11 +302,11 @@
                     BLOCK_EXEC(strongSelf.RequestInfoBackBlock,@"请检查网络情况");
                 }
             }];
-            
+
         }else if([strongSelf.PayWay isEqualToString:@"wxPay"]){
-            
+
             NSString *wxUrl = [NSString stringWithFormat:@"http://lj.ubtob.com/wxpay/appPay"];
-            
+
             NSDictionary *dic = @{@"projectName": @"测试",
                                   @"amount":strongSelf.moneyTextField.text.length == 0?strongSelf.PayMoney: strongSelf.moneyTextField.text,
                                   @"proId":strongSelf.ProId,
@@ -314,70 +314,70 @@
                                   @"way":@"微信"
                                   };
             UASNetworkManager *manager = [UASNetworkManager shareManager];
-            
+
             manager.responseSerializer = [AFHTTPResponseSerializer serializer];
-            
+
             NSData *data = [NSJSONSerialization dataWithJSONObject:dic options:NSJSONWritingPrettyPrinted error:nil];
-            
+
             NSString *jsonStr = [[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding];
-            
+
             NSDictionary *paraDic = @{
                                       @"jsonStr": jsonStr,
                                       };
-            
-            
+
+
             [manager request:wxUrl method:POST parameters:paraDic progress:nil success:^(NSURLSessionDataTask *task, id responseObject) {
-                
+
                [strongSelf->_HUD hide:YES];
                 NSDictionary *dict = [NSDictionary dictionary];
-                
+
                 if ([responseObject isKindOfClass:[NSData class]]) {
-                    
+
                 dict = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableLeaves error:nil];
-                    
+
                 if (!dict  || [[dict objectForKey:@"retcode"] intValue] != 0) {
-                    
+
                 NSString *strOne = [[NSString alloc]initWithData:responseObject encoding:NSUTF8StringEncoding];
-                    
+
                     if (strOne.length > 1) {
-                    
+
                     if ([[strOne substringToIndex:1] isEqualToString:@"\""]) {
-                        
+
                         strOne = [strOne stringByReplacingCharactersInRange:NSMakeRange(0, 1) withString:@""];
-                        
+
                     }
-                    
+
                     if ([[strOne substringFromIndex:strOne.length - 1] isEqualToString:@"\""]) {
-                        
-                        
+
+
                         strOne = [strOne stringByReplacingCharactersInRange:NSMakeRange(strOne.length - 1, 1) withString:@""];
-                        
+
                     }
-                    
+
                     }
-                    
+
                     SBJsonParser *parser = [[SBJsonParser alloc] init];
-                    
+
                     NSError *error;
-                    
+
                     dict = [parser objectWithString:strOne error:&error ];
 
                 }
-                    
+
                 }else{
-                    
+
                     dict = (NSDictionary *)responseObject;
-                    
+
                 }
-                
+
                 if(dict != nil){
                     NSMutableString *retcode = [dict objectForKey:@"retcode"];
                     if (retcode.intValue == 0){
                         NSMutableString *stamp  = [dict objectForKey:@"timestamp"];
-                        
+
                         //调起微信支付
                         PayReq* req             = [[PayReq alloc] init];
-                    
+
                         req.partnerId           = [dict objectForKey:@"partnerid"];
                         req.prepayId            = [dict objectForKey:@"prepayid"];
                         req.nonceStr            = [dict objectForKey:@"noncestr"];
@@ -386,109 +386,109 @@
                         req.sign                = [dict objectForKey:@"sign"];
 //                        [WXApi sendReq:req];
                         [WXApi sendReq:req completion:^(BOOL success) {
-                            
+
                         }];
-                
+
                     }
                 }else{
-                    
+
                     if (strongSelf.RequestInfoBackBlock) {
-                        
+
                         strongSelf.RequestInfoBackBlock(@"服务器开小差了");
-                        
+
                     }
-                    
+
                 }
-                
+
             } failure:^(NSURLSessionDataTask *task, NSError *error) {
              [strongSelf->_HUD hide:YES];
                 NSData *returnData = [[error userInfo] objectForKey:@"com.alamofire.serialization.response.error.data"];
                 if (returnData) {
                     NSDictionary *content = [NSJSONSerialization JSONObjectWithData:returnData options:NSJSONReadingMutableContainers error:nil];//转换数据格式
-                    
+
                     NSString *errorStr = [NSString stringWithFormat:@"%@",[content objectForKey:@"exceptionInfo"]];
-                 
+
                     if (strongSelf.RequestInfoBackBlock) {
-                        
+
                         strongSelf.RequestInfoBackBlock(errorStr);
-                        
+
                     }
-                
+
                 }
                 else{
                     if (strongSelf.RequestInfoBackBlock) {
-                        
+
                        strongSelf.RequestInfoBackBlock(@"请检查网络情况");
-                        
+
                     }
                 }
 
-                
-                
+
+
             }];
-            
-            
+
+
         }
-        
+
     }];
 
-    
+
     /* RAC */
     RAC(donationBtn,enabled) = [RACSignal combineLatest:@[RACObserve(self,SelectStatus),RACObserve(self, isAgree)]
                                                 reduce:^(NSNumber *isAgree,NSNumber * SelectStatus){
                                                     return @(isAgree.boolValue&&SelectStatus.boolValue);
                                                 }];
-    
-    
+
+
 }
 
 -(void)payResultWith:(int )status{
-    
+
     if (callBackCount == 1) {
         callBackCount ++;
         switch (status) {
             case 9000:
 
                 [UASAlertView YYJshowWithTitle:nil content:@"感谢您的爱心捐赠" sureTitle:Localized(@"UU_custom_sure") cancelTitle:nil click:^(NSInteger index) {
-                    
+
                 }];
-                
+
                 break;
             case 8000:
                 [UASAlertView YYJshowWithTitle:nil content:@"正在处理中" sureTitle:Localized(@"UU_custom_sure") cancelTitle:nil click:^(NSInteger index) {
-                    
+
                 }];
-               
+
                 break;
             case 4000:
                 [UASAlertView YYJshowWithTitle:nil content:@"支付失败" sureTitle:Localized(@"UU_custom_sure") cancelTitle:nil click:^(NSInteger index) {
-                    
+
                 }];
-                
+
                 break;
             case 6001:
                 [UASAlertView YYJshowWithTitle:nil content:@"支付取消" sureTitle:Localized(@"UU_custom_sure") cancelTitle:nil click:^(NSInteger index) {
-                    
+
                 }];
-                
+
                 break;
             case 6002:
                 [UASAlertView YYJshowWithTitle:nil content:@"网络错误" sureTitle:Localized(@"UU_custom_sure") cancelTitle:nil click:^(NSInteger index) {
-                    
+
                 }];
-               
+
                 break;
             default:
                 [UASAlertView YYJshowWithTitle:nil content:@"未知错误" sureTitle:Localized(@"UU_custom_sure") cancelTitle:nil click:^(NSInteger index) {
-                    
+
                 }];
-               
+
                 break;
         }
-       
+
     }
-    
-    
+
+
 }
 
 #pragma mark -- show and hidden
@@ -499,9 +499,9 @@
         @strongify(self)
         self.alpha = 1;
         self.contentV.frame = CGRectMake(0, SCREEN_HEIGHT-340, SCREEN_WIDTH, 340);
-        
+
     } completion:^(BOOL finished) {
-        
+
     }];
 }
 - (void)hidePayView{
@@ -515,42 +515,42 @@
         @strongify(self)
         self.frame = CGRectMake(0, SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT);
         [self removeFromSuperview];
-        
+
     }];
-    
+
 }
 
 -(void)clickMoneyBtn:(UIButton *)sender{
-    
+
     NSString * MoneyStr = sender.titleLabel.text;
     self.SelectStatus = YES;
     self.moneyTextField.text = @"";
     for (UIButton * btn in self.contentV.subviews) {
         if (btn.tag>=10000&&btn.tag<=10004) {
-            
+
             if (btn.tag == sender.tag) {
                 sender.selected = YES;
                 self.SelectBtn = sender;
                 self.PayMoney = [MoneyStr substringToIndex:MoneyStr.length-1];
 //                [sender.layer setBorderColor:Color(239, 97, 59, 1).CGColor];
-                
+
             }
             else{
 //                [btn.layer setBorderColor:Color(153,153, 153, 1).CGColor];
                 btn.selected = NO;
             }
-            
+
         }
     }
-    
-    
-    
+
+
+
 }
 
 -(void)alipayCallBack:(NSNotification * )noti{
 //      noti.object[@"resultStatus"];
     [self hidePayView];
-   
+
     int resultStatus = [noti.object[@"resultStatus"] intValue];
 
     if (callBackCount == 1) {
@@ -577,15 +577,15 @@
         }
     }
     callBackCount ++;
-    
+
 }
 
 -(UIButton *)ButtonWithFrame:(CGRect)Frame Image:(NSString *)imageStr title:(NSString *)title{
     UIButton *btn = [[UIButton alloc]initWithFrame:Frame];
     btn.imageRect = CGRectMake(15, 5, 30, 30);
- 
+
     btn.titleRect = CGRectMake(50, 5, 100, 30);
-   
+
     [btn setImage:[UIImage imageNamed:imageStr] forState:UIControlStateNormal];
 //    [btn setBackgroundImage:[UIImage imageNamed:@"RMB_NOR"] forState:UIControlStateNormal];
 //    [btn setBackgroundImage:[UIImage imageNamed:@"RMB_SEL"] forState:UIControlStateSelected];
@@ -595,7 +595,7 @@
 //    btn.titleLabel.text = title;
 //    [btn.layer setBorderColor:Color(153, 153, 153, 1).CGColor];
 //    [btn.layer setBorderWidth:0.5];
-    
+
     UIImageView *selcetImage = [UIImageView new];
     [btn addSubview:selcetImage];
     selcetImage.image = [UIImage  imageNamed:@"uu_work_selectImg"];
@@ -611,32 +611,32 @@
 //    btn.backgroundColor = [UIColor orangeColor];
     [_contentV addSubview:btn];
     return btn;
-    
-    
+
+
 }
 
 -(BOOL)textFieldShouldBeginEditing:(UITextField *)textField{
-    
+
     [UIView animateWithDuration:0.25f animations:^{
 //        self.alpha = 1;
         _contentV.frame = CGRectMake(0, SCREEN_HEIGHT-(140+self.inputView.frame.size.height), SCREEN_WIDTH, 340);
-        
+
     } completion:^(BOOL finished) {
-        
+
     }];
     return YES;
-    
+
 }
 
 -(BOOL)textFieldShouldEndEditing:(UITextField *)textField{
-    
+
     [UIView animateWithDuration:0.2f animations:^{
         self.alpha = 1;
         _contentV.frame = CGRectMake(0, SCREEN_HEIGHT-340, SCREEN_WIDTH, 340);
     } completion:^(BOOL finished) {
-        
+
 //        self.frame = CGRectMake(0, SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT);
-        
+
     }];
 
     BOOL ispure = [UASMethodTools isPureInt:self.moneyTextField.text];
@@ -672,18 +672,18 @@
     if ([string isEqualToString:@" "]) {
         return NO;
     }
-    
+
     if ([textField.text rangeOfString:@"."].location == NSNotFound) {
         isHaveDian = NO;
     }
     if ([string length] > 0) {
-        
+
         unichar single = [string characterAtIndex:0];//当前输入的字符
         if ((single >= '0' && single <= '9') || single == '.') {//数据格式正确
-            
+
             if([textField.text length] == 0){
                 if(single == '.') {
-                   
+
                     [textField.text stringByReplacingCharactersInRange:range withString:@""];
                     return NO;
                 }
@@ -697,31 +697,31 @@
                 {
                     isHaveDian = YES;
                     return YES;
-                    
+
                 }else{
-                  
+
                     [textField.text stringByReplacingCharactersInRange:range withString:@""];
                     return NO;
                 }
             }else{
                 if (isHaveDian) {//存在小数点
-                    
+
                     //判断小数点的位数
                     NSRange ran = [textField.text rangeOfString:@"."];
                     if (range.location - ran.location <= 2) {
                         return YES;
                     }else{
-                       
+
                         return NO;
                     }
                 }else{
                     return YES;
                 }
             }
-            
-            
+
+
         }else{//输入的数据格式不正确
-           
+
             [textField.text stringByReplacingCharactersInRange:range withString:@""];
             return NO;
         }
@@ -734,25 +734,25 @@
 }
 
 - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
-    
+
     CGPoint point = [[touches allObjects].firstObject locationInView:self];
-    
+
     if (point.y<self.contentV.frame.origin.y) {
-        
+
         [self hidePayView];
-        
+
     }else{
-        
+
         [super touchesBegan:touches withEvent:event];
-        
+
     }
 
 }
 
 -(void)dealloc{
-    
-    
-    
+
+
+
 }
 
 @end

+ 2 - 1
shiku_im/shiku_im/文件夹1/CRM3.0/商机管理/Controllers/NicheSearchVC.m

@@ -192,7 +192,8 @@
     _searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 44)];
     _searchBar.placeholder = Localized(@"UU_custom_search");
     _searchBar.delegate = self;
-    _searchBar.searchTextField.backgroundColor = BGKJ_COLOR;
+    UITextField *searchField = iOS13 ? _searchBar.searchTextField : [_searchBar valueForKey:@"_searchField"];
+    searchField.backgroundColor = BGKJ_COLOR;
     _searchBar.backgroundImage = [UIImageView createImageWithColor:BGB_COLOR];
     //添加 searchBar 到 headerView
     UIView *tableHeaderView = [[UIView alloc] init];

+ 2 - 1
shiku_im/shiku_im/文件夹1/CRM3.0/客户管理/Controllers/UASClientDocuSearchVC.m

@@ -702,7 +702,8 @@ UIImageView *_noDataImage;//没数据图片
         
         _searchBar.backgroundImage = image;
         _searchBar.placeholder = @"搜索";
-        _searchBar.searchTextField.backgroundColor = BGKJ_COLOR;
+        UITextField *searchField = iOS13 ? _searchBar.searchTextField : [_searchBar valueForKey:@"_searchField"];
+        searchField.backgroundColor = BGKJ_COLOR;
     }
     
     return _searchBar;

+ 2 - 1
shiku_im/shiku_im/文件夹1/CRM3.0/联系人管理/viewcontrller/UASCRMAddressListVC.m

@@ -201,7 +201,8 @@ static CNContactPickerViewController * peoplePickVC;
     self.searchBar = searchBar;
     [titleView addSubview:self.searchBar];
     [titleView addSubview:btn];
-    _searchBar.searchTextField.backgroundColor = BGKJ_COLOR;
+    UITextField *searchField = iOS13 ? _searchBar.searchTextField : [_searchBar valueForKey:@"_searchField"];
+    searchField.backgroundColor = BGKJ_COLOR;
     _searchBar.backgroundImage = [UIImageView createImageWithColor:BGB_COLOR];
     
     UIView *VocieView = [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(searchBar.frame)-30, 0, 30, 30)];

+ 1 - 1
shiku_im/shiku_im/文件夹1/DataListVC.m

@@ -716,7 +716,7 @@ static NSString * cellID = @"cellID";
         if (i==2) {
             self.searchBar.placeholder = [self.searchBar.placeholder stringByAppendingString:@"..."];
             UITextField * searchField = iOS13 ? _searchBar.searchTextField : [_searchBar valueForKey:@"_searchField"];
-            [searchField setValue:FONT_SIZE(13) forKeyPath:@"_placeholderLabel.font"];
+//            [searchField setValue:FONT_SIZE(13) forKeyPath:@"_placeholderLabel.font"];
             break;
         }
         

+ 2 - 2
shiku_im/shiku_im/文件夹1/ReportStatisticsVC.m

@@ -392,7 +392,7 @@
     btn.backgroundColor =Color(47, 149, 221, 1);
     [btn setTitle:BtnTitles[i] forState:UIControlStateNormal];
     [btn addTarget:self action:@selector(clickBottomBtn:) forControlEvents:UIControlEventTouchUpInside];
-    [btn addTarget:self action:@selector(buttonTouchDownWith:) forControlEvents:UIControlEventTouchDown];
+//    [btn addTarget:self action:@selector(buttonTouchDownWith:) forControlEvents:UIControlEventTouchDown];
     if (i==0) {
         [btn setBackgroundColor:[UIColor whiteColor]];
         btn.layer.borderColor = Color(47, 149, 221, 1).CGColor;
@@ -770,7 +770,7 @@
                      
                      NSString *errorStr = [NSString stringWithFormat:@"%@",[content objectForKey:@"message"]];
                      
-//                     DLog(@"错误的原因:%@",errorStr);
+                     SLog(@"错误的原因:%@",errorStr);
                      LYYReadingVC * lvc = [[LYYReadingVC alloc]init];
                      lvc.title = self.title;
                      lvc.caller = self.model.caller;

+ 202 - 5
shiku_im/shiku_im/文件夹1/多明细通用表单/Controllers/MoreGridDetailVC.m

@@ -21,6 +21,8 @@
 #import "MFselectVC.h"
 #import "JOOAOutSelectAddressVC.h"
 #import "JOOutAddressModel.h"
+#import "CustomeApproveIdeaView.h"
+#import "YPSelectShenPiPersonVC.h"
 
 static NSString *cellID = @"cellID";
 @interface MoreGridDetailVC ()<UITableViewDelegate,UITableViewDataSource,UIScrollViewDelegate>
@@ -38,6 +40,7 @@ static NSString *cellID = @"cellID";
     NSMutableArray *_listArr; //获取配置表的数据(主表)
     
     UIBarButtonItem *bbi1;
+    UIBarButtonItem *bbi2;//取消拜访计划按钮
     
     ConfigModel *_cModel; //单据配置时标识状态码字段
 
@@ -1301,13 +1304,36 @@ static NSString *cellID = @"cellID";
 
 -(void)creatUpdateBarButton
 {
-    if (([self.docuType isEqualToString:@"已审核"]) && self.updateData.count != 0) {
-        if (![self.planModel.status isEqualToString:@"已转单"]) {
-            bbi1 = [[UIBarButtonItem alloc]initWithTitle:@"更新" style:UIBarButtonItemStylePlain target:self action:@selector(updateAction)];
-            bbi1.tintColor = [UIColor whiteColor];
-            self.navigationItem.rightBarButtonItems = @[bbi1];
+    if ([self.caller isEqualToString:@"MobileOutPlans"]) {
+        
+        if (([self.docuType isEqualToString:@"已审核"])) {
+            if (![self.planModel.status isEqualToString:@"已转单"]) {
+                if (self.updateData.count != 0) {
+                    bbi1 = [[UIBarButtonItem alloc]initWithTitle:@"更新" style:UIBarButtonItemStylePlain target:self action:@selector(updateAction)];
+                    bbi1.tintColor = [UIColor whiteColor];
+                    if (bbi2) {
+                        self.navigationItem.rightBarButtonItems = @[bbi1,bbi2];
+                    }else
+                        self.navigationItem.rightBarButtonItems = @[bbi1];
+                    
+                }else{
+                    if (bbi2) {
+                        self.navigationItem.rightBarButtonItems = @[bbi2];
+                    }
+                }
+            }
+        }
+        
+    }else{
+        if (([self.docuType isEqualToString:@"已审核"]) && self.updateData.count != 0) {
+            if (![self.planModel.status isEqualToString:@"已转单"]) {
+                bbi1 = [[UIBarButtonItem alloc]initWithTitle:@"更新" style:UIBarButtonItemStylePlain target:self action:@selector(updateAction)];
+                bbi1.tintColor = [UIColor whiteColor];
+                self.navigationItem.rightBarButtonItems = @[bbi1];
+            }
         }
     }
+    
 }
 
 #pragma mark --- 设置UI
@@ -1381,6 +1407,12 @@ static NSString *cellID = @"cellID";
         bbi1 = [[UIBarButtonItem alloc]initWithTitle:@"编辑" style:UIBarButtonItemStylePlain target:self action:@selector(editAction)];
         bbi1.tintColor = [UIColor whiteColor];
         self.navigationItem.rightBarButtonItems = @[bbi1];
+    }else{
+        if ([_caller isEqualToString:@"MobileOutPlans"]) {
+            
+            [self judgeIfCancelButton];
+            
+        }
     }
     
     _date = [[JXDatePicker alloc] initWithFrame:CGRectMake(0, 0, self_width, self_height)];
@@ -1468,6 +1500,171 @@ static NSString *cellID = @"cellID";
     
 }
 
+#pragma mark --- 判断是否有取消按钮
+-(void)judgeIfCancelButton
+{
+    NSString *url = FORMAT(@"%@ma/setting/config.action",g_id);
+    NSDictionary *dic = @{
+                          @"caller":@"sys",
+                          @"code":@"isCancelPlan"
+                          };
+    UASNetworkManager *manager = [UASNetworkManager shareManager];
+    manager.responseSerializer = [AFJSONResponseSerializer serializer];
+    [manager request:url method:GET parameters:dic progress:nil success:^(NSURLSessionDataTask *task, id responseObject) {
+        SLog(@"数据:%@",responseObject);
+
+        if (responseObject) {
+            
+            bbi2 = [[UIBarButtonItem alloc]initWithTitle:@"取消" style:UIBarButtonItemStylePlain target:self action:@selector(cancelAction)];
+            bbi2.tintColor = [UIColor whiteColor];
+            self.navigationItem.rightBarButtonItems = @[bbi2];
+
+        }else{
+
+            
+        }
+
+    } failure:^(NSURLSessionDataTask *task, NSError *error) {
+        ErrorInfomation;
+        SLog(@"%@",error);
+    }];
+    
+    
+}
+
+#pragma mark --- 取消拜访计划
+-(void)cancelAction
+{
+    CustomeApproveIdeaView *AIView = [[CustomeApproveIdeaView alloc]initWithFrame:self.view.bounds];
+    AIView.plaStr = @"请输入取消该拜访计划的原因...";
+    [AIView setBlock:^(NSString *ApproveText) {
+        
+        [MBProgressHUD showMessage:@"" toView:self.view];
+        
+        NSDictionary *gridParam = @{@"cpd_planid":self.docuID,
+                                    @"cpd_remark":ApproveText ? ApproveText:@"",
+                                    };
+        NSData *jsonData = [NSJSONSerialization dataWithJSONObject:gridParam options:NSJSONWritingPrettyPrinted error:nil];
+        NSString *gridStr=[[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
+        
+        SLog(@"从表合并的东西:%@",gridStr);
+        
+        NSString *url = [NSString stringWithFormat:@"%@mobile/oa/commonSaveAndSubmit.action",g_id];
+        
+        NSDictionary *dic = @{
+                              @"caller":@"CancelPlan",
+                              @"formStore":@"",
+                              @"gridStore":gridStr,
+                              @"othergridStore":@"",
+                              @"master":g_master,
+                              @"sessionUser":g_sessionUser,
+                              @"sessionId":g_sessionId,
+                              @"id":@"0"
+                              };
+        
+        SLog(@"aaaaaaaa:%@ --- url:%@",dic,url);
+        
+        url = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
+        
+        UASNetworkManager *manager = [UASNetworkManager shareManager];
+        
+        [manager request:url method:POST parameters:dic progress:nil success:^(NSURLSessionDataTask *task, id responseObject) {
+            [MBProgressHUD hideHUDForView:self.view];
+            SLog(@"chenggong---:%@",responseObject);
+            
+            NSString *specialStr = responseObject[@"exceptionInfo"];
+            //异常
+            if (specialStr.length != 0) {
+                
+                [JOShowMessageFromNavi showDropViewWithMessage:specialStr ToNavi:self.navigationController withColor:nil];
+                
+                return;
+            }
+            
+            NSDictionary *dic =  responseObject;
+            
+            NSString *idStr = @"";
+            
+            idStr = FORMAT(@"%@",[dic objectForKey:_cModel.fo_keyfield]);
+            
+            if (idStr.length == 0) {
+                idStr = [NSString stringWithFormat:@"keyvalue"];
+                idStr = dic[@"keyvalue"];
+            }
+            [self selectShenPiPersonWithDanJuId:idStr];
+            
+        } failure:^(NSURLSessionDataTask *task, NSError *error) {
+            [MBProgressHUD hideHUDForView:self.view];
+            
+            SLog(@"错误的原因:%@",error);
+            ErrorInfomation;
+            
+        }];
+    }];
+    [self.view addSubview:AIView];
+}
+
+#pragma mark --- 提交审核人
+-(void)selectShenPiPersonWithDanJuId:(NSString *)idStr
+{
+    [MBProgressHUD showMessage:@"" toView:self.view];
+
+    UASNetworkManager *manager1 = [UASNetworkManager manager];
+    manager1.requestSerializer = [AFHTTPRequestSerializer serializer];
+    manager1.responseSerializer = [AFHTTPResponseSerializer serializer];
+    
+    NSString *url = [NSString stringWithFormat:@"%@common/getMultiNodeAssigns.action?caller=%@&id=%@&sessionId=%@&master=%@&sessionUser=%@",g_id,@"CancelPlan",idStr,g_sessionId,g_master,g_sessionUser];
+
+    url = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
+    
+    [manager1 request:url method:GET parameters:nil progress:nil success:^(NSURLSessionDataTask *task, id responseObject) {
+        
+        [MBProgressHUD hideHUDForView:self.view];
+        
+        NSData *data = responseObject;
+        
+        NSMutableArray *dataArray = [[NSMutableArray alloc]init];
+        
+        id rootDic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
+        
+        NSString *idString = @"";
+        
+        for (id obj in rootDic[@"assigns"])
+        {
+            for (id obk in obj[@"JP_CANDIDATES"]) {
+                
+                [dataArray addObject:obk];
+            }
+            
+            NSString * str = [NSString stringWithFormat:@"%@",obj[@"JP_NODEID"]];
+            idString = str;
+            
+        }
+        
+        if (dataArray.count == 0) {
+            [self backAction];
+            
+        }else
+        {
+            YPSelectShenPiPersonVC *selectVC = [[YPSelectShenPiPersonVC alloc]init];
+            selectVC.dataArr = dataArray;
+            selectVC.backID = idString;
+            selectVC.master = @"";
+            //选择审批人之后的回调,跳转详情页
+            selectVC.block = ^{
+                [self backAction];
+            };
+            [self.navigationController pushViewController:selectVC animated:YES];
+        }
+        
+    } failure:^(NSURLSessionDataTask *task, NSError *error) {
+        
+        [MBProgressHUD hideHUDForView:self.view];
+        
+        DLog(@"什么错误呀==%@",error);
+    }];
+}
+
 #pragma mark --- 自动获取文本高度
 - (CGSize)getSizeWithText:(NSString *)text
 {

+ 1 - 1
shiku_im/shiku_im/文件夹1/设备管理/viewcontellers/搜索/LYYDMDataSearchVC.m

@@ -126,7 +126,7 @@ static NSString * cellID = @"cellID";
     searchBar.delegate = self;
     searchBar.returnKeyType = UIReturnKeySearch;
     searchBar.tintColor = Color(69, 92, 255, 1);
-    searchBar.searchTextField.backgroundColor = BGKJ_COLOR;
+//    searchBar.searchTextField.backgroundColor = BGKJ_COLOR;
     searchBar.backgroundImage = [UIImageView createImageWithColor:BGKJ_COLOR];
     searchBar.layer.cornerRadius = 5;
     searchBar.layer.masksToBounds = YES;

+ 5 - 1
shiku_im/shiku_im/文件夹3/MainView/UserInfo/UASUserInfo.m

@@ -230,5 +230,9 @@
     return _scale;
 }
 
-
+-(void)sonofabitch
+{
+    
+    
+}
 @end