|  | @ -24,6 +24,21 @@ | 
			
		
	
		
		
			
				
					|  |  |                     v-model="dataForm.buildingName"> |  |  |                     v-model="dataForm.buildingName"> | 
			
		
	
		
		
			
				
					|  |  |           </el-input> |  |  |           </el-input> | 
			
		
	
		
		
			
				
					|  |  |         </el-form-item> |  |  |         </el-form-item> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         <el-form-item label="楼栋编码" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                       prop="coding" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                       label-width="150px" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                       style="display: block"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           <el-input class="item_width_2" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     maxlength="50" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     placeholder="请输入楼栋编码" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     v-model="dataForm.coding"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |            | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           </el-input> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           <el-button style="margin-left: 10px" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                        type="primary" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                        size="small" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                        @click="handleCode">生成</el-button> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         </el-form-item> | 
			
		
	
		
		
			
				
					|  |  |         <el-form-item label="楼栋类型" |  |  |         <el-form-item label="楼栋类型" | 
			
		
	
		
		
			
				
					|  |  |                       prop="type" |  |  |                       prop="type" | 
			
		
	
		
		
			
				
					|  |  |                       label-width="150px" |  |  |                       label-width="150px" | 
			
		
	
	
		
		
			
				
					|  | @ -73,6 +88,16 @@ | 
			
		
	
		
		
			
				
					|  |  |                            :max="9999" |  |  |                            :max="9999" | 
			
		
	
		
		
			
				
					|  |  |                            label="总户数"></el-input-number> |  |  |                            label="总户数"></el-input-number> | 
			
		
	
		
		
			
				
					|  |  |         </el-form-item> |  |  |         </el-form-item> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         <el-form-item label="人口数" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                       style="display: block" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                       prop="realPerson" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                       label-width="150px"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           <el-input-number class="item_width_4" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                            v-model="dataForm.realPerson" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                            :min="0" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                            :max="9999" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                            label="人口数"></el-input-number> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         </el-form-item> | 
			
		
	
		
		
			
				
					|  |  |         <el-form-item label="楼长姓名" |  |  |         <el-form-item label="楼长姓名" | 
			
		
	
		
		
			
				
					|  |  |                       prop="buildingLeaderName" |  |  |                       prop="buildingLeaderName" | 
			
		
	
		
		
			
				
					|  |  |                       label-width="150px" |  |  |                       label-width="150px" | 
			
		
	
	
		
		
			
				
					|  | @ -128,6 +153,16 @@ | 
			
		
	
		
		
			
				
					|  |  |           </div> |  |  |           </div> | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         </el-form-item> |  |  |         </el-form-item> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         <el-form-item label="楼栋地址" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                       prop="coordinatePosition" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                       label-width="150px" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                       style="display: block"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           <!-- <span>{{ dataForm.coordinatePosition }}</span> --> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           <el-input class="item_width_1" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     placeholder="请选择楼栋地址" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     disabled | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     v-model="dataForm.coordinatePosition" /> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         </el-form-item> | 
			
		
	
		
		
			
				
					|  |  |       </el-form> |  |  |       </el-form> | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     </div> |  |  |     </div> | 
			
		
	
	
		
		
			
				
					|  | @ -169,9 +204,13 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |         totalUnitNum: 1,//单元数	 |  |  |         totalUnitNum: 1,//单元数	 | 
			
		
	
		
		
			
				
					|  |  |         totalFloorNum: 0,//层数	 |  |  |         totalFloorNum: 0,//层数	 | 
			
		
	
		
		
			
				
					|  |  |         totalHouseNum: 0,//总户数	 |  |  |         totalHouseNum: 0,//总户数	 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         realPerson: 0,  | 
			
		
	
		
		
			
				
					|  |  |         buildingLeaderName: '',//楼长姓名 |  |  |         buildingLeaderName: '',//楼长姓名 | 
			
		
	
		
		
			
				
					|  |  |         buildingLeaderMobile: '',//楼长电话 |  |  |         buildingLeaderMobile: '',//楼长电话 | 
			
		
	
		
		
			
				
					|  |  |         type: '',//房屋类型 |  |  |         type: '',//房屋类型 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         coordinatePosition: '', | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         sysCoding: '', | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         coding: '', | 
			
		
	
		
		
			
				
					|  |  |         location: '', //坐标位置 |  |  |         location: '', //坐标位置 | 
			
		
	
		
		
			
				
					|  |  |         longitude: '', //经度 |  |  |         longitude: '', //经度 | 
			
		
	
		
		
			
				
					|  |  |         latitude: '' //纬度 |  |  |         latitude: '' //纬度 | 
			
		
	
	
		
		
			
				
					|  | @ -199,7 +238,8 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |       if (row) { |  |  |       if (row) { | 
			
		
	
		
		
			
				
					|  |  |         this.dataForm = JSON.parse(JSON.stringify(row)) |  |  |         this.dataForm = JSON.parse(JSON.stringify(row)) | 
			
		
	
		
		
			
				
					|  |  |         this.buildingId = this.dataForm.buildingId |  |  |         this.buildingId = this.dataForm.buildingId | 
			
		
	
		
		
			
				
					
					|  |  |         this.buildType = this.dataForm.buildingTypeKey |  |  |         // this.buildType = this.dataForm.buildingTypeKey | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |         this.buildType = this.dataForm.type | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         map.setCenter(new TMap.LatLng(this.dataForm.latitude, this.dataForm.longitude)) |  |  |         map.setCenter(new TMap.LatLng(this.dataForm.latitude, this.dataForm.longitude)) | 
			
		
	
		
		
			
				
					|  |  |         this.setMarker(this.dataForm.latitude, this.dataForm.longitude) |  |  |         this.setMarker(this.dataForm.latitude, this.dataForm.longitude) | 
			
		
	
	
		
		
			
				
					|  | @ -226,6 +266,18 @@ export default { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |       }) |  |  |       }) | 
			
		
	
		
		
			
				
					|  |  |     }, |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     async handleCode() { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       const { data, code, msg } = await requestPost( | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         "/gov/org/houseInformation/getBuildingCoding/" + this.dataForm.neighborHoodId); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       console.log('data----', data) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       console.log('code----', code) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       console.log('msg----', msg) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       if (msg == "success" && code == 0) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         this.dataForm.coding = data.coding | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         this.dataForm.sysCoding = data.sysCoding | 
			
		
	
		
		
			
				
					|  |  |  |  |  |          | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       }  | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  |     async addBuild () { |  |  |     async addBuild () { | 
			
		
	
		
		
			
				
					|  |  |       if (this.dataForm.buildingLeaderMobile) { |  |  |       if (this.dataForm.buildingLeaderMobile) { | 
			
		
	
		
		
			
				
					|  |  |         const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //手机号码 |  |  |         const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //手机号码 | 
			
		
	
	
		
		
			
				
					|  | @ -328,12 +380,14 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |           let { data } = result |  |  |           let { data } = result | 
			
		
	
		
		
			
				
					|  |  |           if (Array.isArray(data) && data.length > 0) { |  |  |           if (Array.isArray(data) && data.length > 0) { | 
			
		
	
		
		
			
				
					|  |  |             const { |  |  |             const { | 
			
		
	
		
		
			
				
					
					|  |  |               location: { lat, lng } |  |  |               location: { lat, lng }, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |               address | 
			
		
	
		
		
			
				
					|  |  |             } = data[0] |  |  |             } = data[0] | 
			
		
	
		
		
			
				
					|  |  |             map.setCenter(new TMap.LatLng(lat, lng)) |  |  |             map.setCenter(new TMap.LatLng(lat, lng)) | 
			
		
	
		
		
			
				
					|  |  |             this.setMarker(lat, lng) |  |  |             this.setMarker(lat, lng) | 
			
		
	
		
		
			
				
					|  |  |             this.dataForm.latitude = lat |  |  |             this.dataForm.latitude = lat | 
			
		
	
		
		
			
				
					|  |  |             this.dataForm.longitude = lng |  |  |             this.dataForm.longitude = lng | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             this.dataForm.coordinatePosition = address | 
			
		
	
		
		
			
				
					|  |  |           } else { |  |  |           } else { | 
			
		
	
		
		
			
				
					|  |  |             this.$message.error('未检索到相关位置坐标') |  |  |             this.$message.error('未检索到相关位置坐标') | 
			
		
	
		
		
			
				
					|  |  |           } |  |  |           } | 
			
		
	
	
		
		
			
				
					|  | @ -405,6 +459,9 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |         totalUnitNum: [ |  |  |         totalUnitNum: [ | 
			
		
	
		
		
			
				
					|  |  |           { required: true, message: '单元数不能为空', trigger: 'blur' } |  |  |           { required: true, message: '单元数不能为空', trigger: 'blur' } | 
			
		
	
		
		
			
				
					|  |  |         ], |  |  |         ], | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         coding: [ | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           { required: true, message: '楼栋编码不能为空', trigger: 'blur' } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         ] | 
			
		
	
		
		
			
				
					|  |  |         // totalFloorNum: [ |  |  |         // totalFloorNum: [ | 
			
		
	
		
		
			
				
					|  |  |         //   { required: true, message: '层数不能为空', trigger: 'blur' } |  |  |         //   { required: true, message: '层数不能为空', trigger: 'blur' } | 
			
		
	
		
		
			
				
					|  |  |         // ], |  |  |         // ], | 
			
		
	
	
		
		
			
				
					|  | 
 |