yht2016 5 years ago
parent
commit
ceb9b3a00a
1 changed files with 35 additions and 11 deletions
  1. 35 11
      app/recover/html/new_recover.html

+ 35 - 11
app/recover/html/new_recover.html

@ -390,7 +390,9 @@
					medicalRecordsList: [],
					docInfo: JSON.parse(window.localStorage.getItem('docInfo')),
					showAdviceContentTip: false,
					curMedicalRecordsIndex: -1
					curMedicalRecordsIndex: -1,
					diseaseCodeArr: [],
					diseaseNameArr: []
				},
				watch: {
					adviceContent: function(){
@ -420,8 +422,6 @@
					if(httpData.teamCode){
						this.teamCode = httpData.teamCode
						this.findTemplateList()
					} else {
						this.teamCode = docInfo.teamCode
					}
                },
                methods: {
@ -583,6 +583,28 @@
						vm.subsidiaryInfo.data.admissionDiagnosis = $('#department').find('input').val()
						vm.subsidiaryInfo.data.dischargeDiagnosis = $('#dischargeDiagnosis').find('input').val()
					},
					// 获取居民标签(健康情况、疾病类型、自定义分组)
					getPatientLabelInfo: function(){
						var vm = this,
							loading = layer.load(0, {shade: false})
						var params = {
							patient: this.pati.patient
						}
						rehaAPI.getPatientLabelInfo(params).then(function(res){
							layer.close(loading)
							if(res.status == 200) {
								var healthLabel = res.data['healthLabel']||[], 
									diseaseLabel = res.data['diseaseServer']||[], 
									customLabel = res.data['customLabel']||[];
								$.each(diseaseLabel, function(index, item){
									vm.diseaseCodeArr.push(item.disease)
									vm.diseaseNameArr.push(item.diseaseName)
								})
							} else {
								showErrorMessage(res.msg);
							}
						})
					},
					// 编辑康复建议
					editAdviceTextarea: function(){
						this.isEdit = !this.isEdit
@ -629,6 +651,11 @@
									code: vm.patiInfo.ssDoctorHealth || vm.patiInfo.jtDoctorHealth,
									hospitalName: vm.patiInfo.jtHospitalName
								})
								// 获取居民标签
								vm.getPatientLabelInfo()
								if(!vm.teamCode){
									vm.findPatientSignSpecialistInfo()
								}
							} else {
								showErrorMessage(res.msg);
							}
@ -644,12 +671,7 @@
						recoverAPI.findPatientSignSpecialistInfo(params).then(function(res) {
							if(res.status == 200) {
								vm.pati.teamCode = res.data.teamCode
								// vm.jDlist.push({
								// 	name: res.data.doctorName,
								// 	code: res.data.doctor
								// })
								vm.teamCode = res.data.teamCode
								vm.specialistTeam(res.data.teamCode)
							} else {
								showErrorMessage(res.msg);
@ -1163,14 +1185,16 @@
							patient: this.pati.patient,
							name: this.pati.patientName,
							title: this.pati.patientName + "的康复计划",
							// disease: this.diseaseObj.diseaseCode,
							// diseaseName: this.diseaseObj.diseaseName,
							disease: this.diseaseCodeArr.join(','),
							diseaseName: this.diseaseNameArr.join(','),
							planType: this.labelCode || 1,
							payment: 2,
							totalExpense: this.allFee || 0,
							adviceContent: this.adviceContent,
							medicalRecordsCode: codeArr.join(','),
							detail: []
							teamCode: vm.teamCode,
							detail: [],
							
						};
						$.each(vm.templateDetail, function(index, o) {
							if(o.code=='2'||o.code=='3'){