|
@ -30,6 +30,7 @@ data:{
|
|
|
planId: httpData['planId'],
|
|
|
planids: httpData['planids'],
|
|
|
patient: httpData['patient'],
|
|
|
patientName: decodeURI(httpData['patientName']),
|
|
|
serviceData:[
|
|
|
{
|
|
|
relationRecordImg:{},
|
|
@ -50,26 +51,39 @@ methods:{
|
|
|
// 提醒患者 num 1康复指导2康复下转3复诊提醒4上门服务提醒5家签提醒
|
|
|
sendSpecialistWeixinMessage: function(planDetaiId, type){
|
|
|
var vm = this
|
|
|
var _type = type == 4? 4:type==7?3:''
|
|
|
var loading = layer.load(0, {shade: false})
|
|
|
var params = {
|
|
|
patient: vm.patient,
|
|
|
doctor: docInfo.code,
|
|
|
type: _type,
|
|
|
relationCode: planDetaiId,
|
|
|
planId: vm.planId
|
|
|
var text = ''
|
|
|
if(type==4){ // 上门服务
|
|
|
text = '请问您是否确认提醒'+vm.patientName+'居民预约上门护理服务?'
|
|
|
} else if(type==7){ // 康复复诊
|
|
|
text = '请问您是否确认提醒'+vm.patientName+'居民进行复诊?'
|
|
|
}
|
|
|
rehaAPI.sendSpecialistWeixinMessage(params).then(function(res){
|
|
|
layer.close(loading)
|
|
|
if(res.status == 200){
|
|
|
showSuccessMessage('提交成功!')
|
|
|
if(_type==3 || _type==4){ // 提醒患者后,即认为是已完成
|
|
|
vm.saveRehabilitationOperateRecord(planDetaiId, type)
|
|
|
}
|
|
|
} else {
|
|
|
showErrorMessage(res.msg)
|
|
|
var current=layer.confirm(text, {
|
|
|
btn: ['确定', '取消'],
|
|
|
title: "提示"
|
|
|
}, function (index) {
|
|
|
var _type = type == 4? 4:type==7?3:''
|
|
|
var loading = layer.load(0, {shade: false})
|
|
|
var params = {
|
|
|
patient: vm.patient,
|
|
|
doctor: docInfo.code,
|
|
|
type: _type,
|
|
|
relationCode: planDetaiId,
|
|
|
planId: vm.planId
|
|
|
}
|
|
|
rehaAPI.sendSpecialistWeixinMessage(params).then(function(res){
|
|
|
layer.close(loading)
|
|
|
if(res.status == 200){
|
|
|
showSuccessMessage('提交成功!')
|
|
|
if(_type==3 || _type==4){ // 提醒患者后,即认为是已完成
|
|
|
vm.saveRehabilitationOperateRecord(planDetaiId, type)
|
|
|
}
|
|
|
} else {
|
|
|
showErrorMessage(res.msg)
|
|
|
}
|
|
|
})
|
|
|
layer.close(current); //再执行关闭
|
|
|
})
|
|
|
|
|
|
},
|
|
|
viewDetial:function(type,code){
|
|
|
var vm=this;
|