Browse Source

康复项目指导留言 专科对全科

chenyue 4 years ago
parent
commit
166328fcc3

+ 23 - 9
app/rehabilitation/js/service_item_content.js

@ -364,17 +364,31 @@ methods:{
		var otherCode,otherName;
		var planDetailId='';
		
		if(data.specialistDoctorCode==data.executeDoctorCode){
			layer.msg('无法与自己聊天',{icon:5}); 
			return ;
		}
		if(data.isMyTask==1){
			otherCode=data.specialistDoctorCode;
			otherName=data.specialistDoctorName;
//		if(data.specialistDoctorCode==data.executeDoctorCode){
//			layer.msg('无法与自己聊天',{icon:5}); 
//			return ;
//		}
		if(docInfo.doctorType==1){
			if(docInfo.uid == data.specialistDoctorCode) {
				//当前医生为创建计划的专科医生,与全科医生聊天
				otherCode = data.familyDoctorCode;
				otherName = data.familyDoctorName;
			}else {
				//当前医生为专科,当前医生不是创建计划的专科医生,没反应
				return false
			}
		}else{
			otherCode=data.executeDoctorCode;
			otherName=data.executeDoctorCode;
			//全科医生与专科医生聊天
			otherCode = data.specialistDoctorCode;
			name = data.specialistDoctorName;
		}
//		if(data.isMyTask==1){
//			otherCode=data.specialistDoctorCode;
//			otherName=data.specialistDoctorName;
//		}else{
//			otherCode=data.executeDoctorCode;
//			otherName=data.executeDoctorCode;
//		}
		planDetailId=data.planDetaiId;
		layer.open({
			type: 2,

+ 8 - 2
component/rehabilitation/server-items-detail.js

@ -750,8 +750,14 @@ Vue.component('server-items-detail', {
			var otherCode, otherName;
			var planDetailId = vm.plandetailid;
			if(vm.docInfo.doctorType == 1) {
				otherCode = data.familyDoctorCode;
				otherName = data.familyDoctorName;
				if(docInfo.uid == data.specialistDoctorCode) {
					//当前医生为创建计划的专科医生,与全科医生聊天
					otherCode = data.familyDoctorCode;
					otherName = data.familyDoctorName;
				}else {
					//当前医生为专科,当前医生不是创建计划的专科医生,没反应
					return false
				}
			} else {
				otherCode = data.specialistDoctorCode;
				otherName = data.specialistDoctorName;