DESKTOP-0GD05B0\Administrator 2 lat temu
rodzic
commit
0a2ebfaff5

+ 8 - 17
src/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru.js

@@ -94,23 +94,6 @@ export function huoQuHuanZheXinXi(inpatientNo) {
     })
 }
 
-export function huoQuYiZhuMingCheng(inpatientNo, admissTimes, orderName) {
-    return request({
-        url: url + '/huoQuYiZhuMingCheng',
-        method: 'get',
-        params: {inpatientNo, admissTimes, orderName},
-    })
-}
-
-export function huoQuGeRenPinLv(patNo, times) {
-    return request({
-        url: url + '/huoQuGeRenPinLv',
-        method: 'get',
-        params: {patNo, times}
-    })
-}
-
-
 export function huoQuYiZhuShuJu(data) {
     return request({
         url: url + '/huoQuYiZhuShuJu',
@@ -135,6 +118,14 @@ export function huoQuFeiYongXinXi(queryCode) {
     })
 }
 
+export function getFrequency() {
+    return request({
+        url: url + '/getFrequency',
+        method: 'get',
+    })
+}
+
+
 export function huoQuZhuYuanPinLv(code) {
     return request({
         url: url + '/huoQuZhuYuanPinLv',

+ 1 - 0
src/components/pat-info-list/PatInfomationDialog.vue

@@ -15,6 +15,7 @@
       </el-tab-pane>
       <el-tab-pane label="清单">
         <charge-list :pat-no="props.patNo"
+                     :show-button="false"
                      :times="props.times"/>
       </el-tab-pane>
       <el-tab-pane label="检验">

+ 36 - 9
src/components/xiao-chan/select-v4/SelectV4.vue

@@ -4,12 +4,21 @@
       v-model="value"
       :remote-method="method"
       filterable
+      :disabled="props.disabled"
       remote
+      :title="selectRef?.states?.selectedLabel"
       :options="tempData"
       :clearable="props.clearable"
       @change="change"
+      @clear="clear"
       :placeholder="props.placeholder"
-      style="width: 240px"/>
+      style="width: 240px">
+    <template #default="{ item }">
+      <div :title="item.label" style="width: 100%;height: 100%">
+        {{ item.label }}
+      </div>
+    </template>
+  </el-select-v2>
 </template>
 
 <script setup name='SelectV4'>
@@ -29,10 +38,14 @@ const props = defineProps({
   placeholder: {
     type: String,
     default: '请选择'
+  },
+  disabled: {
+    type: Boolean,
+    default: false
   }
 })
 
-const emits = defineEmits(['update:modelValue'])
+const emits = defineEmits(['update:modelValue', 'change'])
 
 const value = ref()
 const tempData = ref([])
@@ -41,37 +54,51 @@ const selectRef = ref()
 
 const change = (val) => {
   emits('update:modelValue', val)
+  for (let i = 0, len = tempData.value.length; i < len; i++) {
+    let item = tempData.value[i]
+    if (val === item.code) {
+      emits('change', item)
+    }
+  }
+}
+
+const focus = () => {
+  selectRef.value.handleFocus()
 }
 
 watch(() => props.modelValue, () => {
   value.value = props.modelValue
+  tempData.value = props.data
 }, {immediate: true})
 
 watch(() => props.data, () => {
   tempData.value = props.data
 }, {immediate: true})
 
-
 const method = (query) => {
   if (query) {
     tempData.value = props.data.filter((item) => {
-      let flag = false;
       if (item.name && item.name.indexOf(query) > -1) {
-        flag = true;
+        return true;
       } else if (item.pyCode && item.pyCode.indexOf(query.toLocaleUpperCase()) > -1) {
         return true;
       } else if (item.wCode && item.wCode.indexOf(query.toLocaleUpperCase()) > -1) {
-        flag = true;
-      } else {
-        flag = item.code && item.code.indexOf(query) > -1;
+        return true;
+      } else if (item.code && item.code.indexOf(query) > -1) {
+        return true
+      } else if (item.code && item.code.indexOf(query.toLocaleUpperCase()) > -1) {
+        return true;
       }
-      return flag;
+      return false;
     });
   } else {
     tempData.value = props.data
   }
 }
 
+defineExpose({
+  focus
+})
 
 </script>
 

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

@@ -1,117 +1,114 @@
 <template>
   <el-container>
-    <el-header v-show="!completeModeSwitch">
-      <div ref="headerRefOld"/>
-      <div ref="headerRef">
-        <el-button-group>
-          <el-button :disabled="!emrConfig.editor"
-                     type="success"
-                     icon="CircleCheck"
-                     @click="clickSaveData">
-            保存
-          </el-button>
-          <el-button
-              type="primary"
-              title="提交不是保存"
-              @click="clickToSubmitTheMedicalRecord"
-              :disabled="!documentId || !emrConfig.editor">
-            提交病历
-          </el-button>
-          <el-button :disabled="!emrConfig.editor"
-                     icon="Delete" type="danger"
-                     @click="clickDelete">
-            删除
-          </el-button>
-          <el-button @click="recoveryDialog = true">
-            恢复
-          </el-button>
-        </el-button-group>
-        <el-divider direction="vertical"/>
-        <el-button-group>
-          <!--  工具   -->
-          <emr-auxiliary-tools :pat-info="props.huanZheXinXi"
-                               @to-fill-in-data="clickToFillInData"
-                               :emr-data="patientData"/>
-          <el-button @click="drgIntelligentGrouping"
-                     type="primary"
-                     title="drg的预分组">
-            DRG分组
-          </el-button>
-        </el-button-group>
-        <el-divider direction="vertical"/>
-        <!--   恢复到上一次保存的状态   -->
-        <historical-emr v-if="recoveryDialog"
-                        @closed="recoveryDialog = false"
-                        :docunent-id="documentId"
-                        @restore-data="restoreData"/>
-        <el-button-group>
-          <!--        页面打印支持病历续打,但是可能会出现打印错误,<br/>如果页面打印无法使用请用服务打印,服务打印也不行请换win10电脑打印。-->
-          <el-button type="primary" icon="Printer" @click="frontEndPrinting"
-                     title="页面打印支持病历续打,但是可能会出现打印错误,<br/>如果页面打印无法使用请用服务打印,服务打印也不行请换win10电脑打印。">
-            页面
-          </el-button>
-          <el-button type="primary" icon="Printer" @click="servicePrint"
-                     title="服务打印慢,但是不会出现页面打印错误,不支持病历续打。">
-            服务
-          </el-button>
-        </el-button-group>
-        <el-divider direction="vertical"/>
-        <el-button-group>
-          <el-button type="primary" icon="ZoomIn" @click="zoomFunc(0.1)"
-                     title="放大病历">
-          </el-button>
-          <el-button type="primary" icon="ZoomOut" @click="zoomFunc(-0.1)"
-                     title="缩小病历">
-          </el-button>
-        </el-button-group>
-
-        <el-divider direction="vertical"/>
-        <el-select v-model="reviewMode"
-                   style="width: 60px; "
-                   @change="isRevisionMode"
-                   title="审阅模式">
-          <el-option :value="0" label="关闭"
-                     title="页面上不显示修改记录"/>
-          <el-option :value="1" label="开启"
-                     title="病历右侧会以列表的形式显示 添加,删除,更新的记录"/>
-          <el-option :value="2" label="嵌入"
-                     title="嵌入病历显示修改记录,新增的记录会用背景颜色标记,删除的记录 通过画删除线标记"/>
-        </el-select>
-        <el-button-group>
-          <el-button icon="RefreshLeft"
-                     @click="clickUndo('undo')"
-                     title="撤销"/>
-          <el-button icon="RefreshRight"
-                     @click="clickUndo('redo')"
-                     title="重做"/>
-        </el-button-group>
-        <el-button-group>
-          <el-button title="仅在病程记录中生效,根据病程记录的时间来进行排序,从小到大。"
-                     icon="SortDown"
-                     @click="diseaseCourseSequencing"/>
-          <el-button title="为页面添加分页标识符,分页符后强制为新页面。" @click="paginationSymbol">
-            <i class="iconfont icon-chaifenyemian"></i>
-          </el-button>
-        </el-button-group>
-        <el-divider direction="vertical" v-show="!completeModeSwitch"/>
-        <el-button-group v-show="!completeModeSwitch">
-          <el-button title="收起左边模板"
-                     @click="foldBothSides.isLeft= !foldBothSides.isLeft">
-            <el-icon>
-              <Fold/>
-            </el-icon>
-          </el-button>
-          <el-button title="收起右边片段"
-                     @click="foldBothSides.isRight= !foldBothSides.isRight">
-            <el-icon>
-              <Expand/>
-            </el-icon>
-          </el-button>
-        </el-button-group>
-        <el-divider direction="vertical"/>
-        <el-checkbox v-model="autoSave" label="自动保存" @change="autoSaveChange"/>
-        <el-divider direction="vertical"/>
-      </div>
+    <el-header>
+      <el-button-group>
+        <el-button :disabled="!emrConfig.editor"
+                   type="success"
+                   icon="CircleCheck"
+                   @click="clickSaveData">
+          保存
+        </el-button>
+        <el-button
+            type="primary"
+            title="提交不是保存"
+            @click="clickToSubmitTheMedicalRecord"
+            :disabled="!documentId || !emrConfig.editor">
+          提交病历
+        </el-button>
+        <el-button :disabled="!emrConfig.editor"
+                   icon="Delete" type="danger"
+                   @click="clickDelete">
+          删除
+        </el-button>
+        <el-button @click="recoveryDialog = true">
+          恢复
+        </el-button>
+      </el-button-group>
+      <el-divider direction="vertical"/>
+      <el-button-group>
+        <!--  工具   -->
+        <emr-auxiliary-tools :pat-info="props.huanZheXinXi"
+                             @to-fill-in-data="clickToFillInData"
+                             :emr-data="patientData"/>
+        <el-button @click="drgIntelligentGrouping"
+                   type="primary"
+                   title="drg的预分组">
+          DRG分组
+        </el-button>
+      </el-button-group>
+      <el-divider direction="vertical"/>
+      <!--   恢复到上一次保存的状态   -->
+      <historical-emr v-if="recoveryDialog"
+                      @closed="recoveryDialog = false"
+                      :docunent-id="documentId"
+                      @restore-data="restoreData"/>
+      <el-button-group>
+        <!--        页面打印支持病历续打,但是可能会出现打印错误,<br/>如果页面打印无法使用请用服务打印,服务打印也不行请换win10电脑打印。-->
+        <el-button type="primary" icon="Printer" @click="frontEndPrinting"
+                   title="页面打印支持病历续打,但是可能会出现打印错误,<br/>如果页面打印无法使用请用服务打印,服务打印也不行请换win10电脑打印。">
+          页面
+        </el-button>
+        <el-button type="primary" icon="Printer" @click="servicePrint"
+                   title="服务打印慢,但是不会出现页面打印错误,不支持病历续打。">
+          服务
+        </el-button>
+      </el-button-group>
+      <el-divider direction="vertical"/>
+      <el-button-group>
+        <el-button type="primary" icon="ZoomIn" @click="zoomFunc(0.1)"
+                   title="放大病历">
+        </el-button>
+        <el-button type="primary" icon="ZoomOut" @click="zoomFunc(-0.1)"
+                   title="缩小病历">
+        </el-button>
+      </el-button-group>
+
+      <el-divider direction="vertical"/>
+      <el-select v-model="reviewMode"
+                 style="width: 60px; "
+                 @change="isRevisionMode"
+                 title="审阅模式">
+        <el-option :value="0" label="关闭"
+                   title="页面上不显示修改记录"/>
+        <el-option :value="1" label="开启"
+                   title="病历右侧会以列表的形式显示 添加,删除,更新的记录"/>
+        <el-option :value="2" label="嵌入"
+                   title="嵌入病历显示修改记录,新增的记录会用背景颜色标记,删除的记录 通过画删除线标记"/>
+      </el-select>
+      <el-button-group>
+        <el-button icon="RefreshLeft"
+                   @click="clickUndo('undo')"
+                   title="撤销"/>
+        <el-button icon="RefreshRight"
+                   @click="clickUndo('redo')"
+                   title="重做"/>
+      </el-button-group>
+      <el-button-group>
+        <el-button title="仅在病程记录中生效,根据病程记录的时间来进行排序,从小到大。"
+                   icon="SortDown"
+                   @click="diseaseCourseSequencing"/>
+        <el-button title="为页面添加分页标识符,分页符后强制为新页面。" @click="paginationSymbol">
+          <i class="iconfont icon-chaifenyemian"></i>
+        </el-button>
+      </el-button-group>
+      <el-divider direction="vertical" v-show="!completeModeSwitch"/>
+      <el-button-group v-show="!completeModeSwitch">
+        <el-button title="收起左边模板"
+                   @click="foldBothSides.isLeft= !foldBothSides.isLeft">
+          <el-icon>
+            <Fold/>
+          </el-icon>
+        </el-button>
+        <el-button title="收起右边片段"
+                   @click="foldBothSides.isRight= !foldBothSides.isRight">
+          <el-icon>
+            <Expand/>
+          </el-icon>
+        </el-button>
+      </el-button-group>
+      <el-divider direction="vertical"/>
+      <el-checkbox v-model="autoSave" label="自动保存" @change="autoSaveChange"/>
+      <el-divider direction="vertical"/>
     </el-header>
     <el-container>
       <div class="modLeftRef" v-show="completeModeSwitch">

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

@@ -206,12 +206,12 @@ const openOrCloseMode = (val) => {
   if (val) {
     modHeaderRef.value.appendChild(headerRef.value);
     modHeaderRef.value.appendChild(patInfoRef.value);
-    modHeaderRef.value.appendChild(emrMainRef.value.headerRef);
+    // modHeaderRef.value.appendChild(emrMainRef.value.headerRef);
     emrMainRef.value.turnOnConciseMode();
   } else {
     headerRefOld.value.appendChild(headerRef.value)
     patInfoRefOld.value.appendChild(patInfoRef.value)
-    emrMainRef.value.headerRefOld.appendChild(emrMainRef.value.headerRef)
+    // emrMainRef.value.headerRefOld.appendChild(emrMainRef.value.headerRef)
     emrMainRef.value.exitConciseMode();
   }
   completeModeSwitch.value = val