Browse Source

获取计划id医嘱小结

linehang 5 years ago
parent
commit
bb3b27f73c

+ 1 - 1
api/recover_api.js

@ -73,7 +73,7 @@
			return httpRequest.post("doctor/specialist/diagnosisInformation/createDiagnosisInformation", {data: data})
		},
		// 根据康复计划id获取诊疗信息
		createDiagnosisInformation: function(data) {
		findDiagnosisInformationByPlanId: function(data) {
			return httpRequest.get("doctor/specialist/diagnosisInformation/findDiagnosisInformationByPlanId", {data: data})
		},
		// 根据居民获取诊疗信息

+ 1 - 1
app/recover/html/personal-manage.html

@ -307,7 +307,7 @@
                		location.href = "new_recover.html?patient=" + httpData.patientCode
                	},
                	jumpPlan: function(plan) {
                		location.href = "../../rehabilitation/html/rehabilitation_management.html?planId=" + plan.planId
                		location.href = "../../rehabilitation/html/rehabilitation_management.html?planId=" + plan.planId + "&patientCode=" + httpData.patientCode
                	},
					lookProject: function(obj) {
						layer.open({

+ 7 - 8
app/rehabilitation/js/rehabilitation_management.js

@ -49,7 +49,7 @@
			this.serviceDoctorList();//获取服务医生列表
			this.bindEvents();
			// 获取最新的诊疗信息1条
            this.findDiagnosisInformationByPatient()
            this.findDiagnosisInformationByPlanId()
		},
		methods:{
			//获取计划表
@ -76,17 +76,16 @@
				})
			},
			// 获取最新的诊疗消息
			findDiagnosisInformationByPatient: function() {
			findDiagnosisInformationByPlanId: function() {
				var vm = this,
					loading = layer.load(0, {shade: false}),params = {
						patient: vm.patientCode || "e040dd6814b648ceb3ba8d8a04f9f22c",
						page: 0,
						size: 1
					loading = layer.load(0, {shade: false}),
					params = {
						planId: vm.planId
					}
				recoverAPI.findDiagnosisInformationByPatient(params).then(function(res) {
				recoverAPI.findDiagnosisInformationByPlanId(params).then(function(res) {
					layer.close(loading)
					if(res.status == 200) {
						vm.diagnosisInformation = res.data.detailModelList[0]
						vm.diagnosisInformation = res.data.detailModelList
					} else {
						showErrorMessage(res.msg);
					}