|
@@ -191,14 +191,10 @@
|
|
|
<div style="position: relative;height: 100%">
|
|
|
<emr-popup ref="popupRef"
|
|
|
@fill-data="popupFunc.fillData"/>
|
|
|
- <emr-web-socket :pat-info="patientInfo"
|
|
|
- :current-editor-user="currentEditorUser"
|
|
|
- ref="emrSocket"/>
|
|
|
+
|
|
|
<div class="编辑器挂载点"
|
|
|
ref="editRef"
|
|
|
- style="height: 100%"
|
|
|
- >
|
|
|
- </div>
|
|
|
+ style="height: 100%"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -221,13 +217,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
<EmrRightComp/>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <emr-web-socket :pat-info="patientInfo"
|
|
|
+ :current-editor-user="currentEditorUser"
|
|
|
+ ref="emrSocket"/>
|
|
|
+
|
|
|
<EmrRefreshDialog/>
|
|
|
<EmrSaveRules ref="emrSaveRulesRef"/>
|
|
|
<xc-dialog-v2
|
|
@@ -322,7 +319,6 @@ import {
|
|
|
emrRootContextKey, PageStore, useEmrStore
|
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-func/useEmrStore";
|
|
|
import HuanZheXinXi from "@/components/zhu-yuan-yi-sheng/HuanZheXinXi.vue";
|
|
|
-import CyFlex from "@/components/cy/flex/src/CyFlex.vue";
|
|
|
import useEmrScript from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/useEmrScript";
|
|
|
import {useUserStore} from "@/pinia/user-store";
|
|
|
import {CyMessageBox} from "@/components/cy/message-box";
|
|
@@ -523,6 +519,8 @@ const emrEvent = {
|
|
|
deptDirector: extractFields('主任医生编码'),
|
|
|
})
|
|
|
}
|
|
|
+ editor!.setCursor('DOCUMENT_END');
|
|
|
+ editor!.scrollToCursor();
|
|
|
fragmentsCannotBeInserted = false
|
|
|
},
|
|
|
"areaFocus": (evt, view) => {
|
|
@@ -888,11 +886,13 @@ const clickDelete = () => {
|
|
|
if (createId !== userInfo.code) {
|
|
|
BizException(ExceptionEnum.LOGICAL_ERROR, "创建人不是您,无法删除。");
|
|
|
}
|
|
|
- ElMessageBox.alert('是否要删除该模板。', '提示', {
|
|
|
- type: 'warning'
|
|
|
+ CyMessageBox.confirm({
|
|
|
+ message: '是否要删除该模板,\n删除的模板可以在回收站中找回,出院患者需要召回才能删除。',
|
|
|
+ title: '提示',
|
|
|
+ type: 'delete'
|
|
|
}).then(async () => {
|
|
|
// 电子病历删除
|
|
|
- let res = await deletePatientEmrByDocumentId(getId()) as any[]
|
|
|
+ const res = await deletePatientEmrByDocumentId(getId()) as any[]
|
|
|
if (res.length > 0) {
|
|
|
for (let i = 0; i < res.length; i++) {
|
|
|
let item = res[i]
|
|
@@ -902,9 +902,9 @@ const clickDelete = () => {
|
|
|
}
|
|
|
}
|
|
|
isEditorChange.value = false
|
|
|
- emrSidebarRef.value.queryData()
|
|
|
+ emrSidebarRef.value!.queryData()
|
|
|
emptyEditor()
|
|
|
- });
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -930,14 +930,15 @@ const checkEmrChange = (cb) => {
|
|
|
isEditorChange.value = false
|
|
|
}
|
|
|
if (isEditorChange.value) {
|
|
|
- ElMessageBox.confirm("您改变了数据是否要保存,不保存可能会丢失数据。", '提示', {
|
|
|
- type: "warning",
|
|
|
+ CyMessageBox.confirm({
|
|
|
+ message: '您改变了数据是否要保存,不保存可能会丢失数据。',
|
|
|
+ title: '提示',
|
|
|
+ type: 'warning',
|
|
|
cancelButtonText: '放弃修改',
|
|
|
confirmButtonText: '保存病历',
|
|
|
- distinguishCancelAndClose: true,
|
|
|
}).then(() => {
|
|
|
clickSaveData()
|
|
|
- }).catch((action) => {
|
|
|
+ }).catch(({action}) => {
|
|
|
if (action === 'cancel') {
|
|
|
isEditorChange.value = false
|
|
|
cb()
|
|
@@ -1016,7 +1017,7 @@ const clickSnippet = async ({content, styles, code}) => {
|
|
|
}
|
|
|
// 移动到文档结尾 不然他会插入到片段里面
|
|
|
editor!.setCursor('DOCUMENT_END');
|
|
|
- editor!.scrollToCursor()
|
|
|
+ editor!.scrollToCursor();
|
|
|
const insertContent = {
|
|
|
// 内容
|
|
|
value: content,
|
|
@@ -1031,8 +1032,7 @@ const clickSnippet = async ({content, styles, code}) => {
|
|
|
if (isReadonly) {
|
|
|
lastView.setAttribute('readonly', true);
|
|
|
}
|
|
|
- editor!.setCursor('DOCUMENT_END');
|
|
|
- editor!.scrollToCursor();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|