|
@@ -5,7 +5,7 @@
|
|
|
<el-button icon="ArrowLeft" style="font-size: 14px" text @click="clickBack">返回</el-button>
|
|
|
住院次数:
|
|
|
<el-input-number :min="1" :max="huanZheXinXi.admissTimes" v-model="times"/>
|
|
|
- <el-button @click="queryHistoricalInformation">历史记录</el-button>
|
|
|
+ <el-button @click="resetData">历史记录</el-button>
|
|
|
|
|
|
<div v-if="times === huanZheXinXi.admissTimes">
|
|
|
<el-button type="success" icon="CircleCheck" @click="clickSaveData">保存数据</el-button>
|
|
@@ -30,12 +30,11 @@
|
|
|
<el-row>
|
|
|
|
|
|
<el-col :span="20">
|
|
|
- <div class="emr-iframe" name="emr">
|
|
|
-
|
|
|
+ <!-- <emr-main/>-->
|
|
|
+ <div class="emr-iframe">
|
|
|
<iframe id="emrIframe"
|
|
|
ref="emrRef"
|
|
|
:src="caseHistoryUrl"/>
|
|
|
-
|
|
|
</div>
|
|
|
</el-col>
|
|
|
|
|
@@ -63,7 +62,6 @@ import {uuid} from "@/utils/getUuid";
|
|
|
import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
import router from '@/router'
|
|
|
import EmrSnippet from "@/components/zhu-yuan-yi-sheng/emr/EmrSnippet.vue";
|
|
|
-import sleep from "@/utils/sleep";
|
|
|
import store from "@/store";
|
|
|
|
|
|
const emit = defineEmits(['refreshPage'])
|
|
@@ -92,9 +90,6 @@ let reviewMode = $ref(false)
|
|
|
|
|
|
const updateCaseHistoryUrl = (val) => {
|
|
|
let valCode = val.code ? val.code : val.emrCategoryCode;
|
|
|
- if (documentId === val.emrDocumentId && categoryCode === valCode) {
|
|
|
- return
|
|
|
- }
|
|
|
loaded = true
|
|
|
isEditorChange = false
|
|
|
documentId = val.emrDocumentId;
|
|
@@ -110,17 +105,6 @@ const refreshPage = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const clearData = async () => {
|
|
|
- loaded = true
|
|
|
- documentId = ''
|
|
|
- categoryCode = ''
|
|
|
- templateName = ''
|
|
|
- patientId = ''
|
|
|
- categroyId = ''
|
|
|
- await sleep(500)
|
|
|
- loaded = false
|
|
|
-}
|
|
|
-
|
|
|
const clickSaveData = () => {
|
|
|
|
|
|
waitForLoadingToComplete()
|
|
@@ -182,7 +166,8 @@ const clickDelete = () => {
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
currentEmr.value.deleteDocument(documentId, function () {
|
|
|
- refreshPage()
|
|
|
+ emrSidebarRef.deleteTheSpecifiedNode(documentId)
|
|
|
+ nodeClick({}, 2)
|
|
|
});
|
|
|
}).catch(() => {
|
|
|
|
|
@@ -192,11 +177,11 @@ const clickDelete = () => {
|
|
|
|
|
|
const whetherThereIsAMedicalRecordId = () => {
|
|
|
if (!documentId) {
|
|
|
- BizException(ExceptionEnum.MESSAGE_ERROR, "请先选择电子病历的模板。")
|
|
|
+ BizException(ExceptionEnum.MESSAGE_ERROR, "请先选择患者的病历。")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const queryHistoricalInformation = () => {
|
|
|
+const resetData = () => {
|
|
|
checkEmrChange(() => {
|
|
|
nodeClick({}, 0)
|
|
|
emrSidebarRef.queryHistory(times);
|
|
@@ -243,7 +228,10 @@ const editorEvents = ({name}, fragment) => {
|
|
|
// 设置成编辑模式
|
|
|
currentEmr.value.callMethod('setEditorMode', 'free')
|
|
|
}
|
|
|
- // currentEmr.value.callMethod('setReviewMode', reviewMode)
|
|
|
+ if (categoryCode === "bingchengjiluzhuanyong" && documentId) {
|
|
|
+ console.log(currentEmr.value.callMethod('getElementsData'));
|
|
|
+ console.log("这个是病程记录")
|
|
|
+ }
|
|
|
|
|
|
} else if (name === 'contentchange') {
|
|
|
// 判断内容是否改变
|
|
@@ -307,7 +295,6 @@ onMounted(() => {
|
|
|
})
|
|
|
|
|
|
onDeactivated(() => {
|
|
|
- console.log(123)
|
|
|
window.removeEventListener('beforeunload', monitorPageRefresh)
|
|
|
})
|
|
|
|