|
@@ -433,11 +433,6 @@ const emrEvent = {
|
|
|
const node = view.model;
|
|
|
const values = parsingFragmentDataElements(editor, node);
|
|
|
const editorCode = getBcjlUserInfo(values).code;
|
|
|
- // 因为签名只有在保存时才有所以,如果是空的就是本人创建的
|
|
|
- if (stringIsBlank(editorCode)) {
|
|
|
- editor!.setRevisionMode("off");
|
|
|
- return;
|
|
|
- }
|
|
|
openTheTraceByUser(editorCode);
|
|
|
},
|
|
|
beforeCopy: (evt, data) => {
|
|
@@ -830,9 +825,6 @@ const objectValuesCannotBeNull = object => {
|
|
|
const clickDelete = () => {
|
|
|
waitForLoadingToComplete();
|
|
|
whetherThereIsAMedicalRecordId();
|
|
|
- if (createId.value !== userInfo.code) {
|
|
|
- BizException(ExceptionEnum.LOGICAL_ERROR, "创建人不是您,无法删除。");
|
|
|
- }
|
|
|
CyMessageBox.confirm({
|
|
|
message:
|
|
|
"是否要删除该模板,\n删除的模板可以在回收站中找回,出院患者需要召回才能删除。",
|
|
@@ -850,7 +842,7 @@ const clickDelete = () => {
|
|
|
}
|
|
|
}
|
|
|
emrStore.store.isEditorChange = false;
|
|
|
- emrSidebarRef.value!.queryData();
|
|
|
+ emrSidebarRef.value?.queryData?.();
|
|
|
emptyEditor();
|
|
|
});
|
|
|
};
|
|
@@ -1077,10 +1069,10 @@ const setEditorModeFun = () => {
|
|
|
|
|
|
/**
|
|
|
* 根据用户的id来判断是否开启流痕,没有创建人不需要判断。
|
|
|
- * @param editorCode
|
|
|
+ * @param editorCode 创建人
|
|
|
*/
|
|
|
const openTheTraceByUser = editorCode => {
|
|
|
- if (readonlyPattern() || stringIsBlank(createId.value)) {
|
|
|
+ if (readonlyPattern() || stringIsBlank(editorCode)) {
|
|
|
editor!.setRevisionMode("off");
|
|
|
return;
|
|
|
}
|
|
@@ -1546,10 +1538,6 @@ const emrMittInit = () => {
|
|
|
});
|
|
|
emrMitt.on("dataSourcePadding", dataSourcePadding);
|
|
|
|
|
|
- emrMitt.on("getIframe", () => {
|
|
|
- return editMain!.iframe;
|
|
|
- });
|
|
|
-
|
|
|
emrMitt.on("setShowIframe", val => {
|
|
|
showIframe.value = val;
|
|
|
});
|
|
@@ -1654,12 +1642,6 @@ const initEdit = () => {
|
|
|
emrStore.mutation.installPlugins(res, emrStore);
|
|
|
if (isDev) {
|
|
|
await sleep(500);
|
|
|
- loadDocument({
|
|
|
- documentId: "927936636556216320",
|
|
|
- categoryCode: "wqzjsqb",
|
|
|
- name: "病程记录",
|
|
|
- parent: "38ed7f50a6ba11eda4de571d638b2c14",
|
|
|
- });
|
|
|
}
|
|
|
});
|
|
|
};
|