zouling 2 miesięcy temu
rodzic
commit
d395e099cf

+ 1 - 0
user_ui/health/pages/health/add.vue

@@ -465,6 +465,7 @@
 							}
 							}
 						})
 						})
 					}else{
 					}else{
+						params.isFilter=false
 						residentInfoPut(params).then(res=>{
 						residentInfoPut(params).then(res=>{
 							if(res.code==200){
 							if(res.code==200){
 								this.$toast("修改成功")
 								this.$toast("修改成功")

+ 4 - 2
user_ui/mine/pages/info/authen.vue

@@ -200,11 +200,13 @@
 				var that=this;
 				var that=this;
 				var info=JSON.parse(JSON.stringify(data))
 				var info=JSON.parse(JSON.stringify(data))
 				var params={
 				var params={
-					staffId:info.staffId,
+					residentId:info.residentId,
 					userId:info.userId,
 					userId:info.userId,
 					tenantId:info.tenantId,
 					tenantId:info.tenantId,
+					houseId:info.houseId,
+					examine:info.examine
 				}
 				}
-				residentInfoDel(params).then(res=>{
+				residentInfoDel(info.residentId).then(res=>{
 					if(res.code==200){
 					if(res.code==200){
 						this.$toast("删除成功");
 						this.$toast("删除成功");
 						setTimeout(function(){
 						setTimeout(function(){

+ 13 - 3
user_ui/mine/pages/info/authenadd.vue

@@ -32,7 +32,7 @@
 						      keyName="dictValue"
 						      keyName="dictValue"
 							  :valuea="datainfo.tenantId"
 							  :valuea="datainfo.tenantId"
 							  :chosevalue="tenantName?tenantName:statusFormats(datainfo.tenantId,voList,'tenant')"
 							  :chosevalue="tenantName?tenantName:statusFormats(datainfo.tenantId,voList,'tenant')"
-							  :isdisabled="(ptype=='edit'&&datainfo.examine!='3')?true:false"
+							  :isdisabled="(ptype=='edit'&&datainfo.examine=='2')?true:false"
 							  :filterable="filterable"
 							  :filterable="filterable"
 						      @change='getchangea'
 						      @change='getchangea'
 						    >
 						    >
@@ -48,6 +48,7 @@
 							      keyName="dictValue"
 							      keyName="dictValue"
 								  :valuea="datainfo.houseId"
 								  :valuea="datainfo.houseId"
 								  :chosevalue="datainfo.detailedAddress"
 								  :chosevalue="datainfo.detailedAddress"
+								:isdisabled="(ptype=='edit'&&datainfo.examine=='2')?true:false"
 								  :filterable='filterable'
 								  :filterable='filterable'
 							      @change='getchange'
 							      @change='getchange'
 							    >
 							    >
@@ -320,7 +321,7 @@
 					"residentName":null,//居住人员姓名
 					"residentName":null,//居住人员姓名
 					"residentPhone":null,//人员手机号
 					"residentPhone":null,//人员手机号
 					"houseInfoRedidentList":[],//用户房屋信息集合
 					"houseInfoRedidentList":[],//用户房屋信息集合
-					"houseId":null,//关联房屋信息表的house_id
+					"houseId":'',//关联房屋信息表的house_id
 					"residentRelationship":null,//居住人员与户主的关系,如父子、夫妻等
 					"residentRelationship":null,//居住人员与户主的关系,如父子、夫妻等
 					"isHouseholder":null,//是否是户主 N不是 Y是
 					"isHouseholder":null,//是否是户主 N不是 Y是
 					
 					
@@ -516,6 +517,11 @@
 				var tenantId=this.datainfo.tenantId;
 				var tenantId=this.datainfo.tenantId;
 				this.datainfo.tenantId=e.dictValue;
 				this.datainfo.tenantId=e.dictValue;
 				this.houserinfo.communityName=e.dictLabel;
 				this.houserinfo.communityName=e.dictLabel;
+				this.datainfo.houseId="";
+				this.datainfo.detailedAddress='';
+				this.houserinfo.detailedAddress='';
+				this.houserinfo.houseId="";
+				this.houserinfo.location='';
 				// 业主或租户
 				// 业主或租户
 				this.listNoPageTenant(e.dictValue)
 				this.listNoPageTenant(e.dictValue)
 			},
 			},
@@ -744,6 +750,10 @@
 						this.$toast('请选择小区名称')
 						this.$toast('请选择小区名称')
 						return
 						return
 					}
 					}
+					if((params.residentType==1||params.residentType==2)&&!params.houseId){
+						this.$toast('请选择房屋号')
+						return
+					}
 					if(params.residentType==1&&params.isHouseholder=='Y'){
 					if(params.residentType==1&&params.isHouseholder=='Y'){
 						var houserinfo=JSON.parse(JSON.stringify(this.houserinfo))
 						var houserinfo=JSON.parse(JSON.stringify(this.houserinfo))
 						if(!houserinfo.location){
 						if(!houserinfo.location){
@@ -764,7 +774,7 @@
 						params.houseInfoRedidentList=JSON.parse(JSON.stringify(newarr))
 						params.houseInfoRedidentList=JSON.parse(JSON.stringify(newarr))
 					}
 					}
 					if(params.residentType==2){
 					if(params.residentType==2){
-						params.isTenant='Y'
+						params.isTenant='Y';
 					}else{
 					}else{
 						params.isTenant=''
 						params.isTenant=''
 					}
 					}