yht2016 před 4 roky
rodič
revize
4087f42202

+ 19 - 6
app/followup/js/followup_newplan.js

@ -223,6 +223,7 @@ new Vue({
        },
        //创建随访计划
        addFollowupPlan: function(){
          debugger
          var vm = this  
          this.$refs["form"].validate((valid) => {
            if (valid) {
@ -254,10 +255,15 @@ new Vue({
                  layer.msg(res.msg, {
                    icon: 1
                  })
                  
                  if(res.data&&res.data.length>0){
                    var relationCode = res.data[0].id
                    var relationCodeArr = []
                    $.each(res.data, function(i, o){
                        relationCodeArr.push(o.id)
                    })
                    var flag = 1 ;//标记(1随访2临时随访)
                    window.parent.closeFollowUpLayer(vm.planDetaiId, relationCode, flag)
                    window.parent.closeFollowUpLayer(vm.planDetaiId, relationCodeArr, flag)
                  }
                }else{
                  layer.msg(res.msg, {
@ -298,9 +304,12 @@ new Vue({
                    icon: 1
                  })
                  if(res.data&&res.data.length>0){
                    var relationCode = res.data
                    var relationCodeArr = []
                    $.each(res.data, function(i, o){
                        relationCodeArr.push(o.id)
                    })
                    var flag = 2 ;//标记(1随访2临时随访)
                    window.parent.closeFollowUpLayer(vm.planDetaiId, relationCode, flag)
                    window.parent.closeFollowUpLayer(vm.planDetaiId, relationCodeArr, flag)
                  }
                }else{
                  layer.msg(res.msg, {
@ -358,8 +367,12 @@ new Vue({
                    icon: 1
                  })
                  if(res.data&&res.data.length>0){
                    var relationCode = res.data[0].id
                    window.parent.closeFollowUpLayer(vm.planDetaiId, relationCode)
                    var relationCodeArr = []
                    $.each(res.data, function(i, o){
                        relationCodeArr.push(o.id)
                    })
                    var flag = 3 ;//标记(1随访2临时随访)
                    window.parent.closeFollowUpLayer(vm.planDetaiId, relationCodeArr, flag)
                  }
                }else{
                  layer.msg(res.msg, {

+ 7 - 1
app/rehabilitation/js/guide_the_message.js

@ -5,7 +5,13 @@ function closeGuidancePreview(){
	layer.close(previewLayerIndex)
}
function closeFollowUpLayer(planDetaiId, relationCode){
	top.rehabilitationGuideVue.saveRehabilitationOperateRecord(planDetaiId, 6, relationCode)
	if($.isArray(relationCode)) {
		$.each(relationCode, function(index, item){
			top.rehabilitationGuideVue.saveRehabilitationOperateRecord(planDetaiId, 6, item)
		})
	} else {
		top.rehabilitationGuideVue.saveRehabilitationOperateRecord(planDetaiId, 6, relationCode)
	}
	layer.close(followupLayerIndex)
}
function closeKFZDlayer(planDetaiId){

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

@ -6,7 +6,13 @@ function closeGuidancePreview(){
	layer.close(previewLayerIndex)
}
function closeFollowUpLayer(planDetaiId, relationCode){
	top.serviceItemVue.saveRehabilitationOperateRecord(planDetaiId, 6, relationCode)
	if($.isArray(relationCode)) {
		$.each(relationCode, function(index, item){
			top.serviceItemVue.saveRehabilitationOperateRecord(planDetaiId, 6, item)
		})
	} else {
		top.serviceItemVue.saveRehabilitationOperateRecord(planDetaiId, 6, relationCode)
	}
	layer.close(followupLayerIndex)
}
function closeKFZDlayer(planDetaiId){

+ 8 - 8
component/rehabilitation/server-items-detail.js

@ -30,12 +30,18 @@ function showInfoMessage(msg) {
}
var previewLayerIndex, followupLayerIndex, KFZDlayerIndex;
function closeFollowUpLayer(planDetaiId, relationCode, flag){
	if($.isArray(relationCode)) {
		$.each(relationCode, function(index, item){
			_vm.saveRehabilitationOperateRecord(planDetaiId, 6, item, flag)
		})
	} else {
		_vm.saveRehabilitationOperateRecord(planDetaiId, 6, relationCode, flag)
	}
	layer.close(followupLayerIndex)
	_vm.closeAllLayer('创建随访计划', planDetaiId, 6, relationCode, flag)
}
function closeKFZDlayer(planDetaiId, relationRecordId){
	layer.close(KFZDlayerIndex)
	_vm.closeAllLayer('发送康复指导', planDetaiId, 5, relationRecordId)
	_vm.saveRehabilitationOperateRecord(planDetaiId, 5)
}
function closeKFZD(){
	layer.close(KFZDlayerIndex)
@ -296,12 +302,6 @@ Vue.component('server-items-detail', {
		closeAllLayer: function(name, planDetaiId, type, relationCode, flag){
			if(name=='预览康复指导'){
				layer.close()
			} else if(name=='创建随访计划'){
				this.saveRehabilitationOperateRecord(planDetaiId, type, relationCode, flag)
				
			} else if(name=='发送康复指导'){
				this.saveRehabilitationOperateRecord(planDetaiId, type)
				
			}
		},
		// 提醒患者 num 1康复指导2康复下转3复诊提醒4上门服务提醒5家签提醒