Explorar o código

服务项编辑页面

yht2016 %!s(int64=5) %!d(string=hai) anos
pai
achega
f8f6053c9c
Modificáronse 1 ficheiros con 38 adicións e 2 borrados
  1. 38 2
      app/recover/html/new_recover.html

+ 38 - 2
app/recover/html/new_recover.html

@ -368,24 +368,29 @@
					teamCode: httpData['teamCode'],
					isEditConfig: httpData['isEditConfig']||false,
					planId: httpData['planId'],
					planInfo: {},
					planDetailId: httpData['planDetailId'],
					service:{
						relationRecordImg:{},
						messageList:{},
					},
					patient: httpData.patient || undefined
				},
                mounted: function() {
                	this.selectFrequencys()
                	if(httpData.patient) {
                	if(this.patient) {
                		this.isPlan = false
                		this.allFee = 0
                		this.templateDetail = []
						this.pati = {patient: httpData.patient}
						this.pati = {patient: this.patient}
                		this.getPatientInfo()
					} 
					if(this.teamCode){
						this.findTemplateList()
					}
					if(this.planId){
						this.planSchedule()
					}
                },
				watch: {
					adviceContent: function(){
@ -448,6 +453,37 @@
							}
						})
					},
					//获取计划表
					planSchedule:function(){
						var vm = this;
						var  params = {
							planId: this.planId,
							patientCode: this.patient
						};
						rehaAPI.planSchedule(params).then(function(res){
							if(res.status == 200){
								vm.planInfo = res.data;
								vm.adviceContent = vm.planInfo.adviceContent
								vm.selectByMedicalCode(res.data.medicalRecordsCode)
							}else{
								showErrorMessage(res.msg)
							}
						})
					},
					// 获取住院病历列表
					selectByMedicalCode: function(medicalRecordsCode){
						var vm = this;
						var  params = {
							medical: medicalRecordsCode
						};
						rehaAPI.selectByMedicalCode(params).then(function(res){
							if(res.status==200){
								vm.medicalRecordsList = res.data
							}else {
								showErrorMessage(res.msg);
							}
						})
					},
					// 添加住院病历
					addMedicalRecords: function(){
						var vm = this