|
@@ -1,58 +1,61 @@
|
|
|
<template>
|
|
|
- <div class="preview" ref="preview">
|
|
|
- <div class="personMsg">
|
|
|
- <p class="baseMsg">{{pathInfo.patientName}} {{pathInfo.patientSex}} {{pathInfo.patientAge}}岁</p>
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- <td colspan="2">挂号科室:{{pathInfo.selfDeptName}}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>门诊号:{{pathInfo.recordId}}</td>
|
|
|
- <td>预约医生:{{pathInfo.doctorName}}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="2">就诊时间:{{pathInfo.systemTime}}</td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <div class="line"></div>
|
|
|
- <p>采集时间:{{pathInfo.systemTime}}</p>
|
|
|
- </div>
|
|
|
- <div class="personMsg personMsg2">
|
|
|
- <ul class="previewParts">
|
|
|
- <!-- <li v-if="symptom.choose.length>0"> -->
|
|
|
- <li>
|
|
|
- <h4><i :style="{'background': '#FF9A9A'}"></i> 主诉:</h4>
|
|
|
- <p>
|
|
|
- <span v-for="(item,idx) in symptom.choose" :key="item.name+idx">{{item.name+(idx == symptom.choose.length-1?'':'、')}}</span>
|
|
|
- </p>
|
|
|
- </li>
|
|
|
- <!-- <li v-if="diagnose.text.length>0||symptom.choose.length>0"> -->
|
|
|
- <li>
|
|
|
- <h4><i :style="{'background': '#3D69D9'}"></i> 现病史:</h4>
|
|
|
- <p>
|
|
|
- <span v-for="(item,idx) in symptom.text" :key="item.text+idx">{{item.textP+(idx == symptom.choose.length-1?'。':';')}}</span>
|
|
|
- </p>
|
|
|
- <p>
|
|
|
- <span v-for="(item,idx) in diagnose.text" :key="item.text+idx">{{item.textP+(idx == diagnose.text.length-1?'。':';')}}</span>
|
|
|
- </p>
|
|
|
- </li>
|
|
|
- <li v-if="showLis[moduleCP['other']]==1">
|
|
|
- <h4><i></i> 其他史:</h4>
|
|
|
- <p>
|
|
|
- <span v-for="(item,idx) in others.text" :key="item.text+idx">{{item.textP+(idx == others.text.length-1?'。':';')}}</span>
|
|
|
- </p>
|
|
|
- </li>
|
|
|
- <li v-if="showLis[moduleCP['suplement']]==1">
|
|
|
- <h4><i></i> 补充内容:</h4>
|
|
|
- <p>{{addContent.txt}}</p>
|
|
|
- </li>
|
|
|
- <li v-if="JSON.stringify(diagnose.imgSrc) !='{}'" class="imgLis">
|
|
|
- <h4 class="imgTitle"><i></i> 最近一次治疗报告:</h4>
|
|
|
- <div v-for="(value,key,idx) in diagnose.imgSrc" class="imgView">
|
|
|
- <img :src="value" alt="">
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ <div class="preview previewper">
|
|
|
+ <div class="content">
|
|
|
+ <div class="personMsg">
|
|
|
+ <p class="baseMsg">{{pathInfo.patientName}} {{pathInfo.patientSex}} {{pathInfo.patientAge}}岁</p>
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">挂号科室:{{pathInfo.selfDeptName}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>门诊号:{{pathInfo.recordId}}</td>
|
|
|
+ <td>预约医生:{{pathInfo.doctorName}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">就诊时间:{{pathInfo.systemTime}}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <div class="line"></div>
|
|
|
+ <p>采集时间:{{pathInfo.systemTime}}</p>
|
|
|
+ </div>
|
|
|
+ <div class="personMsg personMsg2">
|
|
|
+ <ul class="previewParts">
|
|
|
+ <!-- <li v-if="symptom.choose.length>0"> -->
|
|
|
+ <li>
|
|
|
+ <h4><i :style="{'background': '#FF9A9A'}"></i> 主诉:</h4>
|
|
|
+ <p>
|
|
|
+ <span v-for="(item,idx) in symptom.choose" :key="item.name+idx">{{item.name+(idx == symptom.choose.length-1?'':'、')}}</span>
|
|
|
+ </p>
|
|
|
+ </li>
|
|
|
+ <!-- <li v-if="diagnose.text.length>0||symptom.choose.length>0"> -->
|
|
|
+ <li>
|
|
|
+ <h4><i :style="{'background': '#3D69D9'}"></i> 现病史:</h4>
|
|
|
+ <p>
|
|
|
+ <span v-for="(item,idx) in symptom.text" :key="item.text+idx">{{item.textP+(idx == symptom.choose.length-1?'。':';')}}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span v-for="(item,idx) in diagnose.text" :key="item.text+idx">{{item.textP+(idx == diagnose.text.length-1?'。':';')}}</span>
|
|
|
+ </p>
|
|
|
+ </li>
|
|
|
+ <li v-if="showLis[moduleCP['other']]==1">
|
|
|
+ <h4><i></i> 其他史:</h4>
|
|
|
+ <p>
|
|
|
+ <span v-for="(item,idx) in others.text" :key="item.text+idx">{{item.textP+(idx == others.text.length-1?'。':';')}}</span>
|
|
|
+ </p>
|
|
|
+ </li>
|
|
|
+ <li v-if="showLis[moduleCP['suplement']]==1">
|
|
|
+ <h4><i></i> 补充内容:</h4>
|
|
|
+ <p>{{addContent.txt}}</p>
|
|
|
+ </li>
|
|
|
+ <li v-if="JSON.stringify(diagnose.imgSrc) !='{}'" class="imgLis">
|
|
|
+ <h4 class="imgTitle"><i></i> 最近一次治疗报告:</h4>
|
|
|
+ <div v-for="(value,key,idx) in diagnose.imgSrc" class="imgView">
|
|
|
+ <img :src="value" alt="">
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="doctorData" @click="handleClick(true)">医生端数据展示</div>
|
|
|
</div>
|
|
|
<div class="foot">
|
|
|
<span
|
|
@@ -70,7 +73,6 @@
|
|
|
@showSubmit="showSubmit"
|
|
|
></Submit>
|
|
|
<Loading v-if="loadingShow"></Loading>
|
|
|
- <div class="doctorData" @click="handleClick(true)">医生端数据展示</div>
|
|
|
<div class="personMsgDoc" v-if="showDoc">
|
|
|
<div class="personMsgDocModal" @click.prevent="handleClick(false)"></div>
|
|
|
<div class="personMsgDocDetail">
|
|
@@ -120,7 +122,8 @@
|
|
|
import api from '@utils/api.js';
|
|
|
import Submit from '../common/Submit';
|
|
|
import Loading from '../common/Loading';
|
|
|
-import {moduleCP} from '@utils/tools.js'
|
|
|
+import {moduleCP,setScroll} from '@utils/tools.js'
|
|
|
+import BScroll from 'better-scroll';
|
|
|
export default {
|
|
|
props: ['preName','showLis','loadingShow'],
|
|
|
data() {
|
|
@@ -145,14 +148,14 @@ export default {
|
|
|
showDoc:false
|
|
|
}
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ let scroll = setScroll(BScroll,true,'.previewper')
|
|
|
+ this.scroll = scroll
|
|
|
+ },
|
|
|
methods: {
|
|
|
handleClick(flg){
|
|
|
- if(flg){
|
|
|
- this.$refs.preview.style.overflow = 'hidden'
|
|
|
- }else{
|
|
|
- this.$refs.preview.style.overflow = 'auto'
|
|
|
- }
|
|
|
this.showDoc = flg
|
|
|
+ this.scroll = setScroll(BScroll,!flg,'.previewper')
|
|
|
},
|
|
|
showSubmit(flg) {
|
|
|
this.submit = flg
|
|
@@ -327,6 +330,7 @@ export default {
|
|
|
padding: 0.3rem 0.4rem 1rem .4rem;
|
|
|
overflow: auto;
|
|
|
-webkit-overflow-scrolling:touch;
|
|
|
+ .btscroll;
|
|
|
}
|
|
|
.imgView {
|
|
|
width: 1.86rem;
|