Browse Source

会诊删除笔记功能

xiaochan 2 years ago
parent
commit
7573132285

+ 0 - 2
src/views/hospitalization/case-front-sheet/JieShouHuiZhen.vue

@@ -16,7 +16,6 @@
                  @click="enterMedicalOrder"
                  v-if="goToTheDoctorSOrdersPage()">医嘱录入
       </el-button>
-      <consultation-notes @padding-data="daYingHuiZhenRef?.populateTheComments"/>
       <el-tag type="danger">会诊意见限制 1100 个字</el-tag>
     </template>
     <template #main>
@@ -90,7 +89,6 @@ import PatInfomationDialog from "@/components/pat-info-list/PatInfomationDialog.
 import {getAllDictionary} from "@/api/case-front-sheet";
 import {operations} from "@/data";
 import {autopsies, haveOrNot, yesOrNo} from "@/views/hospitalization/case-front-sheet/common";
-import ConsultationNotes from "@/views/hospitalization/case-front-sheet/components/ConsultationNotes.vue";
 import {userInfoStore} from "@/utils/store-public";
 
 ////////////////////////////// 获取屏幕高度 /////////////////////////////////////////

+ 0 - 136
src/views/hospitalization/case-front-sheet/components/ConsultationNotes.vue

@@ -1,136 +0,0 @@
-<script setup name="consultationNotes">
-import {elementAddBody} from "@/utils/public";
-import {useDraggable} from '@vueuse/core'
-import {useZIndex} from "element-plus";
-
-
-const emits = defineEmits(['paddingData'])
-const divRef = ref(null)
-const dragRef = ref(null)
-const dialog = ref(false)
-const inputRef = ref(null)
-
-const {x, y, style} = useDraggable(dragRef, {
-  initialValue: {x: 50, y: 120},
-})
-
-const content = ref('')
-
-const openOrClose = (val) => {
-  dialog.value = val
-}
-
-const styleComp = computed(() => {
-  return style.value + `--bj-z-index:${zIndex.value};`
-})
-
-const isMinimize = ref(false)
-const zoomInAndOut = (val) => {
-  isMinimize.value = val
-}
-
-const paddingData = () => {
-  emits('paddingData', content.value)
-  content.value = ''
-}
-
-const mainClick = () => {
-  inputRef.value?.focus()
-}
-
-const zIndex = ref(useZIndex().currentZIndex.value + 1)
-
-let watchIndex
-
-onActivated(() => {
-  elementAddBody(divRef.value)
-  watchIndex = watch(() => useZIndex().currentZIndex.value, () => {
-    zIndex.value = useZIndex().currentZIndex.value + 1
-  })
-})
-
-onDeactivated(() => {
-  document.body.removeChild(divRef.value)
-  watchIndex && watchIndex()
-})
-
-
-</script>
-
-<template>
-
-  <el-button @click="openOrClose(true)">笔记</el-button>
-  <div ref="divRef" class="note_main" :style="styleComp" v-show="!isMinimize && dialog" @click="mainClick">
-
-    <header ref="dragRef" class="note_drag">
-      会诊笔记
-      <div class="note_icon">
-        <el-button icon="Minus" text @click="zoomInAndOut(true)"/>
-        <el-button icon="Close" text @click="openOrClose(false)"/>
-      </div>
-    </header>
-
-    <main class="note_body">
-      <el-input resize="none"
-                @click.stop
-                ref="inputRef"
-                :autosize="{ minRows: 10, maxRows: 20}"
-                type="textarea" v-model="content"/>
-    </main>
-
-    <footer class="note_footer">
-      <el-button text style="margin-right: 5px" @click="paddingData">填充</el-button>
-    </footer>
-
-  </div>
-
-</template>
-
-<style lang="scss">
-.note_main {
-  position: fixed;
-  height: 450px;
-  width: 417px;
-  background-color: rgb(241, 229, 201);
-  z-index: var(--bj-z-index);
-  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 12px 0;
-
-  flex-flow: column;
-  display: flex;
-
-  .note_drag {
-    position: relative;
-    width: 100%;
-    height: 20px;
-    cursor: all-scroll;
-    text-align: center;
-    padding: 10px 0;
-
-    .note_icon {
-      position: absolute;
-      width: max-content;
-      padding: 5px;
-      top: 0;
-      right: 5px;
-      cursor: default;
-    }
-  }
-
-  .note_body {
-    width: 100%;
-    flex: 1;
-
-    textarea {
-      width: 100%;
-      background-color: rgb(241, 229, 201);
-    }
-  }
-
-  .note_footer {
-    display: flex;
-    padding: 5px 0;
-    justify-content: end;
-  }
-
-}
-</style>

+ 1 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/components/EmrRefreshDialog.vue

@@ -19,7 +19,7 @@ const closeForceRefreshDialog = () => {
   clearInterval(countdown)
   forceRefreshDialog.value.message.push('正在更新病历文档。')
   const loadDocument = emrMitt.emit('reloadDocument')
-  loadDocument.then(res => {
+  loadDocument.then(() => {
     forceRefreshDialog.value.resolve(null)
     forceRefreshDialog.value.dialog = false
   })

+ 0 - 4
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/edit.ts

@@ -237,7 +237,6 @@ export declare type EditType = {
      */
     setPaginate: (isPaginate: boolean) => void;
 
-
     renderer: {
         pageView: {
             marginTopWithPaging: number
@@ -247,11 +246,8 @@ export declare type EditType = {
             attachLayout: () => void
         }
     }
-
-
 }
 
-
 export declare type Runtime = {
     saveDocument: (document: any, success: (res?: any) => void, error: (err?: any) => void) => void;
     loadDocument: (success: (res?: any) => void, error: (err?: any) => void, param: any) => void;

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

@@ -3,11 +3,9 @@ import EventBus from "../../../../../utils/mitt";
 import {ref} from 'vue'
 import {EditType} from "./edit";
 import {LoadParams} from "./emr-init-v2";
-import XEUtils from "xe-utils";
 import Patient from "../../../../../ts-type/patient";
 
 // 患者数据
-
 export const query = ref({
     patNo: '',
     times: 0,
@@ -378,6 +376,7 @@ export interface EmrMitt {
     closeProgress: () => void
 }
 
+//@ts-ignore
 export const emrMitt = new EventBus<EmrMitt>()
 
 export const emrChannelEnum = {