|
@@ -52,18 +52,14 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 电子病历中的样式条 -->
|
|
<!-- 电子病历中的样式条 -->
|
|
|
<EmrStyleBar ref="styleBarRef"
|
|
<EmrStyleBar ref="styleBarRef"
|
|
|
v-show="showIframeIsList(IframeTabs.正在编辑 , IframeTabs.同时打开, IframeTabs.审核)"
|
|
v-show="showIframeIsList(IframeTabs.正在编辑 , IframeTabs.同时打开, IframeTabs.审核)"
|
|
|
/>
|
|
/>
|
|
|
<div class="layout_main layout_container layout-horizontal">
|
|
<div class="layout_main layout_container layout-horizontal">
|
|
|
-
|
|
|
|
|
<div class="layout_h-w_max"
|
|
<div class="layout_h-w_max"
|
|
|
- v-show="showIframeIsList(IframeTabs.患者信息)"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ v-show="showIframeIsList(IframeTabs.患者信息)">
|
|
|
<PatientInfoView :patientInfo="patientInfo"/>
|
|
<PatientInfoView :patientInfo="patientInfo"/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -71,6 +67,7 @@
|
|
|
v-show="showIframeIsList(IframeTabs.正在编辑 , IframeTabs.同时打开, IframeTabs.审核)">
|
|
v-show="showIframeIsList(IframeTabs.正在编辑 , IframeTabs.同时打开, IframeTabs.审核)">
|
|
|
<div class="layout_container layout-horizontal">
|
|
<div class="layout_container layout-horizontal">
|
|
|
<EmrFunctionList
|
|
<EmrFunctionList
|
|
|
|
|
+ v-model:reviewMode="reviewMode"
|
|
|
v-model:isOpenPage="isOpenPage"
|
|
v-model:isOpenPage="isOpenPage"
|
|
|
:openRecovery="openRecovery"
|
|
:openRecovery="openRecovery"
|
|
|
/>
|
|
/>
|
|
@@ -129,13 +126,11 @@ import {
|
|
|
emrMitt,
|
|
emrMitt,
|
|
|
EmrParam,
|
|
EmrParam,
|
|
|
EmrRightTabs,
|
|
EmrRightTabs,
|
|
|
- emrTitle,
|
|
|
|
|
getEmrCopy,
|
|
getEmrCopy,
|
|
|
IframeTabs,
|
|
IframeTabs,
|
|
|
patientInfo,
|
|
patientInfo,
|
|
|
- query,
|
|
|
|
|
showIframe,
|
|
showIframe,
|
|
|
- showIframeIsList, useRecoveryEmr
|
|
|
|
|
|
|
+ showIframeIsList
|
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-init";
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-init";
|
|
|
import {ElMessage, ElMessageBox, ElButton} from "element-plus";
|
|
import {ElMessage, ElMessageBox, ElButton} from "element-plus";
|
|
|
import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
@@ -249,7 +244,6 @@ const patientData = ref({})
|
|
|
let copy = true
|
|
let copy = true
|
|
|
// 侧边栏
|
|
// 侧边栏
|
|
|
const emrSidebarRef = ref<InstanceType<typeof EmrSidebar> | null>(null)
|
|
const emrSidebarRef = ref<InstanceType<typeof EmrSidebar> | null>(null)
|
|
|
-
|
|
|
|
|
// 是否加载完成了
|
|
// 是否加载完成了
|
|
|
const loaded = ref(false)
|
|
const loaded = ref(false)
|
|
|
// 是否 改变了数据
|
|
// 是否 改变了数据
|
|
@@ -325,7 +319,6 @@ const emrEvent = {
|
|
|
setTheProgressAnchor()
|
|
setTheProgressAnchor()
|
|
|
maleDeleteDataElement()
|
|
maleDeleteDataElement()
|
|
|
// 是否开启审阅模式
|
|
// 是否开启审阅模式
|
|
|
- reviewMode.value = 2
|
|
|
|
|
isRevisionMode()
|
|
isRevisionMode()
|
|
|
// 判断是否只读
|
|
// 判断是否只读
|
|
|
readonlyPattern()
|
|
readonlyPattern()
|
|
@@ -719,7 +712,7 @@ function replaceDataElement(data) {
|
|
|
// 添加片段
|
|
// 添加片段
|
|
|
const clickToFillInData = (value) => {
|
|
const clickToFillInData = (value) => {
|
|
|
if (!readonlyPattern()) {
|
|
if (!readonlyPattern()) {
|
|
|
- editor.setValues(value)
|
|
|
|
|
|
|
+ editor!.setValues(value)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -741,18 +734,6 @@ const objectValuesCannotBeNull = (object) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 前端打印
|
|
|
|
|
-const frontEndPrinting = async () => {
|
|
|
|
|
- waitForLoadingToComplete()
|
|
|
|
|
- editMain?.print()
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-// 服务打印
|
|
|
|
|
-const servicePrint = () => {
|
|
|
|
|
- waitForLoadingToComplete()
|
|
|
|
|
- editMain?.print('server')
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 点击删除数据
|
|
* 点击删除数据
|
|
|
*/
|
|
*/
|
|
@@ -989,9 +970,9 @@ const openTheTraceByUser = (editorCode) => {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
if (editorCode === userInfo.code) {
|
|
if (editorCode === userInfo.code) {
|
|
|
- editor.setRevisionMode('off')
|
|
|
|
|
|
|
+ editor!.setRevisionMode('off')
|
|
|
} else {
|
|
} else {
|
|
|
- editor.setRevisionMode('on')
|
|
|
|
|
|
|
+ editor!.setRevisionMode('on')
|
|
|
xcMessage.warning('当前病历创建人不是您,你的操作将会留痕。')
|
|
xcMessage.warning('当前病历创建人不是您,你的操作将会留痕。')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1107,12 +1088,6 @@ function syncDisabled() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/**
|
|
|
|
|
- * 撤销或者重做
|
|
|
|
|
- */
|
|
|
|
|
-const clickUndo = (val) => {
|
|
|
|
|
- editor!.execute(val)
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 单击“提交病历”
|
|
* 单击“提交病历”
|
|
@@ -1174,7 +1149,7 @@ const extractFields = (val) => {
|
|
|
// 是否开启审阅模式
|
|
// 是否开启审阅模式
|
|
|
const isRevisionMode = () => {
|
|
const isRevisionMode = () => {
|
|
|
try {
|
|
try {
|
|
|
- editor.setRevisionShowMode(reviewMode.value);
|
|
|
|
|
|
|
+ editor!.setRevisionShowMode(reviewMode.value);
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
console.error(e)
|
|
console.error(e)
|
|
|
}
|
|
}
|
|
@@ -1526,6 +1501,7 @@ const emrMittInit = () => {
|
|
|
emrMitt.on('diseaseCourseSequencing', diseaseCourseSequencing)
|
|
emrMitt.on('diseaseCourseSequencing', diseaseCourseSequencing)
|
|
|
emrMitt.on('syncEmrPatientData', syncEmrPatientData)
|
|
emrMitt.on('syncEmrPatientData', syncEmrPatientData)
|
|
|
emrMitt.on('selectFill', selectFill)
|
|
emrMitt.on('selectFill', selectFill)
|
|
|
|
|
+ emrMitt.on('auditClick', auditClick)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const initEdit = () => {
|
|
const initEdit = () => {
|