|
@ -46,8 +46,10 @@ Vue.component('server-items-detail', {
|
|
<div class="c-t-center c-f18 c-333 mt15">服务内容-{{service.title}}</div>\
|
|
<div class="c-t-center c-f18 c-333 mt15">服务内容-{{service.title}}</div>\
|
|
<div class="c-t-center c-f17 c-666 mt10">{{patientname}}患者{{service.title}}计划</div>\
|
|
<div class="c-t-center c-f17 c-666 mt10">{{patientname}}患者{{service.title}}计划</div>\
|
|
<div class="c-333 ptb10 c-f17 mt10">指导留言</div>\
|
|
<div class="c-333 ptb10 c-f17 mt10">指导留言</div>\
|
|
<div class="c-f14 c-666" v-if="!message.isImg">{{message.content}}</div>\
|
|
|
|
<div class="mt10" v-else><img :src="message.content" @click="previewImg(message.content)" style="width:60px;height:60px;" :data-preview-src="message.content" data-preview-group="1"/></div>\
|
|
|
|
|
|
<div @click="zdly(service)">\
|
|
|
|
<div class="c-f14 c-666" v-if="!message.isImg" >{{message.content}}</div>\
|
|
|
|
<div class="mt10" v-else><img :src="message.content" @click.stop="previewImg(message.content)" style="width:60px;height:60px;" :data-preview-src="message.content" data-preview-group="1"/></div>\
|
|
|
|
</div>\
|
|
<div v-if="islimit" class="mtb10 ui-grid">\
|
|
<div v-if="islimit" class="mtb10 ui-grid">\
|
|
<div class="ui-col-1">\
|
|
<div class="ui-col-1">\
|
|
<i class="icon icon-prev icon-20" @click="preMonth"></i>\
|
|
<i class="icon icon-prev icon-20" @click="preMonth"></i>\
|
|
@ -118,7 +120,7 @@ Vue.component('server-items-detail', {
|
|
<span class="cur-status">{{item.html}}</span>\
|
|
<span class="cur-status">{{item.html}}</span>\
|
|
</td>\
|
|
</td>\
|
|
<td class="project-name mw400">\
|
|
<td class="project-name mw400">\
|
|
<p class="mb5">{{item.name}}</p>\
|
|
|
|
|
|
<p class="mt10">{{item.name}}</p>\
|
|
<p class="ellipsis mb0">{{item.content}}</p>\
|
|
<p class="ellipsis mb0">{{item.content}}</p>\
|
|
</td>\
|
|
</td>\
|
|
<td class="executor">{{item.doctorName}}</td>\
|
|
<td class="executor">{{item.doctorName}}</td>\
|
|
@ -239,13 +241,6 @@ Vue.component('server-items-detail', {
|
|
vm.service.isCreate=true;
|
|
vm.service.isCreate=true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var messageIndex = _.findLastIndex(vm.service.messageList, {doctorType: 1});
|
|
|
|
if(messageIndex>-1){
|
|
|
|
var message = vm.service.messageList[messageIndex]
|
|
|
|
vm.message = vm.getContent(message.content,message.contentType)
|
|
|
|
}else{
|
|
|
|
vm.message.content = "无"
|
|
|
|
}
|
|
|
|
if(vm.service.frequencyCode){
|
|
if(vm.service.frequencyCode){
|
|
vm.islimit = true
|
|
vm.islimit = true
|
|
vm.calendar()
|
|
vm.calendar()
|
|
@ -255,12 +250,34 @@ Vue.component('server-items-detail', {
|
|
vm.tabStatus = 2
|
|
vm.tabStatus = 2
|
|
vm.selectByPlanDetaiId()
|
|
vm.selectByPlanDetaiId()
|
|
}
|
|
}
|
|
|
|
vm.selectByGuidance()
|
|
vm.$forceUpdate()
|
|
vm.$forceUpdate()
|
|
} else {
|
|
} else {
|
|
showErrorMessage(res.msg)
|
|
showErrorMessage(res.msg)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
// 获取康复计划服务项的指导留言
|
|
|
|
selectByGuidance: function(){
|
|
|
|
var vm = this
|
|
|
|
var params = {
|
|
|
|
planId: vm.planid,
|
|
|
|
itemCode: vm.service.type
|
|
|
|
}
|
|
|
|
rehaAPI.selectByGuidance(params).then(function(res){
|
|
|
|
if(res.status==200){
|
|
|
|
var messageIndex = _.findIndex(res.data, {doctor_type: 1});
|
|
|
|
if(messageIndex>-1){
|
|
|
|
var message = res.data[messageIndex]
|
|
|
|
vm.message = vm.getContent(message.content,message.content_type)
|
|
|
|
}else{
|
|
|
|
vm.message.content = "无"
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
showErrorMessage(res.msg)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
goToEditConfig: function(){
|
|
goToEditConfig: function(){
|
|
var vm = this
|
|
var vm = this
|
|
location.href = "../../recover/html/new_recover.html?patient=" + vm.patientcode + '&isEditConfig=true&planId='+vm.planid+'&planDetailId='+vm.planDetaiId
|
|
location.href = "../../recover/html/new_recover.html?patient=" + vm.patientcode + '&isEditConfig=true&planId='+vm.planid+'&planDetailId='+vm.planDetaiId
|