소스 검색

电子病历初始化问题

xiaochan 1 년 전
부모
커밋
dae1826173

+ 1 - 1
release/上线.bat

@@ -1,3 +1,3 @@
-net use 172.16.32.160 \\"thyy@2018" /user:"administrator"
+net use \\172.16.32.160 "thyy@2018" /user:"administrator"
 RMDIR /S /Q "\\172.16.32.160\D$\a.snapshot\web-server\dist"
 robocopy ./dist \\172.16.32.160\D$\a.snapshot\web-server\dist /E /Z /R:1 /W:1

+ 2 - 2
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/EmrMain.vue

@@ -416,8 +416,8 @@ const props = defineProps({
 
 const editRef = ref(null)
 // 编辑器
-let editor: EditType
-let runtime: Runtime
+let editor: EditType | null = null
+let runtime: Runtime | null = null
 let editMain: UseEmrInitReturn = {}
 let extractData = {}
 

+ 2 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-editor-mounted.ts

@@ -3,6 +3,7 @@ const editFunc: Map<string, (editor: any, patInfo: any) => void> = new Map();
 const emrEditorMounted = (code: string, editor: any, patInfo: any) => {
     if (!editFunc.has(code)) return
     try {
+        // @ts-ignore
         editFunc.get(code)(editor, patInfo)
     } catch (e) {
         console.error('emrEditorMounted 出错', e)
@@ -41,7 +42,7 @@ interface SelfFundedConsentForm {
     remark: string;
 }
 
-const yibaozifeixiangmutongyishu = (editor, patInfo) => {
+const yibaozifeixiangmutongyishu = (editor: { getNodes: (arg0: string) => { target: any; }[]; }, patInfo: any) => {
     const component = editor.getNodes('费用表格')[0].target
     let temp: {
         dataIndex: string,