|  | @ -22,6 +22,7 @@ | 
			
		
	
		
		
			
				
					|  |  |             clearable |  |  |             clearable | 
			
		
	
		
		
			
				
					|  |  |             class="resi-cell-select" |  |  |             class="resi-cell-select" | 
			
		
	
		
		
			
				
					|  |  |             @change="handleChangeGrid" |  |  |             @change="handleChangeGrid" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             :disabled="formType === 'edit'" | 
			
		
	
		
		
			
				
					|  |  |             style="width: 250px" |  |  |             style="width: 250px" | 
			
		
	
		
		
			
				
					|  |  |           > |  |  |           > | 
			
		
	
		
		
			
				
					|  |  |             <el-option |  |  |             <el-option | 
			
		
	
	
		
		
			
				
					|  | @ -48,6 +49,7 @@ | 
			
		
	
		
		
			
				
					|  |  |             class="resi-cell-select" |  |  |             class="resi-cell-select" | 
			
		
	
		
		
			
				
					|  |  |             @clear="handleClearVillage" |  |  |             @clear="handleClearVillage" | 
			
		
	
		
		
			
				
					|  |  |             @change="handleChangeV" |  |  |             @change="handleChangeV" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             :disabled="formType === 'edit'" | 
			
		
	
		
		
			
				
					|  |  |             style="margin-right: 8px; width: 120px" |  |  |             style="margin-right: 8px; width: 120px" | 
			
		
	
		
		
			
				
					|  |  |           > |  |  |           > | 
			
		
	
		
		
			
				
					|  |  |             <el-option |  |  |             <el-option | 
			
		
	
	
		
		
			
				
					|  | @ -65,7 +67,7 @@ | 
			
		
	
		
		
			
				
					|  |  |             clearable |  |  |             clearable | 
			
		
	
		
		
			
				
					|  |  |             style="margin-right: 8px; width: 120px" |  |  |             style="margin-right: 8px; width: 120px" | 
			
		
	
		
		
			
				
					|  |  |             class="resi-cell-select" |  |  |             class="resi-cell-select" | 
			
		
	
		
		
			
				
					
					|  |  |             :disabled="changeVDisabled" |  |  |             :disabled="changeVDisabled || formType === 'edit'" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             @clear="handleClearBuild" |  |  |             @clear="handleClearBuild" | 
			
		
	
		
		
			
				
					|  |  |             @change="handleChangeB" |  |  |             @change="handleChangeB" | 
			
		
	
		
		
			
				
					|  |  |           > |  |  |           > | 
			
		
	
	
		
		
			
				
					|  | @ -79,7 +81,7 @@ | 
			
		
	
		
		
			
				
					|  |  |           </el-select> |  |  |           </el-select> | 
			
		
	
		
		
			
				
					|  |  |           <el-select |  |  |           <el-select | 
			
		
	
		
		
			
				
					|  |  |             v-model.trim="fmData.unitId" |  |  |             v-model.trim="fmData.unitId" | 
			
		
	
		
		
			
				
					
					|  |  |             :disabled="changeBDisabled" |  |  |             :disabled="changeBDisabled || formType === 'edit'" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             placeholder="单元" |  |  |             placeholder="单元" | 
			
		
	
		
		
			
				
					|  |  |             size="small" |  |  |             size="small" | 
			
		
	
		
		
			
				
					|  |  |             clearable |  |  |             clearable | 
			
		
	
	
		
		
			
				
					|  | @ -98,7 +100,7 @@ | 
			
		
	
		
		
			
				
					|  |  |           </el-select> |  |  |           </el-select> | 
			
		
	
		
		
			
				
					|  |  |           <el-select |  |  |           <el-select | 
			
		
	
		
		
			
				
					|  |  |             v-model.trim="fmData.homeId" |  |  |             v-model.trim="fmData.homeId" | 
			
		
	
		
		
			
				
					
					|  |  |             :disabled="changeDDisabled" |  |  |             :disabled="changeDDisabled || formType === 'edit'" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             placeholder="房号" |  |  |             placeholder="房号" | 
			
		
	
		
		
			
				
					|  |  |             size="small" |  |  |             size="small" | 
			
		
	
		
		
			
				
					|  |  |             clearable |  |  |             clearable | 
			
		
	
	
		
		
			
				
					|  | @ -128,17 +130,23 @@ | 
			
		
	
		
		
			
				
					|  |  |             show-word-limit |  |  |             show-word-limit | 
			
		
	
		
		
			
				
					|  |  |             style="width: 200px; margin-right: 20px" |  |  |             style="width: 200px; margin-right: 20px" | 
			
		
	
		
		
			
				
					|  |  |             placeholder="请输入姓名	" |  |  |             placeholder="请输入姓名	" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             :disabled="formType === 'edit'" | 
			
		
	
		
		
			
				
					|  |  |             v-model="fmData.name" |  |  |             v-model="fmData.name" | 
			
		
	
		
		
			
				
					|  |  |           > |  |  |           > | 
			
		
	
		
		
			
				
					|  |  |           </el-input> |  |  |           </el-input> | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |           <el-checkbox v-model="fmData.isWelfare" true-label="1" false-label="0" |  |  |           <el-checkbox | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |             v-model="fmData.isWelfare" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             :disabled="formType === 'edit'" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             true-label="1" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             false-label="0" | 
			
		
	
		
		
			
				
					|  |  |             >享受福利</el-checkbox |  |  |             >享受福利</el-checkbox | 
			
		
	
		
		
			
				
					|  |  |           > |  |  |           > | 
			
		
	
		
		
			
				
					|  |  |           <el-checkbox |  |  |           <el-checkbox | 
			
		
	
		
		
			
				
					|  |  |             v-model="fmData.isCheck" |  |  |             v-model="fmData.isCheck" | 
			
		
	
		
		
			
				
					|  |  |             true-label="1" |  |  |             true-label="1" | 
			
		
	
		
		
			
				
					|  |  |             false-label="0" |  |  |             false-label="0" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             :disabled="formType === 'edit'" | 
			
		
	
		
		
			
				
					|  |  |             @change="checkResiAvailable" |  |  |             @change="checkResiAvailable" | 
			
		
	
		
		
			
				
					|  |  |             >补充居民信息</el-checkbox |  |  |             >补充居民信息</el-checkbox | 
			
		
	
		
		
			
				
					|  |  |           > |  |  |           > | 
			
		
	
	
		
		
			
				
					|  | @ -157,6 +165,7 @@ | 
			
		
	
		
		
			
				
					|  |  |             show-word-limit |  |  |             show-word-limit | 
			
		
	
		
		
			
				
					|  |  |             placeholder="请输入手机号	" |  |  |             placeholder="请输入手机号	" | 
			
		
	
		
		
			
				
					|  |  |             v-model="fmData.mobile" |  |  |             v-model="fmData.mobile" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             :disabled="formType === 'edit'" | 
			
		
	
		
		
			
				
					|  |  |           > |  |  |           > | 
			
		
	
		
		
			
				
					|  |  |           </el-input> |  |  |           </el-input> | 
			
		
	
		
		
			
				
					|  |  |         </el-form-item> |  |  |         </el-form-item> | 
			
		
	
	
		
		
			
				
					|  | @ -172,6 +181,7 @@ | 
			
		
	
		
		
			
				
					|  |  |             placeholder="请输入身份证号" |  |  |             placeholder="请输入身份证号" | 
			
		
	
		
		
			
				
					|  |  |             v-model="fmData.idCard" |  |  |             v-model="fmData.idCard" | 
			
		
	
		
		
			
				
					|  |  |             @blur="handleBlurId" |  |  |             @blur="handleBlurId" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             :disabled="formType === 'edit'" | 
			
		
	
		
		
			
				
					|  |  |           ></el-input> |  |  |           ></el-input> | 
			
		
	
		
		
			
				
					|  |  |         </el-form-item> |  |  |         </el-form-item> | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | @ -188,6 +198,7 @@ | 
			
		
	
		
		
			
				
					|  |  |             clearable |  |  |             clearable | 
			
		
	
		
		
			
				
					|  |  |             style="width: 120px" |  |  |             style="width: 120px" | 
			
		
	
		
		
			
				
					|  |  |             class="resi-cell-select" |  |  |             class="resi-cell-select" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             :disabled="formType === 'edit'" | 
			
		
	
		
		
			
				
					|  |  |           > |  |  |           > | 
			
		
	
		
		
			
				
					|  |  |             <el-option |  |  |             <el-option | 
			
		
	
		
		
			
				
					|  |  |               v-for="item in optionsGender" |  |  |               v-for="item in optionsGender" | 
			
		
	
	
		
		
			
				
					|  | @ -210,6 +221,7 @@ | 
			
		
	
		
		
			
				
					|  |  |             type="date" |  |  |             type="date" | 
			
		
	
		
		
			
				
					|  |  |             placeholder="出生日期" |  |  |             placeholder="出生日期" | 
			
		
	
		
		
			
				
					|  |  |             value-format="yyyy-MM-dd" |  |  |             value-format="yyyy-MM-dd" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             :disabled="formType === 'edit'" | 
			
		
	
		
		
			
				
					|  |  |           > |  |  |           > | 
			
		
	
		
		
			
				
					|  |  |           </el-date-picker> |  |  |           </el-date-picker> | 
			
		
	
		
		
			
				
					|  |  |         </el-form-item> |  |  |         </el-form-item> | 
			
		
	
	
		
		
			
				
					|  | @ -386,6 +398,7 @@ function iniFmData() { | 
			
		
	
		
		
			
				
					|  |  |     idCard: "", |  |  |     idCard: "", | 
			
		
	
		
		
			
				
					|  |  |     isWelfare: "0", //福利0否,1是 |  |  |     isWelfare: "0", //福利0否,1是 | 
			
		
	
		
		
			
				
					|  |  |     isCheck: "0", |  |  |     isCheck: "0", | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     isReplace: "0", | 
			
		
	
		
		
			
				
					|  |  |     gender: "", |  |  |     gender: "", | 
			
		
	
		
		
			
				
					|  |  |     birthplace: "", |  |  |     birthplace: "", | 
			
		
	
		
		
			
				
					|  |  |     father: "", |  |  |     father: "", | 
			
		
	
	
		
		
			
				
					|  | @ -410,6 +423,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |       optionsH: [], |  |  |       optionsH: [], | 
			
		
	
		
		
			
				
					|  |  |       optionsD: [], |  |  |       optionsD: [], | 
			
		
	
		
		
			
				
					|  |  |       optionsG: [], |  |  |       optionsG: [], | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       optionsRelation: [], | 
			
		
	
		
		
			
				
					|  |  |       optionsGender: [ |  |  |       optionsGender: [ | 
			
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
		
		
			
				
					|  |  |           value: "1", |  |  |           value: "1", | 
			
		
	
	
		
		
			
				
					|  | @ -420,9 +434,9 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |           label: "女", |  |  |           label: "女", | 
			
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  |       ], |  |  |       ], | 
			
		
	
		
		
			
				
					|  |  |       optionsRelation: [], |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |       fmData: iniFmData(), |  |  |       fmData: iniFmData(), | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       checkResult: {}, | 
			
		
	
		
		
			
				
					|  |  |     }; |  |  |     }; | 
			
		
	
		
		
			
				
					|  |  |   }, |  |  |   }, | 
			
		
	
		
		
			
				
					|  |  |   components: {}, |  |  |   components: {}, | 
			
		
	
	
		
		
			
				
					|  | @ -490,6 +504,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |           } |  |  |           } | 
			
		
	
		
		
			
				
					|  |  |         ); |  |  |         ); | 
			
		
	
		
		
			
				
					|  |  |         if (code === 0) { |  |  |         if (code === 0) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           this.checkResult = data; | 
			
		
	
		
		
			
				
					|  |  |           if (!data.moveInstatus) { |  |  |           if (!data.moveInstatus) { | 
			
		
	
		
		
			
				
					|  |  |             this.$message({ |  |  |             this.$message({ | 
			
		
	
		
		
			
				
					|  |  |               type: "error", |  |  |               type: "error", | 
			
		
	
	
		
		
			
				
					|  | @ -566,11 +581,10 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |             return this.$message.error(res.msg); |  |  |             return this.$message.error(res.msg); | 
			
		
	
		
		
			
				
					|  |  |           } else { |  |  |           } else { | 
			
		
	
		
		
			
				
					|  |  |             console.log("获取查询详情成功", res.data); |  |  |             console.log("获取查询详情成功", res.data); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             if (res.data) { | 
			
		
	
		
		
			
				
					|  |  |               this.optionsRelation = res.data; |  |  |               this.optionsRelation = res.data; | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |         }) |  |  |           } | 
			
				
				
			
		
	
		
		
			
				
					|  |  |         .catch(() => { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           return this.$message.error("网络错误"); |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  |         }); |  |  |         }); | 
			
		
	
		
		
			
				
					|  |  |     }, |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | @ -682,9 +696,6 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |               this.alreadyHaveMaster = false; |  |  |               this.alreadyHaveMaster = false; | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |           } |  |  |           } | 
			
		
	
		
		
			
				
					|  |  |         }) |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         .catch(() => { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           return this.$message.error("网络错误"); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         }); |  |  |         }); | 
			
		
	
		
		
			
				
					|  |  |     }, |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | @ -696,14 +707,18 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |       if (row) { |  |  |       if (row) { | 
			
		
	
		
		
			
				
					|  |  |         // this.fmData = { ...this.fmData, ...row }; |  |  |         // this.fmData = { ...this.fmData, ...row }; | 
			
		
	
		
		
			
				
					|  |  |         this.getInfo(row.id); |  |  |         this.getInfo(row.id); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         this.getValiheList(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         this.getBuildList(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         this.getUniList(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         this.getHouseList(); | 
			
		
	
		
		
			
				
					|  |  |       } |  |  |       } | 
			
		
	
		
		
			
				
					|  |  |     }, |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     async getInfo(id) { |  |  |     async getInfo(id) { | 
			
		
	
		
		
			
				
					|  |  |       const { data, code, msg } = await requestPost( |  |  |       const { data, code, msg } = await requestPost( | 
			
		
	
		
		
			
				
					
					|  |  |         "/epmetuser/icBirthRecord", |  |  |         "/epmetuser/icBirthRecord/" + id, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |           id, |  |  |           // id, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |       ); |  |  |       ); | 
			
		
	
		
		
			
				
					|  |  |       if (code === 0) { |  |  |       if (code === 0) { | 
			
		
	
	
		
		
			
				
					|  | @ -738,13 +753,37 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |       let url = ""; |  |  |       let url = ""; | 
			
		
	
		
		
			
				
					|  |  |       if (this.formType === "add") { |  |  |       if (this.formType === "add") { | 
			
		
	
		
		
			
				
					|  |  |         url = "/epmetuser/icBirthRecord/save"; |  |  |         url = "/epmetuser/icBirthRecord/save"; | 
			
		
	
		
		
			
				
					
					|  |  |       } else { |  |  |       } else if (this.formType === "edit") { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         url = "/epmetuser/icBirthRecord/update"; |  |  |         url = "/epmetuser/icBirthRecord/update"; | 
			
		
	
		
		
			
				
					
					|  |  | 
 |  |  |       } else { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         this.fmData.orgId = this.orgId; |  |  |         return; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       const { fmData, checkResult } = this; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       if ( | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         fmData.isCheck == "1" && | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         checkResult.resiHomeId != fmData.homeId && | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         checkResult.status == "0" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       ) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         await this.$confirm( | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           "居民信息中房屋信息与当前选择房屋不一致,是否更新?", | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           "提示", | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             confirmButtonText: "更新", | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             cancelButtonText: "不更新", | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             type: "warning", | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             center: true, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         ) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           .then(() => { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             this.fmData.isReplace = "1"; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           }) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           .catch(() => { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             this.fmData.isReplace = "0"; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           }); | 
			
		
	
		
		
			
				
					|  |  |       } |  |  |       } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |       const { data, code, msg } = await requestPost(url, this.fmData); |  |  |       const { data, code, msg } = await requestPost(url, fmData); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |       if (code === 0) { |  |  |       if (code === 0) { | 
			
		
	
		
		
			
				
					|  |  |         this.$message({ |  |  |         this.$message({ | 
			
		
	
	
		
		
			
				
					|  | @ -765,7 +804,11 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |       this.$emit("dialogCancle"); |  |  |       this.$emit("dialogCancle"); | 
			
		
	
		
		
			
				
					|  |  |     }, |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  |     resetData() { |  |  |     resetData() { | 
			
		
	
		
		
			
				
					
					|  |  |       this.orgId = ""; |  |  |       this.checkResult = {}; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |       this.optionsB = []; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       this.optionsH = []; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       this.optionsD = []; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       this.optionsRelation = []; | 
			
		
	
		
		
			
				
					|  |  |       this.fmData = iniFmData(); |  |  |       this.fmData = iniFmData(); | 
			
		
	
		
		
			
				
					|  |  |     }, |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  |     // 开启加载动画 |  |  |     // 开启加载动画 | 
			
		
	
	
		
		
			
				
					|  | 
 |