yht2016 5 years ago
parent
commit
dd83c01b3f

+ 43 - 39
app/rehabilitation/html/addRecoveryDown.html

@ -134,6 +134,7 @@
			        },
					patientInfo: undefined,
					searchKey: '',
					allLabel: {},
					customLabel: [],
					diseaseLabel: [],
					healthLabel: [],
@ -150,11 +151,10 @@
				},
				watch: {
					curTeamId: function(){
						var vm = this
						this.getSpecialistPatientLabel(this.curTeamId)
						this.curTeamInfo = this.teamListObj[this.curTeamId]
						if(vm.patientInfo){
							vm.findPatientSignSpecialistInfo()
						}
						vm.patientInfo = undefined
					}
				},
                methods: {
@ -258,12 +258,46 @@
								vm.patientInfo.healthLabel = healthLabel
								vm.patientInfo.diseaseLabel = diseaseLabel
								vm.patientInfo.customLabel = customLabel
								vm.getSpecialistPatientLabel(vm.curTeamId)
								vm.initLabelData()
							} else {
								showErrorMessage(res.msg);
							}
						})
					},
					initLabelData: function(){
						var vm = this
						var dLabel = [], cLabel = [];
						$.each(vm.allLabel['diseaseLabel'], function(index, o){
							o.flag = false
							o.disease = o.code
							o.diseaseName = o.name
							$.each(vm.patientInfo.diseaseLabel, function(index1, o1){
								if(o1.disease == o.code){
									o.flag = true
								}
							})
							dLabel.push(o)
						})
						$.each(vm.allLabel['customLabel'], function(index, o){
							o.flag = false
							o.labelCode = o.labelCode
							o.labelName = o.labelName
							$.each(vm.patientInfo.customLabel, function(index1, o1){
								if(o1.label == o.labelCode){
									o.flag = true
								}else{
									
								}
							})
							if(o.isSystem!=1){
								cLabel.push(o)
							}
						})
						vm.healthLabel = vm.allLabel['healthLabel'] || []
						vm.curHealthStatu = vm.patientInfo.healthLabel&&vm.patientInfo.healthLabel.length>0?vm.patientInfo.healthLabel[0].label:res.data['healthLabel'][0].labelCode
						vm.diseaseLabel = dLabel
						vm.customLabel = cLabel
					},
					// 获取居民标签字典(健康情况、疾病类型、自定义分组)
					getSpecialistPatientLabel: function(teamId){
						var vm = this,
@ -274,37 +308,7 @@
						rehaAPI.getSpecialistPatientLabel(params).then(function(res){
							layer.close(loading)
							if(res.status==200){
								var dLabel = [], cLabel = [];
								$.each(res.data['diseaseLabel'], function(index, o){
									o.flag = false
									o.disease = o.code
									o.diseaseName = o.name
									$.each(vm.patientInfo.diseaseLabel, function(index1, o1){
										if(o1.disease == o.code){
											o.flag = true
										}
									})
									dLabel.push(o)
								})
								$.each(res.data['customLabel'], function(index, o){
									o.flag = false
									o.labelCode = o.labelCode
									o.labelName = o.labelName
									$.each(vm.patientInfo.customLabel, function(index1, o1){
										if(o1.label == o.labelCode){
											o.flag = true
										}else{
											
										}
									})
									if(o.isSystem!=1){
										cLabel.push(o)
									}
								})
								vm.healthLabel = res.data['healthLabel'] || []
								vm.curHealthStatu = vm.patientInfo.healthLabel&&vm.patientInfo.healthLabel.length>0?vm.patientInfo.healthLabel[0].label:res.data['healthLabel'][0].labelCode
								vm.diseaseLabel = dLabel
								vm.customLabel = cLabel
								vm.allLabel = res.data
							}else{
								showErrorMessage(res.msg);
							}
@ -418,10 +422,10 @@
									labelType: o.labelType
								})
							}
							if(num2==vm.customLabel.length){
								showWarningMessage('请选择自定义分组!')
								return false
							}
							// if(num2==vm.customLabel.length){
							// 	showWarningMessage('请选择自定义分组!')
							// 	return false
							// }
						}
						var data = {
							health: health,

+ 1 - 1
app/rehabilitation/html/guide_the_message.html

@ -73,7 +73,7 @@
					<!-- operate: 是否完成任务 0 未完成 1 已完成 isMyTask: 0 不是自己的任务 1是自己的任务 status: 0 未完成 1已完成 2已预约-->
					<!-- planStatus:计划的状态 0 已终止 1进行中 2已完成 -->
					<!-- type: 服务项code 1 电话/短信关怀 2康复咨询 3远程健康监测 4 上门服务 5康复指导 6 康复随访 7 复诊-->
					<div class="flex-box btns-group clearfix" v-if="(service.isMyTask==1 || service.isCreate || service.isCK) && service.planStatus!=0 && service.status!=1">
					<div class="flex-box btns-group clearfix" v-if="service.planStatus!=0">
						<!-- <button class="btn btn-yuyue" v-if="service.type==1 && service.status!=1 && service.isMyTask==1 && oprateType != 1" @click="goToFinish(service.planDetaiId)">确认完成</button> -->
						<button class="btn btn-yuyue" v-if="service.type==4 && service.status!=1 && service.isMyTask==1" @click="sendSpecialistWeixinMessage(4)">提醒患者</button>
						<button class="btn btn-yuyue" v-if="service.type==5 && service.status!=1 && service.isMyTask==1" @click="kfzd()">发送指导</button>

+ 1 - 1
app/rehabilitation/html/service_item_content.html

@ -69,7 +69,7 @@
						  <!-- operate: 是否完成任务 0 未完成 1 已完成 isMyTask: 0 不是自己的任务 1是自己的任务 status: 0 未完成 1已完成 2已预约-->
						  <!-- planStatus:计划的状态 0 已终止 1进行中 2已完成 -->
						  <!-- itemType: 服务项code 1 电话/短信关怀 2康复咨询 3远程健康监测 4 上门服务 5康复指导 6 康复随访 7 复诊-->
		      			<div class="flex-box btns-group clearfix" v-if="(service.isMyTask==1 || service.isCreate || service.isCK) && service.planStatus!=0 && service.status!=1">
		      			<div class="flex-box btns-group clearfix" v-if="service.planStatus!=0">
							<button class="btn btn-yuyue" v-if="service.itemType==1 && service.status!=1 && service.isMyTask==1" @click="goToFinish(service.planDetaiId)">确认完成</button>
							<button class="btn btn-yuyue" v-if="service.itemType==4 && service.status!=1 && service.isMyTask==1" @click="sendSpecialistWeixinMessage(service.planDetaiId,4)">提醒患者</button>
		      				<button class="btn btn-yuyue" v-if="service.itemType==5 && service.status!=1 && service.isMyTask==1" @click="kfzd(service.planDetaiId)">发送指导</button>

+ 1 - 1
app/rehabilitation/js/service_item_content.js

@ -6,7 +6,7 @@ function closeGuidancePreview(){
	layer.close(previewLayerIndex)
}
function closeFollowUpLayer(planDetaiId, relationCode){
	top.serviceItemVue.updateNoteAndImageRehabilitationOperate(planDetaiId, relationCode)
	top.serviceItemVue.saveRehabilitationOperateRecord(planDetaiId, relationCode)
	layer.close(followupLayerIndex)
}
function closeKFZDlayer(planDetaiId){