xuanyan 4 jaren geleden
bovenliggende
commit
00a67eb1d7

+ 1 - 1
pages/myFamily/add/add.vue

@@ -441,7 +441,7 @@ export default {
 		  params['oper_user_type']=0 //操作类型,业主操作
 		  params['sex'] = that.sex;
 		  params['member_id'] = app.globalData.member.id; 
-		
+		  params['operatorName'] = app.globalData.member.name;
 		  params['create_type'] = '0';//申请来源0-小程序添加 1-后台添加  2-后台导入 3-app添加
 		
 		  params['record_type'] = '1'; ///申请的记录类型 0--认证类型 1--新增类型 2--编辑类型

+ 1 - 0
pages/myFamily/comps/apply-card.vue

@@ -82,6 +82,7 @@ export default {
 				tel:item.tel,
 				room_name:item.roomName,
 				type:item.type,
+				user_id: item['userId'],
 				id_card:item.idCard || '',
 				sex:item.sex,
 				nationality:item.nationality,

+ 19 - 13
pages/myFamily/editApplyFamily/editApplyFamily.vue

@@ -293,6 +293,7 @@ export default {
     let tel = options.tel;
     let room_name = options.room_name;
     let type = options.type;
+	this.user_id = options.user_id;
     let nationality = options.nationality;
     let nationalityName = '';
 
@@ -560,20 +561,25 @@ export default {
       params['member_id'] = app.globalData.member.id; //申请来源0-小程序添加 1-后台添加  2-后台导入 3-app添加
 
       params['create_type'] = '0';
+	  params['user_id'] = this.user_id;
       let operation = 'applyUser/editApplyUser';
-      app.globalData.postRequest(params, operation, function (res) {
-        //添加成功
-        if (res.data.result_code == 1) {
-          app.globalData.oneFailHint(res.data.result_msg, function () {
-            uni.navigateBack({
-              delta: 1 // 返回上一级页面。
-
-            });
-          });
-        } else {
-          app.globalData.oneFailHint(res.data.result_msg);
-        }
-      });
+	  this.$http.editFamily(params)
+	  .then(res => {
+		  //添加成功
+		  if (res.data.result_code == 1) {
+		    app.globalData.oneFailHint(res.data.result_msg, function () {
+		      uni.navigateBack({
+		        delta: 1 // 返回上一级页面。
+		  
+		      });
+		    });
+		  } else {
+		    app.globalData.oneFailHint(res.data.result_msg);
+		  }
+	  });
+      // app.globalData.postRequest(params, operation, function (res) {
+        
+      // });
     },
 
     auditBtn(e) {