|
@@ -132,11 +132,11 @@
|
|
|
</el-select>
|
|
|
<el-divider direction="vertical"/>
|
|
|
<el-button-group>
|
|
|
- <el-button @click="styleFunc('fontSizeAdjust','increase')"
|
|
|
+ <el-button @click="textStyleFunc.fontSizeAdjust('increase')"
|
|
|
title="放大字体">
|
|
|
+
|
|
|
</el-button>
|
|
|
- <el-button @click="styleFunc('fontSizeAdjust','decrease')"
|
|
|
+ <el-button @click="textStyleFunc.fontSizeAdjust('decrease') "
|
|
|
title="缩小字体">
|
|
|
-
|
|
|
</el-button>
|
|
@@ -251,6 +251,8 @@
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
<div class="emr-iframe">
|
|
|
+ <emr-popup ref="popupRef"
|
|
|
+ @fill-data="popupFunc.fillData"/>
|
|
|
<iframe ref="emrRef"
|
|
|
:height="maxHeight - 100 + 'px' "
|
|
|
:src="caseHistoryUrl"/>
|
|
@@ -287,10 +289,10 @@ import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
import EmrSnippet from "@/components/zhu-yuan-yi-sheng/emr/EmrSnippet.vue";
|
|
|
import store from "@/store";
|
|
|
import {onBeforeRouteLeave} from "vue-router";
|
|
|
-import {getUuid} from "@/api/public-api";
|
|
|
+import {getServerDateApi, getUuid} from "@/api/public-api";
|
|
|
import {
|
|
|
getDrgIntelligentGrouping,
|
|
|
- getExtractDataElement,
|
|
|
+ getExtractDataElement, hotSearchSorting,
|
|
|
submitMedicalRecord
|
|
|
} from "@/api/zhu-yuan-yi-sheng/emr-patient";
|
|
|
import {useDocumentVisibility} from "@vueuse/core";
|
|
@@ -301,6 +303,7 @@ import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
import EmrUnorderedList from "@/components/zhu-yuan-yi-sheng/emr/EmrUnorderedList.vue";
|
|
|
import HistoricalEmr from "@/components/zhu-yuan-yi-sheng/emr/HistoricalEmr.vue";
|
|
|
import {stringIsBlank} from "@/utils/blank-utils";
|
|
|
+import EmrPopup from "@/components/zhu-yuan-yi-sheng/emr/EmrPopup.vue";
|
|
|
|
|
|
const props = defineProps({
|
|
|
huanZheXinXi: {
|
|
@@ -439,12 +442,11 @@ const emrEvent = {
|
|
|
emrStyle.color = context.color
|
|
|
emrStyle.backgroundColor = context.backgroundColor
|
|
|
emrStyle.paragraphStyle = context.paragraphStyle
|
|
|
-
|
|
|
},
|
|
|
|
|
|
'ready': (event) => {
|
|
|
editor = currentEmr.value.getEditor()
|
|
|
- setShortcutKey()
|
|
|
+ popupFunc.setShortcutKey()
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -477,9 +479,10 @@ const clickSaveData = async () => {
|
|
|
inputErrorMessage: '长度为2 - 20 个,汉字',
|
|
|
inputPattern: /^\S{2,20}$/,
|
|
|
inputValue: templateName
|
|
|
- }).then(({value}) => {
|
|
|
+ }).then(async ({value}) => {
|
|
|
data.name = value
|
|
|
- currentEmr.value.saveDocument(data).then(res => {
|
|
|
+ let newDate = await getServerDateApi()
|
|
|
+ currentEmr.value.saveDocument(data, newDate).then(res => {
|
|
|
// 把提取到的数据放到 patientData 中.
|
|
|
extractData = res
|
|
|
Object.assign(patientData, res)
|
|
@@ -1035,6 +1038,9 @@ const paginationSymbol = () => {
|
|
|
}
|
|
|
|
|
|
const textStyleFunc = ref({
|
|
|
+ fontSizeAdjust: (val) => {
|
|
|
+ editor.execute('fontSizeAdjust', {value: val})
|
|
|
+ },
|
|
|
fontFamily: () => {
|
|
|
editor.execute('fontFamily', {value: emrStyle.fontFamily})
|
|
|
editor.focus()
|
|
@@ -1102,7 +1108,7 @@ const textStyleFunc = ref({
|
|
|
editor.execute('orderList', {"value": val})
|
|
|
},
|
|
|
indent: (val) => {
|
|
|
- emrStyle.paragraphStyle.specialIndent.value += val
|
|
|
+ emrStyle.paragraphStyle.paragraphIndent.left += val
|
|
|
editor.execute('paragraphStyle', {value: emrStyle.paragraphStyle})
|
|
|
}
|
|
|
})
|
|
@@ -1149,11 +1155,18 @@ const restoreData = (data) => {
|
|
|
recoveryDialog = false
|
|
|
}
|
|
|
|
|
|
-const setShortcutKey = () => {
|
|
|
- console.log(editor)
|
|
|
- editor.setShortcutKey("F9", (evt, view, position) => {
|
|
|
- console.log(evt, view, position)
|
|
|
- });
|
|
|
+const popupRef = ref(null)
|
|
|
+const popupFunc = {
|
|
|
+ setShortcutKey: () => {
|
|
|
+ editor.setShortcutKey("ALT+Q", (evt, view, position) => {
|
|
|
+ popupRef.value.positionChange(evt, view, position)
|
|
|
+ });
|
|
|
+ },
|
|
|
+ fillData: (val) => {
|
|
|
+ hotSearchSorting(userData.code, val.queryKey, 'medical_history_prompts')
|
|
|
+ editor.execute('insertContents', {value: [{type: 'text', data: val.content}]})
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1207,6 +1220,7 @@ defineExpose({
|
|
|
<style scoped lang="scss">
|
|
|
.emr-iframe, iframe {
|
|
|
width: 100%;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
|
|
|
.emr__button_select {
|