yht2016 4 éve
szülő
commit
c1f4942966

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

@ -25,6 +25,7 @@
	border-radius: 50%;
	background-color: #12b7f5;
	line-height: 20px;
	margin-left: -10px;
}
.set-row {
	width: 10px;

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

@ -281,7 +281,7 @@
												<span class="cur-status">{{item.html}}</span>
											</td>
											<td class="project-name mw400">
												<p class="mb5">{{item.name}}</p>
												<p class="mt10">{{item.name}}</p>
												<p class="ellipsis mb0">{{item.content}}</p>
											</td>
											<td class="executor">{{item.doctor_name}}</td>

+ 27 - 10
component/rehabilitation/server-items-detail.js

@ -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-f17 c-666 mt10">{{patientname}}患者{{service.title}}计划</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 class="ui-col-1">\
							<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>\
										</td>\
										<td class="project-name mw400">\
											<p class="mb5">{{item.name}}</p>\
											<p class="mt10">{{item.name}}</p>\
											<p class="ellipsis mb0">{{item.content}}</p>\
										</td>\
										<td class="executor">{{item.doctorName}}</td>\
@ -239,13 +241,6 @@ Vue.component('server-items-detail', {
							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){
						vm.islimit = true
						vm.calendar()
@ -255,12 +250,34 @@ Vue.component('server-items-detail', {
						vm.tabStatus = 2
						vm.selectByPlanDetaiId()
					}
					vm.selectByGuidance()
					vm.$forceUpdate()
				} else {
					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(){
			var vm = this
			location.href = "../../recover/html/new_recover.html?patient=" + vm.patientcode + '&isEditConfig=true&planId='+vm.planid+'&planDetailId='+vm.planDetaiId