yht2016 před 5 roky
rodič
revize
2a95511e62

+ 1 - 1
api/rehabilitation-api.js

@ -99,7 +99,7 @@
		},
		// 获取诊断信息
		getIcd10Info: function(data) {
			return httpRequest.get("doctor/prescriptionInfo/getIcd10Info", {data: data})
			return httpRequest.get("doctor/serviceOrder/getIcd10Info", {data: data})
		},
		// 添加住院病历
		createMedicalRecords: function(data) {

+ 2 - 2
app/followup/html/followup_newplan.html

@ -65,7 +65,7 @@
                        <el-form-item label="随访类型:"  :prop="'planList.' + index + '.followupClass'" :rules="{required: true, message: '请选择随访类型', trigger: 'change'}">
                            <el-select v-model="item.followupClass" placeholder="请选择" style="width:220px;">
                                <el-option label="请选择" value=""></el-option>
                                <el-option v-for="(o, i) in followTypeList" :label="o.name" :value="o.code"></el-option>
                                <el-option v-for="(o, i) in followTypeList" :key="i" :label="o.name" :value="o.code"></el-option>
                            </el-select>
                        </el-form-item>
                        </div>            
@ -96,7 +96,7 @@
                        <el-form-item label="随访类型:"  prop="followupClass" :rules="{required: true, message: '请选择随访类型', trigger: 'change'}">
                            <el-select v-model="followUpItem.followupClass" placeholder="请选择随访类型" style="width:220px;">
                            <el-option label="请选择" value=""></el-option>
                            <el-option v-for="(o, i) in followTypeList" :label="o.name" :value="o.code"></el-option>
                            <el-option v-for="(o, i) in followTypeList" :key="i" :label="o.name" :value="o.code"></el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="随访状态:">

+ 1 - 0
app/recover/css/personal-manage.css

@ -7,6 +7,7 @@
.c-2dbe55 {color: #2dbe55;}
.bgc-orange {background-color: #ff9526;}
.bgc-c1c1c1 {background-color: #ebebf5;}
.bd-12b7f5{border-color: #12b7f5 !important}
.lh22 {height: 22px; line-height: 22px;}
.lh30 {height: 30px; line-height: 30px;}
.b-r-11 {border-radius: 11px;}

+ 11 - 6
app/recover/html/personal-manage.html

@ -38,7 +38,7 @@
						<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&&recoverPatInfo.patientInfo.rehabilitationOrg?recoverPatInfo.patientInfo.rehabilitationOrg:''}}
						<span class="c-999">康复机构:</span>{{recoverPatInfo.patientInfo&&recoverPatInfo.patientInfo.rehabilitationOrg&&recoverPatInfo.patientInfo.rehabilitationOrg!="null"?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>
@ -97,7 +97,7 @@
					</div>
					<div class="pb10" style="overflow: hidden; height: 230px;">
						<ul class="p0 plr5 m0 c-h100" style="overflow: auto;">
							<li class="plr5 ptb10 mt10 plan-li cur-pit c-border b-r-3 ui-grid link-control" v-for="(plan, index) in planList" :key="index" @click="jumpPlan(plan)">
							<li class="plr5 ptb10 mt10 plan-li cur-pit c-border b-r-3 ui-grid link-control" :class="{'bd-12b7f5': planId==plan.id}" v-for="(plan, index) in planList" :key="index" @click="jumpPlan(plan)">
								<!-- <div class="ui-col-1">
									<p class="p0 m0 lh22 clearfix">
										<span class="fl">{{plan.planTypeName}}</span>
@ -350,7 +350,8 @@
					recentRecoverDetail: undefined,
					medicalRecordsList: [], // 住院病历列表
					limitlessItems: [], // 不限频次服务项列表
					docList: []
					docList: [],
					planId: httpData['planId']
                },
                mounted: function() {
					this.patientRehabilitationDetail()
@ -473,10 +474,14 @@
							if(res.status == 200) {
								if(res.data&&res.data.length>0){
									var list = res.data
									vm.recentRecoverDetail = list[0]
									$.each(list, function(index, item){
										if(item.id == vm.planId){
											vm.recentRecoverDetail = item
										}
									})
									vm.planList = res.data
									vm.selectByMedicalCode(list[0].medicalRecordsCode)
									vm.calendarPlanDetailItems(list[0].id)
									vm.selectByMedicalCode(vm.recentRecoverDetail.medicalRecordsCode)
									vm.calendarPlanDetailItems(vm.recentRecoverDetail.id)
									vm.selectPlanServerDoctor(vm.recentRecoverDetail.id)
								}
							} else {

+ 1 - 0
app/rehabilitation/html/management.html

@ -28,6 +28,7 @@
		</div>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../plugins/artDialog/6.0.5/js/dialog-plus.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../plugins/layer/layer.min.js"></script>
		<script>
			var EventBus = new Vue();
			Vue.prototype.loading = dialog({contentType:'load', skin:'bk-popup'})

+ 1 - 3
app/rehabilitation/js/health_control.js

@ -292,10 +292,8 @@ layui.use('element', function () {
                            }
                        })
                    } else {
                        showErrorMessage(res.msg);
@ -419,7 +417,7 @@ layui.use('element', function () {
            },
            recoveryPlan:function (data){
                location.href = "../../recover/html/personal-manage.html?patientCode="+data.patientCode
                location.href = "../../recover/html/personal-manage.html?patientCode="+data.patientCode+'&planId='+data.id
                    
            }

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

@ -216,7 +216,7 @@
					layer.closeAll();
					vm.weiXinConfirmClick();
				}).on("click", ".div-patient-home", function() {
					location.href = "../../recover/html/personal-manage.html?patientCode=" + vm.patientCode
					location.href = "../../recover/html/personal-manage.html?patientCode=" + vm.patientCode+'&planId='+vm.planId
				})
			},
			viewDetail:function(planids,status,type){

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

@ -176,6 +176,9 @@ methods:{
				if(vm.serviceData.length>0){
					vm.curDetailId = vm.serviceData[0].planDetaiId
				}
				if(!vm.planId&&vm.serviceData.length>0){
					vm.planId = vm.curDetailId.planId
				}
			}else{
				layer.msg(res.msg,{icon:5});
			}

+ 6 - 1
component/rehabilitation/new-template-form.js

@ -27,8 +27,13 @@ var NewTemplateForm = {
    methods: {
    	save: function() {
    		var vm = this
    		
    		if(vm.name) {
				if(vm.name=='系统模板'){
					layer.msg('不能创建系统模板!', {
						icon: 5
					})
					return false
				}
    			rehaAPI.createTemplate({
	    			doctor: storage.docInfo.code,
	    			title: vm.name

+ 40 - 16
component/rehabilitation/template-items.js

@ -1,3 +1,26 @@
function showSuccessMessage(msg) {
	layer.msg(msg, {
		icon: 1
	})
}
function showErrorMessage(msg) {
	layer.msg(msg, {
		icon: 5
	})
}
function showWarningMessage(msg) {
	layer.msg(msg, {
		icon: 2
	})
}
function showInfoMessage(msg) {
	layer.msg(msg, {
		icon: 6
	})
}
var TemplateItems = {
    template: '<div style="height: 100%;">\
    				<div class="title-name c-f16">\
@ -32,7 +55,7 @@ var TemplateItems = {
						    <img v-if="name!=\'系统模板\'" src="../../../images/qingchu_icon.png" class="item-delete-btn" @click.stop="deleteItem(o, i)"/>\
	    				</div>\
	    			</div>\
	    			<div v-if="name!=\'系统模板\'" class="foot-btns">\
	    			<div class="foot-btns">\
			    		<a class="delete-btn c-t-center mr50" @click="deleteTemplate">\
			    			删除模板\
			    		</a>\
@ -86,6 +109,10 @@ var TemplateItems = {
    	},
    	saveTemplate: function() {
    		var vm = this
			if(this.name=='系统模板'){
				showErrorMessage('不能编辑系统模板!')
				return false
			}
    		vm.loading.showModal()
    		rehaAPI.createTemplateDetail({
    			doctor: storage.docInfo.code,
@ -97,12 +124,12 @@ var TemplateItems = {
    		}).then(function(res) {
    			if(res.status == 200) {
    				vm.loading.close()
    				toastr && toastr.success("保存成功")
					showSuccessMessage('保存成功')
    				EventBus.$emit("refresh-index")
        			vm.$router.replace("/")
    			} else {
    				vm.loading.close()
    				toastr && toastr.error(res.msg)
    				showErrorMessage(res.msg)
    			}
    		}).catch(function(e) {
    			vm.loading.close()
@ -111,34 +138,31 @@ var TemplateItems = {
    	},
    	deleteTemplate: function() {
    		var vm = this
    		
    		var d = dialog({
    			width: 300,
				content: '确定删除该模板?',
				okValue: '确认',
				ok: function () {
			if(this.name=='系统模板'){
				showErrorMessage('不能删除系统模板!')
				return false
			}
			layer.confirm('确定删除该模板?', {
				btn: ['确认','取消'] //按钮
				}, function(){
					vm.loading.showModal()
					rehaAPI.deleteTemplate({
						templateId: vm.templateId
		            }).then(function(res) {
		            	vm.loading.close()
		            	if(res.status == 200) {
		            		toastr && toastr.success("删除成功")
							showSuccessMessage('删除成功')
		            	} else {
		            		toastr && toastr.error(res.msg)
							showErrorMessage(res.msg)
		            	}
        				
        				EventBus.$emit("refresh-index")
        				vm.$router.replace("/")
		        	}).catch(function(e) {
		        		vm.loading.close()
		        		console.error(e)
		        	})
				},
				cancelValue: '取消',
				cancel: function () {}
				}, function(){
			});
			d.showModal();
    	},
    	toDetail: function(o) {
    		var vm = this