|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<el-button @click="daYing">打印</el-button>
|
|
|
+ <el-button @click="copyClick" v-if="props.laiYuan===2">复制会诊结果</el-button>
|
|
|
<div class="main-info-parent" style="padding: 0 20px; overflow: hidden">
|
|
|
<div id="huiZhenXinXiDaYin">
|
|
|
<h1 style="text-align: center; font-size: 30px">长沙泰和医院</h1>
|
|
@@ -17,7 +18,7 @@
|
|
|
<div>
|
|
|
<div>
|
|
|
请
|
|
|
- <div class="reqDept">{{ huanZheXinXi.reqDept1 }}</div>
|
|
|
+ <div class="reqDept">{{ huanZheXinXi.reqDept1Name }}</div>
|
|
|
会诊
|
|
|
<div class="huiZhenJiBie">会诊类别:{{ hzLeiBie(huanZheXinXi.hzType) }}</div>
|
|
|
</div>
|
|
@@ -64,7 +65,7 @@
|
|
|
</textarea>
|
|
|
</div>
|
|
|
<div class="qingQiuHuiZhenXinXi">
|
|
|
- <div class="div1">会诊科室:{{ huanZheXinXi.reqDept1 }}</div>
|
|
|
+ <div class="div1">会诊科室:{{ huanZheXinXi.reqDept1Name }}</div>
|
|
|
<div class="div2">
|
|
|
医师:{{ props.laiYuan === 2 ? huanZheXinXi.hzDoctor2Name : store.state.user.info.name }}
|
|
|
</div>
|
|
@@ -83,6 +84,13 @@ import {computed, onMounted} from 'vue'
|
|
|
import {getLodop, initLodop} from '@/utils/c-lodop'
|
|
|
import {huiZhenJiLvDanCss} from '@/data/css-for-print'
|
|
|
import {getServerDateApi} from '@/api/public-api'
|
|
|
+import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
+import {
|
|
|
+ copyEnum, delEmrCopy,
|
|
|
+ getEmrCopy,
|
|
|
+ setEmrCopy
|
|
|
+} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-init";
|
|
|
+import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
|
|
|
const props = defineProps({
|
|
|
laiYuan: {
|
|
@@ -116,12 +124,6 @@ const huiZhenXinXiXiangQing = (val) => {
|
|
|
huanZheXinXi.value = val
|
|
|
}
|
|
|
|
|
|
-const mainInfo = {
|
|
|
- padding: '0 20px',
|
|
|
- overflowY: 'scroll',
|
|
|
- scrollbarWidth: 'none',
|
|
|
-}
|
|
|
-
|
|
|
const daYing = () => {
|
|
|
shiJian()
|
|
|
setTimeout(() => {
|
|
@@ -148,6 +150,27 @@ const daYing = () => {
|
|
|
}, 100)
|
|
|
}
|
|
|
|
|
|
+const copyClick = () => {
|
|
|
+ if (!huanZheXinXi.value.inpatientNo) {
|
|
|
+ BizException(ExceptionEnum.MESSAGE_ERROR, "请先获取患者信息。")
|
|
|
+ }
|
|
|
+ let temp = huanZheXinXi.value
|
|
|
+ let data = {
|
|
|
+ '会诊科室': [
|
|
|
+ {code: temp.reqDept1, name: temp.reqDept1Name}
|
|
|
+ ],
|
|
|
+ '会诊医生': [
|
|
|
+ {code: temp.hzDoctor2, name: temp.hzDoctor2Name}
|
|
|
+ ],
|
|
|
+ '会诊意见': temp.hzComment,
|
|
|
+ '编辑者': [
|
|
|
+ {code: store.state.user.info.code, name: store.state.user.info.name}
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ setEmrCopy(copyEnum.会诊, data)
|
|
|
+ xcMessage.success('复制成功。')
|
|
|
+}
|
|
|
+
|
|
|
const fanHuiXinXi = () => {
|
|
|
emit('fanHuiXinXi', {huanZheXinXi})
|
|
|
}
|