| 
					
				 | 
			
			
				@@ -140,34 +140,69 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					// 是否支持手动输入条形码  仅飞书小程序(V3.14.0)支持 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					barCodeInput: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					success: (res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						//console.log('111111111111111111', JSON.parse(res.result)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						let lsdata = JSON.parse(res.result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						this.Punchposition = lsdata.position; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						let postdata = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							"buildingId": lsdata.buildingId, //楼宇id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							"storeyId": lsdata.storeyId, //楼层id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							//"houseId": lsdata.buildingId, //房间id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							"position": lsdata.position, //位置信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							"circuitPersonId": this.getuserInfo.id, //巡检人员id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							"circuitTime": getCurrentTime(), //巡检时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							//  "circuitType": this.getuserInfo.circuitType,//巡检类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							"circuitType": '', //巡检类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							"remark": lsdata.remark, //备注 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							//  console.log('000000000000000000',res.result)						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						let lsdata =res.result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						 // console.log('111111111111111111', lsdata.substr(lsdata.indexOf('position')+11,lsdata.indexOf('projectId')-(lsdata.indexOf('position')+14))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						if(lsdata.indexOf('houseId')=='-1'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  console.log('888',) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  //没有房间号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  this.Punchposition = lsdata.substr(lsdata.indexOf('position')+11,lsdata.indexOf('projectId')-(lsdata.indexOf('position')+14)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  let postdata = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"buildingId":lsdata.substr(lsdata.indexOf('buildingId')+12,19), //楼宇id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"storeyId":lsdata.substr(lsdata.indexOf('storeyId')+10,19), //楼层id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"houseId":'', //房间id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"position": this.Punchposition, //位置信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"circuitPersonId": this.getuserInfo.id, //巡检人员id							 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"circuitTime": getCurrentTime(), //巡检时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	//  "circuitType": this.getuserInfo.circuitType,//巡检类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"circuitType": '', //巡检类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"remark": lsdata.substr(lsdata.indexOf('remark')+8,lsdata.indexOf('buildingId')-(lsdata.indexOf('remark')+10)), //备注						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  this.$api.post('/circuitrecord', postdata) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	.then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	//	console.log('99999', res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  		if (res.data.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  			this.$refs.uNotify.success('打卡成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  			this.getDataListtwo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  		} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  			this.$refs.uNotify.error('打卡失败') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  console.log('999',) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  this.Punchposition = lsdata.substr(lsdata.indexOf('position')+11,lsdata.indexOf('projectId')-(lsdata.indexOf('position')+14)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  let postdata = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"buildingId":lsdata.substr(lsdata.indexOf('buildingId')+12,19), //楼宇id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"storeyId":lsdata.substr(lsdata.indexOf('storeyId')+10,19), //楼层id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"houseId":lsdata.substr(lsdata.indexOf('houseId')+9,19), //房间id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"position": this.Punchposition, //位置信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"circuitPersonId": this.getuserInfo.id, //巡检人员id							 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"circuitTime": getCurrentTime(), //巡检时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	//  "circuitType": this.getuserInfo.circuitType,//巡检类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"circuitType": '', //巡检类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	"remark":  lsdata.substr(lsdata.indexOf('remark')+8,lsdata.indexOf('buildingId')-(lsdata.indexOf('remark')+10)), //备注					 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  this.$api.post('/circuitrecord', postdata) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	.then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	//	console.log('99999', res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  		if (res.data.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  			this.$refs.uNotify.success('打卡成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  			this.getDataListtwo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  		} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  			this.$refs.uNotify.error('打卡失败') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							  	})						   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						this.$api.post('/circuitrecord', postdata) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							.then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								console.log('99999', res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								if (res.data.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									this.$refs.uNotify.success('打卡成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									this.getDataListtwo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									this.$refs.uNotify.error('打卡失败') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+													 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					fail: (error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.$refs.uNotify.error(error) 
			 |