Browse Source

发送文章无法添加纪录问题,原因是接口名字 写错 导致失败

yingzhou 6 years ago
parent
commit
1298c5473c

+ 1 - 1
api/rehabilitation-api.js

@ -32,7 +32,7 @@
		},
//		新增operateRecodr
		saveRehabilitationOperateRecord:function(data){
			return httpRequest.post('doctor/specialist/rehabilitation/saveRehabilitationOperateRecodr',{data:data})
			return httpRequest.post('doctor/specialist/rehabilitation/saveRehabilitationOperateRecord',{data:data})
		},
		
		

+ 5 - 5
app/article/html/article.html

@ -296,9 +296,9 @@
			            jbscAPI.doctorSendArticleToPatients(obj).then(function(res){
			            	top.layer.close(loadding);
			            	if(res.status==10000){
			            		console.log(vm.isReha)
			            		if(vm.isReha){
			            			console.log(obj.articleId)
			            			vm.saveRehabilitationOperateRecodr(obj.articleId);
			            			vm.saveRehabilitationOperateRecord(obj.articleId);
			            		}else{			            			
			            			vm.updataHeathStatus();
			            		}
@ -307,7 +307,7 @@
			            	}
			            })   
			        },
			        saveRehabilitationOperateRecodr:function(id){
			        saveRehabilitationOperateRecord:function(id){
			        	var vm=this;
			        	var userInfo = JSON.parse(window.localStorage.getItem(httpRequest.agentName)); 
			        	var params={
@ -320,11 +320,11 @@
							relationRecordImg:null,
							status:0
			        	}
			        	rehaAPI.saveRehabilitationOperateRecodr({dataJson:JSON.stringify(params)}).then(function(res){
			        	rehaAPI.saveRehabilitationOperateRecord({dataJson:JSON.stringify(params)}).then(function(res){
			        		var icon=5;
			        		if(res.status==200){//更新父窗体的状态
			        			icon=1
			        			parent.serviceItem.getServiceItem();
			        			top.serviceItem.getServiceItemList();
			        		}
			        		top.layer.msg(res.msg, {icon: icon});
			        	})

+ 13 - 7
app/rehabilitation/js/service_item_content.js

@ -1,7 +1,7 @@
!function(){
				var httpData=GetRequest();
				var userInfo = JSON.parse(window.localStorage.getItem(httpRequest.agentName));  
				window.serviceItem=new Vue({
		var httpData=GetRequest();
		var userInfo = JSON.parse(window.localStorage.getItem(httpRequest.agentName));  
		top.serviceItem=new Vue({
					el:"#app",
		data:{
			planids:httpData['planids'],
@ -114,10 +114,16 @@
				var vm = this
				var loginDoctor = JSON.parse(window.localStorage.getItem('wlyyAgent'));
				var otherCode,otherName;
				var planDetailId=data.planDetaiId;
				if(loginDoctor.doctorType==1){
					otherCode=data.familyDoctorCode;
					otherName=data.familyDoctorName;
				var planDetailId=undefined;
				
				if(data.specialistDoctorCode==data.executeDoctorCode){
					top.layer.msg('无法与自己聊天',{icon:5}); 
					return ;
				}
				if((data.isMyTask==1) && (loginDoctor.uid==data.specialistDoctorCode)){
					otherCode=data.executeDoctorCode;
					otherName=data.executeDoctorCode;
					planDetailId=data.planDetaiId
				}else{
					otherCode=data.specialistDoctorCode;
					otherName=data.specialistDoctorName;