|  | @ -122,7 +122,7 @@
 | 
	
		
			
				|  |  | 		      				<button class="btn btn-yuyue" v-if="service.itemType==3 && service.operate!=1" @click="zwkf">健康指导</button>
 | 
	
		
			
				|  |  | 		      				<button class="btn btn-yuyue" v-if="service.itemType==4 && service.operate!=1" @click="zwkf">随访</button>
 | 
	
		
			
				|  |  | 		      				<button class="btn btn-zhidao" @click="zdly(service)">指导留言</button>
 | 
	
		
			
				|  |  | 		      				<button class="btn btn-fuwuma" v-if="service.itemType==1 && service.operate!=1" @click="fwm(service.planDetaiId)">服务码</button>
 | 
	
		
			
				|  |  | 		      				<button class="btn btn-fuwuma" v-if="service.itemType==1 && service.operate!=1" @click="fwm(service.planDetaiId,service.patient)">服务码</button>
 | 
	
		
			
				|  |  | 		      				<!--<button class="btn btn-fuwuma" @click="fwm(service.planDetaiId)">服务码</button>-->
 | 
	
		
			
				|  |  | 		      				<button class="btn btn-fuwuma" v-if="service.operate==1" @click="goToFinish(service.planDetaiId)">完成</button>
 | 
	
		
			
				|  |  | 		      			</div>
 | 
	
	
		
			
				|  | @ -215,8 +215,8 @@
 | 
	
		
			
				|  |  | 							  content: '../../rehabilitation/html/guide_the_message.html?planid='+planid
 | 
	
		
			
				|  |  | 							});
 | 
	
		
			
				|  |  | 						},
 | 
	
		
			
				|  |  | 						fwm:function(planid){
 | 
	
		
			
				|  |  | 							this.loadSocket(planid);
 | 
	
		
			
				|  |  | 						fwm:function(planid,patient){
 | 
	
		
			
				|  |  | 							this.loadSocket(planid,patient);
 | 
	
		
			
				|  |  | 						},
 | 
	
		
			
				|  |  | 						zdly:function(data){
 | 
	
		
			
				|  |  | 							var vm = this
 | 
	
	
		
			
				|  | @ -247,7 +247,7 @@
 | 
	
		
			
				|  |  | 						    }
 | 
	
		
			
				|  |  | 							});
 | 
	
		
			
				|  |  | 						},
 | 
	
		
			
				|  |  | 						loadSocket:function(planid){
 | 
	
		
			
				|  |  | 						loadSocket:function(planid,patient){
 | 
	
		
			
				|  |  | 							var vm=this;
 | 
	
		
			
				|  |  | 							var imurl=httpRequest.socketUrl;
 | 
	
		
			
				|  |  | 						    jQuery.getScript(imurl+"/socket.io/socket.io.js").done(function() {
 | 
	
	
		
			
				|  | @ -258,7 +258,7 @@
 | 
	
		
			
				|  |  | 						        socket.on('message', function (data) {
 | 
	
		
			
				|  |  | 						      		console.log(data);
 | 
	
		
			
				|  |  | 						      		if(data.type==0){
 | 
	
		
			
				|  |  | 						      			vm.checkAfterQrCode(planid);
 | 
	
		
			
				|  |  | 						      			vm.checkAfterQrCode(planid,patient);
 | 
	
		
			
				|  |  | 						      		}
 | 
	
		
			
				|  |  | 						        });
 | 
	
		
			
				|  |  | 						
 | 
	
	
		
			
				|  | @ -278,8 +278,12 @@
 | 
	
		
			
				|  |  | 						        top.layer.msg('服务码创建失败',{icon:5});    
 | 
	
		
			
				|  |  | 						    });
 | 
	
		
			
				|  |  | 						},
 | 
	
		
			
				|  |  | 						checkAfterQrCode:function(planid){
 | 
	
		
			
				|  |  | 						checkAfterQrCode:function(planid,patient){
 | 
	
		
			
				|  |  | 							var vm=this;
 | 
	
		
			
				|  |  | 							var params={
 | 
	
		
			
				|  |  | 								planDetailId:planid,
 | 
	
		
			
				|  |  | 								patientCode: patient
 | 
	
		
			
				|  |  | 							}
 | 
	
		
			
				|  |  | 							rehaAPI.checkAfterQrCode(params).then(function(res){
 | 
	
		
			
				|  |  | 								var icon=5;
 | 
	
		
			
				|  |  | 								if(data.status==200){
 | 
	
	
		
			
				|  | @ -293,9 +297,10 @@
 | 
	
		
			
				|  |  | 						},
 | 
	
		
			
				|  |  | 						getQRCode:function(planid){
 | 
	
		
			
				|  |  | 							var vm=this;
 | 
	
		
			
				|  |  | 							var loginDoctor = JSON.parse(window.localStorage.getItem('wlyyAgent'));
 | 
	
		
			
				|  |  | 							var params={
 | 
	
		
			
				|  |  | 								planDetailId:planid,
 | 
	
		
			
				|  |  | 								sessionId: 'system'
 | 
	
		
			
				|  |  | 								doctorCode: loginDoctor.uid
 | 
	
		
			
				|  |  | 							}
 | 
	
		
			
				|  |  | 							rehaAPI.createServiceQrCode(params).then(function(res){
 | 
	
		
			
				|  |  | 								console.log(res);
 |