Browse Source

康复管理bug

yht2016 5 years ago
parent
commit
981db39dd6

+ 12 - 0
api/rehabilitation-api.js

@ -34,6 +34,10 @@
		saveRehabilitationOperateRecord:function(data){
			return httpRequest.post('doctor/specialist/rehabilitation/saveRehabilitationOperateRecord',{data:data})
		},
		// 服务项关联计划
		updateRelationCodeByDetailId:function(data){
			return httpRequest.post('doctor/specialist/rehabilitation/updateRelationCodeByDetailId',{data:data})
		},
		// 康复服务套餐管理-获取康复服务套餐模板列表
		findTemplateList:function(data){
			return httpRequest.get("doctor/specialist/rehabilitationPlan/findTemplateList",{data:data})
@ -109,6 +113,10 @@
		selectPlanByPatient: function(data){
			return httpRequest.get("doctor/specialist/rehabilitation/selectPlanByPatient", {data: data})
		},
		// 获取康复计划列表
		selectPlanServerDoctor: function(data){
			return httpRequest.post("doctor/specialist/rehabilitation/selectPlanServerDoctor", {data: data})
		},
		// 获取专科团队
		getSpecialistTeamList: function(data){
			return httpRequest.get("doctor/specialist/getSpecialistTeamList", {data: data})
@ -140,6 +148,10 @@
		// 居民未与扫描的二维码团队对应
		createPatientInSpeciaRelation: function(data){
			return httpRequest.post("doctor/specialist/createPatientInSpeciaRelation", {data: data})
		},
		// 获取居民签约的专科团队
		findPatientTeamList: function(data){
			return httpRequest.get("doctor/specialist/findPatientTeamList", {data: data})
		}
	}
    exports.rehaAPI = rehaAPI;

+ 5 - 13
app/recover/html/new_recover.html

@ -981,15 +981,6 @@
                	addMuban: function(oId) {
						var vm = this
						var templateId = oId||''
						if(!this.adviceContent){
							vm.showAdviceContentTip = true
							showWarningMessage("请输入康复建议!")
                			return false;
						}
						if(vm.medicalRecordsList.length==0){
							showWarningMessage("请选择住院病历!")
                			return false;
						}
						vm.newPlan(templateId)
                	},
                	// 取消计划
@ -1150,16 +1141,17 @@
                	},
                	createRehabilitationPlan: function() {
						var vm = this
                		if(!this.havePlan) {
                			showWarningMessage("请选择计划时间!")
                			return false;
						}
						if(!this.adviceContent){
							vm.showAdviceContentTip = true
							showWarningMessage("请输入康复建议!")
                			return false;
						}
						if(vm.medicalRecordsList.length==0){
							showWarningMessage("请选择住院病历!")
                			return false;
						}
						if(!this.havePlan) {
                			showWarningMessage("请选择计划时间!")
                			return false;
						}
						var codeArr=[];

+ 33 - 17
app/recover/html/personal-manage.html

@ -19,49 +19,49 @@
    				<div class="clearfix">
	    				<div class="fl w-100-66">
	    					<p class="m0 p0 mb10">
	    						<span class="c-999">姓名:</span>{{recoverPatInfo.patientInfo.patientName}}
	    						<span class="c-999 ml20">性别:</span>{{recoverPatInfo.patientInfo.sex == 1 ? "男" : "女"}}
	    						<span class="c-999 ml20">年龄:</span>{{recoverPatInfo.patientInfo.age}}岁
	    						<span class="c-999">姓名:</span>{{recoverPatInfo.patientInfo&&recoverPatInfo.patientInfo.patientName?recoverPatInfo.patientInfo.patientName:''}}
	    						<span class="c-999 ml20">性别:</span>{{recoverPatInfo.patientInfo&&recoverPatInfo.patientInfo.sex == 1 ? "男" : "女"}}
	    						<span class="c-999 ml20">年龄:</span>{{recoverPatInfo.patientInfo&&recoverPatInfo.patientInfo.age?recoverPatInfo.patientInfo.age:0}}岁
	    					</p>
	    					<p class="m0 p0 mb10">
	    						<span class="c-999">健康情况:</span>{{recoverPatInfo.patientInfo.healthyCondition}}
	    						<span class="c-999">健康情况:</span>{{recoverPatInfo.patientInfo&&recoverPatInfo.patientInfo.healthyCondition?recoverPatInfo.patientInfo.healthyCondition:''}}
	    					</p>
	    					<p class="m0 p0 mb10">
	    						<span class="c-999">联系电话:</span><span class="c-12b7f5 cur-pit" v-if="isMobile" @click="changeStatu()">点击查看</span><span v-else>{{recoverPatInfo.patientInfo.mobile}}</span>
	    						<span class="c-999">联系电话:</span><span class="c-12b7f5 cur-pit" v-if="isMobile" @click="changeStatu()">点击查看</span><span v-else>{{recoverPatInfo.patientInfo&&recoverPatInfo.patientInfo.mobile?recoverPatInfo.patientInfo.mobile:''}}</span>
	    					</p>
	    				</div>
	    				<div class="fr set-photo">
	    					<img :src="setPatImg(recoverPatInfo.patientInfo.photo)" alt="居民头像" />
	    					<img :src="setPatImg(recoverPatInfo.patientInfo&&recoverPatInfo.patientInfo.photo?recoverPatInfo.patientInfo.photo:'')" alt="居民头像" />
	    				</div>
    				</div>
    				<p class="m0 p0 mb10">
						<span class="c-999">签约社区:</span>{{recoverPatInfo.patientInfo.signHospitalName}}
						<span class="c-999">签约社区:</span>{{recoverPatInfo.patientInfo&&recoverPatInfo.patientInfo.signHospitalName?recoverPatInfo.patientInfo.signHospitalName:''}}
					</p>
					<p class="m0 p0">
						<span class="c-999">康复机构:</span>{{recoverPatInfo.patientInfo.rehabilitationOrg}}
						<span class="c-999">康复机构:</span>{{recoverPatInfo.patientInfo&&recoverPatInfo.patientInfo.rehabilitationOrg?recoverPatInfo.patientInfo.rehabilitationOrg:''}}
					</p>
    			</div>
    			<h4 class="m0 pl15 lh40 c-border-b c-position-r"><em class="c-position-a set-blue-span"></em>服务医生</h4>
    			<!--<div class="pt10 pb10" style="overflow: hidden; height: 190px;">-->
    			<div class="pt10 pb10 ui-col-0" style="overflow: hidden; height: 190px;">
	    			<ul class="p0 m0 c-h100" style="overflow: auto;">
	    				<li class="clearfix plr20 ptb10 doc-li" v-for="(docInfo, index) in recoverPatInfo.serviceDoctorList" :key="index">
	    				<li class="clearfix plr20 ptb10 doc-li" v-for="(docInfo, index) in docList" :key="index">
	    					<div class="fl set-photo">
	    						<img :src="setPatImg(docInfo.doctorPhoto, 1)" alt="医生头像" />
	    						<img :src="setPatImg(docInfo.photo, 1)" alt="医生头像" />
	    					</div>
	    					<div class="fl ml10 lh18">
	    						<p class="m0 p0 c-f16">{{docInfo.doctorName}}</p>
	    						<p class="m0 p0 mt10 c-999">{{docInfo.type}}</p>
	    						<p class="m0 p0 c-f16">{{docInfo.name}}</p>
	    						<p class="m0 p0 mt10 c-999">{{docInfo.levelName}}</p>
	    					</div>
	    					<div class="fr w100 ml40 lh18">
	    					<!-- <div class="fr w100 ml40 lh18">
	    						<p class="m0 p0">完成项目:<span class="c-orange">{{docInfo.finishedItem}}</span></p>
	    						<p class="m0 p0 mt10">服务次数:<span class="c-orange">{{docInfo.serviceCount}}</span></p>
	    					</div>
	    					</div> -->
	    				</li>
	    			</ul>
    			</div>
				<h4 class="m0 pl15 lh40 c-border-b c-position-r"><em class="c-position-a set-blue-span"></em>康复建议</h4>
				<textarea placeholder="此处内容是康复建议" readonly class="m0 p10 c-333 mt10 bg-f5f5fa" style="outline: 0;height: 200px;border: 1px solid rgb(225, 225, 225); resize: none;">{{recentRecoverDetail.adviceContent}}</textarea>
				<textarea placeholder="此处内容是康复建议" readonly class="m0 p10 c-333 mt10 bg-f5f5fa" style="outline: 0;height: 200px;border: 1px solid rgb(225, 225, 225); resize: none;">{{recentRecoverDetail?recentRecoverDetail.adviceContent:''}}</textarea>
				<!-- <ul class="m0 p0 ptb10 ui-col-1 c-border b-r-3 c-h100 mt10" style="overflow: auto;">
					<li class="pt5 plr10" v-for="(info, index) in diagnosisInformation" :key="index">
						<p class="c-999 ptb10 clearfix" style="line-height: 20px;">
@ -78,10 +78,10 @@
				<div>
					<div v-for="(o, i) in medicalRecordsList" class="flex vc c-f14 c-border plr10 ptb5 link-control mt10">
						<span class="c-666 mr15">
							{{formatter(o.admissionTime)}}
							{{o&&o.admissionTime?formatter(o.admissionTime):''}}
						</span>
						<div class="flex1 c-12b7f5 ellipsis-1">
							{{o.hospitalName}}
							{{o&&o.hospitalName?o.hospitalName:''}}
						</div>
					</div>
				</div>
@ -350,6 +350,7 @@
					recentRecoverDetail: undefined,
					medicalRecordsList: [], // 住院病历列表
					limitlessItems: [], // 不限频次服务项列表
					docList: []
                },
                mounted: function() {
					this.patientRehabilitationDetail()
@ -362,6 +363,20 @@
                	this.getBodyRecoredLast()
                },
                methods: {
					// 获取服务医生列表
					selectPlanServerDoctor: function(id){
						var vm = this,
						params = {
							planId: id
						}
						rehaAPI.selectPlanServerDoctor(params).then(function(res){
							if(res.status==200){
								vm.docList = res.data
							}else{
								layer.msg(res.msg,{icon:5});
							}
						})
					},
                	changeStatu: function() {
                		this.isMobile = false
                	},
@ -462,6 +477,7 @@
									vm.planList = res.data
									vm.selectByMedicalCode(list[0].medicalRecordsCode)
									vm.calendarPlanDetailItems(list[0].id)
									vm.selectPlanServerDoctor(vm.recentRecoverDetail.id)
								}
							} else {
								showErrorMessage(res.msg);

+ 2 - 0
app/rehabilitation/css/guide_the_message.css

@ -40,6 +40,8 @@
.service-address{border-bottom: 1px solid #d7dce6;}
.btn-yuyue{background-color: #02cfb9;color: #fff;}
.btn-yuyue:hover,.btn-yuyue:link{color: #fff;background-color: #01c1ad;}
.btn-12b7f5{color: #fff;background-color: #12b7f5;}
.btn-12b7f5:hover,.btn-12b7f5:link{color: #fff;background-color: #12b7f5;}
.btn-disabled{background-color: #eee;color: #999;}
.btn-disabled:hover, .btn-disabled:link{background-color: #eee;color: #999;}
.btn-fuwuma{background-color: #2dbe55;color: #fff;}

+ 2 - 0
app/rehabilitation/css/service_item_content.css

@ -53,6 +53,8 @@
.service-address{border-bottom: 1px solid #d7dce6;}
.btn-yuyue{background-color: #02cfb9;color: #fff;}
.btn-yuyue:hover,.btn-yuyue:link{color: #fff;background-color: #01c1ad;}
.btn-12b7f5{color: #fff;background-color: #12b7f5;}
.btn-12b7f5:hover,.btn-12b7f5:link{color: #fff;background-color: #12b7f5;}
.btn-disabled{background-color: #eee;color: #999;}
.btn-disabled:hover, .btn-disabled:link{background-color: #eee;color: #999;}
.btn-fuwuma{background-color: #2dbe55;color: #fff;}

+ 15 - 12
app/rehabilitation/html/addRecoveryDown.html

@ -211,7 +211,7 @@
									vm.patientInfo = res.data[0]
									vm.getPatientLabelInfo()
									// 获取签约专科信息
									vm.findPatientSignSpecialistInfo()
									vm.findPatientTeamList()
								} else {
									vm.patientInfo = undefined
									vm.emptyText = '患者暂未家签,请先提醒患者完成家庭医生签约'
@ -314,21 +314,24 @@
							}
						})
					},
					//判断居民是否签约专科医生
					findPatientSignSpecialistInfo: function() {
					// 获取居民签约的专科团队
					findPatientTeamList: function(){
						var vm = this,
						params = {
							patient: vm.patientInfo.patient,
							doctor: docInfo.code
							patient: vm.patientInfo.patient
						}
						recoverApi.findPatientSignSpecialistInfo(params).then(function(res){
						rehaAPI.findPatientTeamList(params).then(function(res){
							if(res.status == 200) {
								if(res.data.teamCode){
									if(res.data.teamCode==vm.curTeamInfo.id){  //签约团队与二维码团队一致
										vm.is_sign_specialist = true
									}else{
										vm.is_sign_specialist = false
								var num = 0
								$.each(res.data, function(index,item){
									if(item.teamCode==vm.curTeamInfo.id){  //签约团队与二维码团队一致
										num++
									}
								})
								if(num>0){
									vm.is_sign_specialist = true
								} else {
									vm.is_sign_specialist = false
								}
							} else {
								showErrorMessage(res.msg)
@ -443,7 +446,7 @@
							layer.close(loading);
							if(res.status==200){
								layer.confirm('康复下转基本信息保存成功,请为患者创建康复计划', { btn: ['创建康复计划', '取消'], title: "康复下转" }, function (index) {
									window.location.href="./new_recover.html?patient="+vm.patientInfo.patient + '&teamCode='+vm.curTeamInfo.id
									window.location.href="../../recover/html/new_recover.html?patient="+vm.patientInfo.patient + '&teamCode='+vm.curTeamInfo.id
								})
							}else{
								showErrorMessage(res.msg)

+ 3 - 2
app/rehabilitation/html/guide_the_message.html

@ -77,8 +77,9 @@
						<!-- <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>
						<button class="btn btn-yuyue" v-if="service.type==6 && service.status!=1 && service.isMyTask==1"  @click="sfjh()" style="width: auto">创建随访计划</button>
						<button class="btn btn-yuyue" v-if="service.type==6 && service.status==1" @click="qwapp" style="width: auto">查看随访结果</button>
						<button class="btn btn-yuyue" v-if="service.type==6 && service.status!=1 && service.isMyTask==1 && service.operate==0"  @click="sfjh()" style="width: auto">创建随访计划</button>
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.status!=1 && service.isMyTask==1 && service.operate==1" @click="qwapp" style="width: auto">记录随访表单</button>
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.status==1" @click="qwapp" style="width: auto">查看随访结果</button>
						<button class="btn btn-yuyue" v-if="service.type==7 && service.status!=1 && service.isMyTask==1 && service.isZK" @click="sendSpecialistWeixinMessage(7)">提醒患者</button>
						<button class="btn btn-disabled" v-if="service.type==7 && service.status!=1 && service.isMyTask==1 && !service.isZK" @click="qwapp">代预约</button>
						<!-- <button class="btn btn-yuyue" v-if="service.type==5 && service.status!=1 && service.isMyTask==1" @click="jkjy(service.patient,service.planDetaiId)">健康教育</button> -->  

+ 2 - 2
app/rehabilitation/html/health_control.html

@ -41,7 +41,7 @@
                        </div>
                    </div>
                </div>
                <div class="dataCell form-group listform-sel-bor" style="margin-left:20px;">
                <!-- <div class="dataCell form-group listform-sel-bor" style="margin-left:20px;">
                    <div class="w160 inline c-vam">
                        <div class="input-group">
                            <input id="Status" placeholder="请选择安排类型" type="text" class="form-control" name="Status" readonly="readonly">
@ -54,7 +54,7 @@
                            </div>
                        </div>
                    </div>
                </div>
                </div> -->
                <div class="c-ser-div">
                    <div class="c-ser-main">

+ 7 - 7
app/rehabilitation/html/rehabilitation_management.html

@ -124,16 +124,16 @@
						</div>
						<div class="ui-grid pt15" v-for="(doc, index) in docList" :key="index">
							<div class="ui-col-0 ml30 mr21">
								<img :src="setImgSrc(doc.doctorPhoto)" width="40" class="c-images-cycle">
								<img :src="setImgSrc(doc.photo)" width="40" class="c-images-cycle">
							</div>
							<div class="ui-col-0" style="width: 150px;">
								<div class="c-f16 c-333">{{doc.doctorName}}</div>
								<div class="c-f14 c-999">{{doc.type}}</div>
								<div class="c-f16 c-333">{{doc.name}}</div>
								<div class="c-f14 c-999">{{doc.levelName}}</div>
							</div>
							<div class="ui-col-1" style="width: 200px;">
							<!-- <div class="ui-col-1" style="width: 200px;">
								<div class="c-f14 c-333">完成项目:<span class="c-f14 c-ff9630">{{doc.finishedItem}}</span></div>
								<div class="c-f14 c-333">服务次数:<span class="c-f14 c-ff9630">{{doc.serviceCount}}</span></div>
							</div>
							</div> -->
						</div>
						<div class="ui-grid c-border-b lh30 mt15">
							<div class="ui-col-0 div-line"></div>
@ -161,10 +161,10 @@
						<div>
							<div v-for="(o, i) in medicalRecordsList" class="w-row flex vc c-f14 c-border plr10 ptb5 link-control mt10">
								<span class="c-666 mr15">
									{{formatter(o.admissionTime)}}
									{{o&&o.admissionTime?formatter(o.admissionTime):''}}
								</span>
								<div class="flex1 c-12b7f5 ellipsis-1">
									{{o.hospitalName}}
									{{o&&o.hospitalName?o.hospitalName:''}}
								</div>
							</div>
						</div>

+ 3 - 2
app/rehabilitation/html/service_item_content.html

@ -73,8 +73,9 @@
							<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>
							<button class="btn btn-yuyue" v-if="service.itemType==6 && service.status!=1 && service.isMyTask==1" @click="sfjh(service.planDetaiId)" style="width: auto">创建随访计划</button>
							<button class="btn btn-yuyue" v-if="service.itemType==6 && service.status==1" @click="qwapp" style="width: auto">查看随访结果</button>
							<button class="btn btn-yuyue" v-if="service.itemType==6 && service.status!=1 && service.isMyTask==1 && service.operate==0" @click="sfjh(service.planDetaiId)" style="width: auto">创建随访计划</button>
							<button class="btn btn-12b7f5" v-if="service.itemType==6 && service.status!=1 && service.isMyTask==1 && service.operate==1" @click="qwapp" style="width: auto">记录随访表单</button>
							<button class="btn btn-12b7f5" v-if="service.itemType==6 && service.status==1" @click="qwapp" style="width: auto">查看随访结果</button>
							<button class="btn btn-yuyue" v-if="service.itemType==7 && service.status!=1 && service.isMyTask==1 && service.isZK" @click="sendSpecialistWeixinMessage(service.planDetaiId,7)">提醒患者</button>
							<button class="btn btn-disabled" v-if="service.itemType==7 && service.status!=1 && service.isMyTask==1 && !service.isZK" @click="qwapp">代预约</button>
							<!-- <button class="btn btn-yuyue" v-if="service.itemType==5 && service.status!=1 && service.isMyTask==1" @click="jkjy(service.patient,service.planDetaiId)">健康教育</button> -->  

+ 20 - 16
app/rehabilitation/html/signZkTeam.html

@ -91,12 +91,12 @@
							socket.emit('login', {userId: docInfo.code, password: docInfo.code,sessionId:sessionId,clientType:"doctor"});
							socket.on('message', function (data) {
								var content=JSON.parse(data.content)
								vm.dialogShow(content)
								setTimeout(function(){
									vm.qrModal=false;
								},1000/60)
								if(content.teamCode){
									vm.dialogShow(content)
								}else{
									layer.alert('居民签约授权失败,请重新扫描下转二维码或选择手动下转', {icon: 5, title: '授权失败'});
								}
							});
					
							socket.on('error', function (data) {
								console.log(data);
							});
@ -117,7 +117,7 @@
								btn: ['确定', '取消'],
								title: "提示"
							}, function (index) {
								vm.findPatientSignSpecialistInfo(data)
								vm.findPatientTeamList(data)
								layer.close(current); //再执行关闭
							})
						} else {
@ -150,21 +150,24 @@
                            }
                        });
					},
					//判断居民是否签约专科医生
					findPatientSignSpecialistInfo: function(data) {
					// 获取居民签约的专科团队
					findPatientTeamList: function(data){
						var vm = this,
						params = {
							patient: data.patient_code,
							doctor: docInfo.code
							patient: data.patient_code
						}
						recoverApi.findPatientSignSpecialistInfo(params).then(function(res){
						rehaAPI.findPatientTeamList(params).then(function(res){
							if(res.status == 200) {
								if(res.data.teamCode){
									if(res.data.teamCode==vm.teamInfo.id){  //签约团队与二维码团队一致
										top.addRecoveryDownVue.isSignSpecialist(true, data.idcard)
									}else{
										vm.createPatientInSpeciaRelation(data)
								var num=0;
								$.each(res.data, function(index,item){
									if(item.teamCode==vm.teamInfo.id){  //签约团队与二维码团队一致
										num++
									}
								})
								if(num>0){//签约团队与二维码团队一致
									top.addRecoveryDownVue.isSignSpecialist(true, data.idcard)
								} else {
									vm.createPatientInSpeciaRelation(data)
								}
							} else {
								showErrorMessage(res.msg)
@ -185,6 +188,7 @@
							if(res.data&&res.data.status == 200) {
								top.addRecoveryDownVue.isSignSpecialist(true, data.idcard)
							} else {
								top.addRecoveryDownVue.isSignSpecialist(false)
								showErrorMessage(res.msg);
							}
						})

+ 22 - 10
app/rehabilitation/js/guide_the_message.js

@ -5,7 +5,7 @@ function closeGuidancePreview(){
	layer.close(previewLayerIndex)
}
function closeFollowUpLayer(planDetaiId, relationCode){
	top.rehabilitationGuideVue.updateNoteAndImageRehabilitationOperate(planDetaiId, relationCode)
	top.rehabilitationGuideVue.saveRehabilitationOperateRecord(planDetaiId, 6, relationCode)
	layer.close(followupLayerIndex)
}
function closeKFZDlayer(planDetaiId){
@ -308,19 +308,14 @@ top.rehabilitationGuideVue = new Vue({
			var vm = this;
			vm.saveRehabilitationOperateRecord(vm.planid,type);
		},
		saveRehabilitationOperateRecord:function(planDetailId,type){
			var vm=this, _type;
			if(type==1){
				_type = 8 // 上传附件
			} else {
				_type = type
			}
		saveRehabilitationOperateRecord:function(planDetailId, type, relationCode){
			var vm=this;
			var params={
				rehabilitationDetailId: vm.planid,
				rehabilitationDetailId: planDetailId,
				node: null,
				patientCode: vm.patient,
				doctorCode: docInfo.code,
				relationRecordType: _type,
				relationRecordType: type,
				relationRecordCode: '',
				relationRecordImg: null,
				status: 0
@ -329,6 +324,8 @@ top.rehabilitationGuideVue = new Vue({
				if(res.status==200){
					if(type==1){
						vm.uploadImg(vm.upImgArr);
					}else if(type==6){
						vm.updateRelationCodeByDetailId(planDetailId, relationCode)
					} else {
						vm.updateNoteAndImageRehabilitationOperate(planDetailId)
					}
@ -389,6 +386,21 @@ top.rehabilitationGuideVue = new Vue({
				}
			})
		},
		updateRelationCodeByDetailId: function(planDetailId, relationCode){
			var vm = this
			var params = {
				planDetailId: planDetailId,
				relationCode: relationCode,
			}
			rehaAPI.updateRelationCodeByDetailId(params).then(function(res) {
				if(res.status == 200) {
					vm.getServiceItem();
					top.rehabilitationVue.refresh()
				} else {
					showErrorMessage(res.msg)
				}
			})
		},
		viewDetial:function(type,code){
			var vm=this;
			if(type == 3) {

+ 16 - 1
app/rehabilitation/js/rehabilitation_management.js

@ -83,7 +83,8 @@
				this.tabStatus=1;
			}
			this.planSchedule();
			this.serviceDoctorList();//获取服务医生列表
			// this.serviceDoctorList();//获取服务医生列表
			this.selectPlanServerDoctor();//获取服务医生列表
			this.bindEvents();
			// 获取最新的诊疗信息1条
			this.findDiagnosisInformationByPlanId()
@ -94,6 +95,20 @@
				this.planSchedule();
				this.timeAxis();
			},
			// 获取服务医生列表
			selectPlanServerDoctor: function(){
				var vm = this,
				params = {
					planId: vm.planId
				}
				rehaAPI.selectPlanServerDoctor(params).then(function(res){
					if(res.status==200){
						vm.docList = res.data
					}else{
			        	layer.msg(res.msg,{icon:5});
			        }
				})
			},
			//获取计划表
			planSchedule:function(){
				var vm = this;

+ 26 - 3
app/rehabilitation/js/service_item_content.js

@ -6,7 +6,7 @@ function closeGuidancePreview(){
	layer.close(previewLayerIndex)
}
function closeFollowUpLayer(planDetaiId, relationCode){
	top.serviceItemVue.saveRehabilitationOperateRecord(planDetaiId, relationCode)
	top.serviceItemVue.saveRehabilitationOperateRecord(planDetaiId, 6, relationCode)
	layer.close(followupLayerIndex)
}
function closeKFZDlayer(planDetaiId){
@ -257,7 +257,7 @@ methods:{
			}
		});
	},
	saveRehabilitationOperateRecord:function(planDetailId, type){
	saveRehabilitationOperateRecord:function(planDetailId, type, relationCode){
		var vm=this;
		var params={
			rehabilitationDetailId: planDetailId,
@ -271,7 +271,13 @@ methods:{
		}
		rehaAPI.saveRehabilitationOperateRecord({dataJson:JSON.stringify(params)}).then(function(res){
			if(res.status==200){
				vm.updateNoteAndImageRehabilitationOperate(planDetailId)
				if(type==6){
					vm.updateRelationCodeByDetailId(planDetailId, relationCode)
				} else {
					vm.updateNoteAndImageRehabilitationOperate(planDetailId)
				}
			}else {
				showErrorMessage(res.msg)
			}
		})
		
@ -298,6 +304,23 @@ methods:{
			if(res.status == 200) {
				vm.getServiceItemList();
				top.rehabilitationVue.refresh()
			}else {
				showErrorMessage(res.msg)
			}
		})
	},
	updateRelationCodeByDetailId: function(planDetailId, relationCode){
		var vm = this
		var params = {
			planDetailId: planDetailId,
			relationCode: relationCode,
		}
		rehaAPI.updateRelationCodeByDetailId(params).then(function(res) {
			if(res.status == 200) {
				vm.getServiceItemList();
				top.rehabilitationVue.refresh()
			} else {
				showErrorMessage(res.msg)
			}
		})
	},