Browse Source

优化医嘱录入

DESKTOP-MINPJAU\Administrator 2 years ago
parent
commit
29fad32a11

+ 19 - 9
src/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru.js

@@ -53,11 +53,11 @@ export function huoQuXiangMu(code) {
     })
 }
 
-export function huoQuFeiYongXinXi(code, serial) {
+export function huoQuFeiYongXinXi(code, serial, deptCode = '') {
     return request({
         url: url + '/huoQuFeiYongXinXi',
         method: 'get',
-        params: {code, serial},
+        params: {code, serial, deptCode},
     })
 }
 
@@ -109,13 +109,6 @@ export function huoQuMuBanShuJu(code) {
     })
 }
 
-export function baoCunMuBan(data) {
-    return request({
-        url: url + '/baoCunMuBan',
-        method: 'post',
-        data,
-    })
-}
 
 export function deleteADoctorSOrderTemplate(patternCode) {
     return request({
@@ -188,3 +181,20 @@ export function saveTheDoctorSOrder(data) {
         data: data
     })
 }
+
+export function saveTemplate(data) {
+    return request({
+        url: url + '/saveTemplate',
+        method: 'post',
+        data: data
+    })
+}
+
+
+export function doesTheTemplateExist(name) {
+    return request({
+        url: url + '/doesTheTemplateExist',
+        method: 'get',
+        params: {name}
+    })
+}

+ 17 - 25
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/BaoCunMuBan.vue

@@ -25,10 +25,10 @@
 import {computed, ref} from "vue";
 import store from '../../../store'
 import {noNeedRule} from "@/utils/public";
-import {baoCunMuBan, muBanCaoZuo} from "@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru";
 import {muBanMing} from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
-import {ElMessageBox} from "element-plus";
 import {stringNotBlank} from "@/utils/blank-utils";
+import {doesTheTemplateExist, saveTemplate} from "@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru";
+import {ElMessageBox} from "element-plus";
 
 const user = computed(() => {
   return store.state.user.info
@@ -60,33 +60,25 @@ const dianJiBaoCun = () => {
   let data = {
     patternCode: patternCode.value,
     patternName: patternName.value,
-    inputType: inputType.value,
     sortNo: sortNo.value,
     list: list.value,
-    deptCode: user.value.deptCode,
-    qingZhiTiHuan: !!muBanMing.value.patternCode
+    inputType: inputType.value
   }
-  baoCunMuBan(data).then((res) => {
-    qingKong()
-  }).catch(e => {
-    if (e.indexOf('是否替换:【900】') > -1) {
-      ElMessageBox.confirm('是否覆盖原来的数据。', '提示', {
-        type: 'warning'
-      }).then(() => {
-        let data = {
-          patternName: patternName.value,
-          inputType: inputType.value,
-          sortNo: sortNo.value,
-          list: list.value,
-          deptCode: user.value.deptCode,
-          qingZhiTiHuan: true
-        }
-        baoCunMuBan(data).then((res) => {
-          qingKong()
-        })
-      }).catch((action) => {
+
+  doesTheTemplateExist(patternName.value).then((res) => {
+    saveTemplate(data).then(() => {
+      qingKong()
+      dialog.value = false
+    })
+  }).catch(() => {
+    ElMessageBox.confirm('模板名称重复是否替换?', '提示', {
+      type: 'warning'
+    }).then(() => {
+      saveTemplate(data).then(() => {
+        qingKong()
+        dialog.value = false
       })
-    }
+    })
   })
 }
 

+ 34 - 18
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/BaoCunXinXi.vue

@@ -1,6 +1,6 @@
 <template>
-
-  <div :style="style" class="main xc_box 小手指">
+  <div :style="style"
+       class="main xc_box 小手指">
     <div ref="div" class="header">
       <div style="flex: 1">上传提示</div>
       <div class="circle_close " @click="close">
@@ -9,17 +9,14 @@
         </el-icon>
       </div>
     </div>
-
     <div class="box">
-
       <div v-for="(value, key) in tips"
            class="message"
-           :class="currentKey === key ? 'current_selected' : '' "
-           @click="clickToModify(key)">
+           :class="props.currentKey === key ? 'current_selected' : '' "
+           @click="clickToModify(key,value)">
         <div class="name">
           {{ value?.data?.orderName }}
         </div>
-
         <div v-if="value?.error" class="error">
           <div>
             错误信息:
@@ -42,39 +39,47 @@
 
   </div>
 
-
 </template>
 
 <script setup name='BaoCunXinXi' lang="ts">
 import {useDraggable} from '@vueuse/core'
 import {delCallback, setCallback} from "@/utils/websocket";
 import {$ref} from "vue/macros";
-// import {onMounted, onUnmounted, ref} from "vue";
+import {onMounted, onUnmounted, Ref, ref, watch} from "vue";
 
 const props = defineProps({
-  data: Object
+  data: Object,
+  currentKey: String
 })
 
-const div = ref(null)
+const emit = defineEmits(['openOrCloseErrorMsg', 'clickError'])
+
+const div: Ref<Document> = ref(null)
 
 const {x, y, style} = useDraggable(div, {
   initialValue: {x: 77, y: 494},
 });
 
-let tips: Object = $ref({})
+interface yzMessage {
+  data: object,
+  error: Array<string>,
+  warning: Array<string>,
+}
+
+let tips: Map<string, yzMessage> = $ref(new Map<string, yzMessage>())
 
 const close = () => {
-  console.log('关闭')
+  emit('openOrCloseErrorMsg', false)
 }
 
-let currentKey: string = $ref('')
-const clickToModify = (key) => {
-  currentKey = key
+const clickToModify = (key, value) => {
+  emit('clickError', value?.data)
 }
 
 onMounted(() => {
-  setCallback('updatedOrder', async (data) => {
+  setCallback('updatedOrder', (data: Map<string, yzMessage>) => {
     tips = data
+    emit('openOrCloseErrorMsg', true)
   })
 })
 
@@ -83,6 +88,17 @@ onUnmounted(() => {
   delCallback('updatedOrder')
 })
 
+/**
+ * 删除指定key
+ * @param key
+ */
+const clearKey = (key) => {
+  delete tips[key]
+}
+
+defineExpose({
+  clearKey
+})
 
 </script>
 
@@ -91,7 +107,7 @@ onUnmounted(() => {
 .main {
   position: fixed;
   width: 350px;
-  z-index: 20;
+  z-index: 99999;
   background-color: white;
   border-radius: 5px;
 

+ 0 - 31
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/HuoQuMuBan.vue

@@ -217,40 +217,9 @@ const clickToEditTemplate = async (row) => {
   muBanMing.value = dianJiFuJiXinXi.value
 }
 
-/* 添加子医嘱的背景颜色 */
-const differChildrenRows = ({row}) => {
-  if (row.isChildren) {
-    return 'children-row'
-  }
-}
 // 获取选中的 医嘱数据
 const xuanZhongShuJu = ref([])
-const xuanZhongMuBan = (val) => {
-  xuanZhongShuJu.value = val
-}
 
-// 用户切换全选和全不选 时 el-table中的全选不会选中子节点
-const toggleSelection = (row, selected) => {
-  if (row) {
-    row.forEach((item) => {
-      tableRef.value.toggleRowSelection(item, selected)
-    })
-  }
-}
-
-let flag = false // 默认 为全不选
-const quanXuanMuBan = (selection) => {
-  flag = !flag
-  selection.forEach((item) => {
-    if (stringNotBlank(item.children)) {
-      toggleSelection(item.children, flag)
-    }
-  })
-  if (!flag) {
-    // 在点击了全不选中 需要清空
-    tableRef.value.clearSelection()
-  }
-}
 
 const dianJiQueDing = () => {
   xuanZhongShuJu.value = tableRef.value.getSelectionRows()

+ 11 - 9
src/utils/loading.js

@@ -1,19 +1,21 @@
-import { ElLoading } from 'element-plus'
+import {ElLoading} from 'element-plus'
 
 var loading
 
 /*开启遮罩*/
 export function startLoading() {
-  loading = ElLoading.service({
-    customClass: 'axios-loading2',
-    lock: true,
-    background: 'rgba(255,255,255,0.5)',
-  })
+    loading = ElLoading.service({
+        customClass: 'axios-loading2',
+        lock: true,
+        background: 'rgba(255,255,255,0.5)',
+    })
 }
 
 /*关闭遮罩*/
 export function endLoading() {
-  if (loading) {
-    loading.close()
-  }
+    if (loading) {
+        loading.close()
+        loading = null
+    }
 }
+

+ 1 - 0
src/utils/request.js

@@ -77,6 +77,7 @@ service.interceptors.response.use(
                 message: response.data.message,
                 duration: 3000,
                 showClose: true,
+                grouping: true,
             })
         } else if (response.data.code > 2000 && response.data.code < 3000) {
             if (response.data.code === 2003) {

+ 31 - 2
src/utils/xckeydown.js

@@ -1,8 +1,11 @@
+import {ElMessage} from "element-plus";
+
 let registerShortcuts = null
 const direction = ['ArrowRight', 'ArrowLeft', 'ArrowDown', 'ArrowUp']
-
+let disabled = false
 
 export const xcHotKey = (keyList) => {
+    enableShortcutKeys()
     registerShortcuts = keyList
     document.onkeydown = function (event) {
         shortcutTrigger(event)
@@ -14,6 +17,15 @@ export const logoutShortcut = () => {
     registerShortcuts = null
 }
 
+export const disableShortcutKeys = () => {
+    disabled = true
+}
+
+export const enableShortcutKeys = () => {
+    disabled = false
+}
+
+
 /**
  * 快捷键触发事件
  * @param event
@@ -26,12 +38,14 @@ const shortcutTrigger = (event) => {
             let pressSimultaneously = listKey + 'Key'
             if (event[pressSimultaneously] && event.key === key) {
                 event.returnValue = false
+                if (whetherToDisable()) return;
                 data[key]()
                 return
             }
             if (key === 'direction') {
                 if ((event[pressSimultaneously] && direction.includes(event.code))) {
                     event.returnValue = false
+                    if (whetherToDisable()) return;
                     data['direction'](event.key)
                     return
                 }
@@ -39,6 +53,7 @@ const shortcutTrigger = (event) => {
             if (key === 'number') {
                 if (event[pressSimultaneously] && event.code === ('Digit' + event.key)) {
                     event.returnValue = false
+                    if (whetherToDisable()) return;
                     data['number'](event.key)
                     return
                 }
@@ -46,8 +61,22 @@ const shortcutTrigger = (event) => {
         }
         if (listKey === event.key) {
             event.returnValue = false
+            if (whetherToDisable()) return;
             registerShortcuts[listKey]()
             return
         }
     }
-}
+}
+
+function whetherToDisable() {
+    // 这个打开是时候是不触发
+    if (disabled) {
+        ElMessage({
+            message: '当前快捷键无法使用',
+            type: 'warning',
+            showClose: true,
+            grouping: true,
+        })
+    }
+    return disabled
+}

+ 170 - 108
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/TianJiaYiZhu.vue

@@ -1,7 +1,10 @@
 <template>
   <!-- 上传信息提示 -->
-  <bao-cun-xin-xi/>
-
+  <bao-cun-xin-xi v-show="showErrorMessage"
+                  @clickError="clickError"
+                  :currentKey="yiZhuData.id"
+                  @openOrCloseErrorMsg="openOrCloseErrorMsg"
+                  ref="baoCunXinXiRef"/>
   <!-- 这里是获取模板的 -->
   <huo-qu-mu-ban v-if="muBanDuiHuaKuang" @close="muBanDuiHuaKuang = false"
                  @muBanShuJu="muBanShuJu"></huo-qu-mu-ban>
@@ -21,8 +24,8 @@
   <el-button :disabled="yiZhuList.length === 0" type="primary" @click="baoCunMuBanClick">保存模板</el-button>
   <el-button icon="Check" type="success" @click="baoCunYiZhuClick">保存</el-button>
   {{ count }}
-  <cuo-wu-xin-xi/>
-  <el-divider direction="vertical"></el-divider>
+  <el-button @click="showErrorMessage = true">打开错误信息</el-button>
+  <el-divider direction="vertical"/>
   <el-button :disabled="yiZhuData.serial === '00' || stringIsBlank(yiZhuData.serial)" icon="View" type="success"
              @click="HeLiYongYao.dialog = true"> 药品用法
   </el-button>
@@ -55,7 +58,6 @@
         <el-form-item class="bi_tian" label="频率:" prop="frequCode">
           <xc-table-v3 style="width: 120px"
                        v-model="yiZhuData"
-                       @keydown.enter="enterToJumpInput('frequCode')"
                        :data="yaoPinPingLvData"
                        code="frequCode"
                        name="frequCodeName"
@@ -70,13 +72,11 @@
                            :min="0"
                            ref="doseRef"
                            id="yz_dose"
-                           @keydown.enter="enterToJumpInput('dose')"
                            :precision="2"
                            style="width: 110px"
                            @change="jiSuanLingLiang"/>
           <XcSelect v-model="yiZhuData"
                     id="yz_doseUnit"
-                    @keydown.enter="enterToJumpInput('doseUnit')"
                     :data="yaoPinJiLiangData"
                     :name="['doseUnit', 'doseUnitName']" :width="80"
                     @change="xuanZheJiLiang">
@@ -295,7 +295,13 @@
       @selection-change="dianJiXuanZhongShuJu"
       :row-class-name="doctorSOrderForm"
       @row-click="whenClickingOnTheForm"
+      @expand-change="expandChange"
   >
+    <el-table-column type="expand">
+      <template #default="props">
+
+      </template>
+    </el-table-column>
     <el-table-column type="selection"></el-table-column>
     <el-table-column label="排序" type="index"></el-table-column>
     <el-table-column label="uuid" prop="id"></el-table-column>
@@ -382,11 +388,10 @@ import BaoCunMuBan from '../../../../components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/B
 import {getServerDateApi, whetherThePatientHasAllergens, yaoPinXiangMuPiPeiYiBao} from '@/api/public-api'
 import router from '@/router'
 import SouSuoYiZhu from '@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/SouSuoYiZhu.vue'
-import CuoWuXinXi from '@/components/zhu-yuan-yi-sheng/CuoWuXinXi.vue'
 import YaoPingXiangQing from '@/components/zhu-yuan-yi-sheng/he-li-yong-yao/YaoPingXiangQing.vue'
 import AllergenEntry from '@/components/zhu-yuan-yi-sheng/AllergenEntry.vue'
 import Sleep from '@/utils/sleep'
-import {logoutShortcut, xcHotKey} from '@/utils/xckeydown'
+import {disableShortcutKeys, enableShortcutKeys, logoutShortcut, xcHotKey} from '@/utils/xckeydown'
 import {BizException, ExceptionEnum} from '@/utils/BizException'
 import {setScrollTop} from "@/utils/el-table-scroll";
 import XcTableV3 from "@/components/xc/table-v3/XcTableV3.vue";
@@ -481,12 +486,13 @@ watch(
 // 搜索医嘱
 let yiZhuMingDialog = $ref(false)
 const xuanZhongFeiYong = async (row) => {
+  fuYiZhuClick()
   qingKong()
   await Sleep(600)
   closeTheDoctorSOrderSearchBox()
   yiZhuData.value = row
   if (row.serial !== '00') {
-    huoQuFeiYongXinXi(row.orderCode, row.serial)
+    huoQuFeiYongXinXi(row.orderCode, row.serial, huanZheXinXi.value.smallDept)
         .then((res) => {
           yiZhuData.value.drugFlag = row.drugFlag ? row.drugFlag : row.orderType
           // 判断是否 是皮试的药 如果是就只能有这些 给药方式
@@ -539,11 +545,9 @@ const xuanZhongFeiYong = async (row) => {
         })
   } else {
     yiZhuData.value.kjywFlag = 0
-    huoQuFeiYongXinXi(row.orderCode, '00')
+    huoQuFeiYongXinXi(row.orderCode, '00', huanZheXinXi.value.smallDept)
         .then((res) => {
           yiZhuData.value.drugFlag = row.drugFlag ? row.drugFlag : row.orderType
-          yiZhuData.value.frequCode = 'ONCE'
-          yiZhuData.value.frequCodeName = '一次'
           if (stringNotBlank(res.prompt)) {
             tiShiBiaoTi.value = res.prompt
           }
@@ -571,6 +575,9 @@ const xuanZhongFeiYong = async (row) => {
       yiZhuData.value.execUnit = huanZheXinXi.value.smallDept
       yiZhuData.value.execUnitName = huanZheXinXi.value.smallDeptName
     }
+  } else if (row.execUnit.startsWith("8")) {
+    yiZhuData.value.execUnit = huanZheXinXi.value.smallDept
+    yiZhuData.value.execUnitName = huanZheXinXi.value.smallDeptName
   }
   if (stringIsBlank(row.id)) {
     yiZhuData.value.id = uuid(8, 10)
@@ -598,7 +605,6 @@ const yaoPinPingLvData = ref([])
 const pinLvRemoteMethod = (val) => {
   huoQuZhuYuanPinLv(val).then((res) => {
     yaoPinPingLvData.value = res
-    console.log(res)
   })
 }
 /* 选择剂量 */
@@ -632,7 +638,7 @@ const fuYiZhuClick = () => {
     let data = yiZhuList.value[i]
     if (data.drugFlag === 'i' && !data.parentNo) {
       fuYiZhuData.value.push({
-        code: data.id,
+        code: Number(data.id),
         name: data.orderName
       })
     }
@@ -673,6 +679,7 @@ const tianJiaYiZhu = () => {
   let data = {
     inpatientNo: huanZheXinXi.value.inpatientNo,
     admissTimes: huanZheXinXi.value.admissTimes,
+    deptCode: huanZheXinXi.value.smallDept,
     list: [yiZhuData.value],
   }
   singleDataCheck(data).then((res) => {
@@ -694,14 +701,12 @@ const tianJiaYiZhu = () => {
       if (errorElNotification !== null) {
         errorElNotification.close()
       }
-
-      let index = tianJiaYiZhuWeiYiBiaoShi.value.findIndex(item => item.id === yiZhuData.value.id)
+      let index = yiZhuList.value.findIndex(item => item.id === yiZhuData.value.id)
       if (index > -1) {
         yiZhuList.value.splice(index, 1)
-        tianJiaYiZhuWeiYiBiaoShi.value.splice(index, 1)
         ElMessage.error('重复添加,老记录已删除。')
       }
-      tianJiaYiZhuWeiYiBiaoShi.value.push(yiZhuData.value.id)
+      baoCunXinXiRef.value.clearKey(yiZhuData.value.id)
       yiZhuList.value.push(res.data)
       qingKong()
     }
@@ -719,6 +724,10 @@ const whetherToResetTheDataSubscript = () => {
 
 /* 这个是点击单个修改的 */
 const xiuGaiYiZhu = (val, index) => {
+  if (yiZhuData.value.orderCode) {
+    ElMessage.warning('请先保存正在编辑的内容')
+    return
+  }
   xuanZhongFeiYong(val)
   ElMessage.success('你点击了修改')
   yiZhuList.value.splice(index, 1)
@@ -741,6 +750,11 @@ const dianJiFuZhiYiZhu = (val) => {
   ElMessage.success('复制成功')
 }
 
+// 展开table
+const expandChange = (row, expandedRows) => {
+  console.log(row, expandedRows)
+}
+
 let synopsisDialog = $ref({
   dialog: false,
   code: ''
@@ -753,88 +767,48 @@ const synopsis = (val) => {
 
 /* 保存信息 */
 const baoCunYiZhuClick = () => {
+  disableShortcutKeys()
   if (listIsBlank(yiZhuList.value)) {
     return ElMessage.error('请先选择数据')
   }
   let data = {
-    inpatientNo: '0409327',
-    admissTimes: 1,
+    inpatientNo: huanZheXinXi.value.inpatientNo,
+    admissTimes: huanZheXinXi.value.admissTimes,
     list: yiZhuList.value,
   }
+
   saveTheDoctorSOrder(data).then((res) => {
-    console.log(res)
+  }).finally(() => {
+    enableShortcutKeys()
   })
-  console.log(data)
 
-  return
+}
 
-  if (youWuXuanZheHuanZhe()) return
-  let yiBaoBianMaTiShi = []
-  yiZhuList.value.forEach((item) => {
-    yiBaoBianMaTiShi.push(item.orderCode + '-' + item.serial)
-  })
-  yaoPinXiangMuPiPeiYiBao(yiBaoBianMaTiShi).then((res) => {
-    if (stringNotBlank(res)) {
-      cuoWuXinXi.value = res
-      ElMessageBox.confirm(res, '提示', {
-        type: 'warning',
-        dangerouslyUseHTMLString: true,
-        confirmButtonText: '继续录入',
-      })
-          .then(() => {
-            baoCunYiZhu()
-          })
-          .catch(() => {
-          })
-    } else {
-      baoCunYiZhu()
-    }
-  })
+/* 医嘱错误信息 */
+let showErrorMessage = $ref(false)
+const baoCunXinXiRef = ref(null)
+// 打开或者关闭
+const openOrCloseErrorMsg = (val) => {
+  showErrorMessage = val
 }
 
-function baoCunYiZhu() {
-  let list = yiZhuList.value.filter((item) => {
-    return item.serial !== '00'
-  })
-  let data = {
-    inpatientNo: huanZheXinXi.value.inpatientNo,
-    admissTimes: huanZheXinXi.value.admissTimes,
-    chaRuYiZhu: true,
-    cfType: '1',
-    list: yiZhuList.value,
-  }
-  if (listNotBlank(list)) {
-    // 合理用药校验
-    jiaoYan(data).then((res) => {
-      if (res.code !== 0) {
-        drugProblem.dialog = true
-        drugProblem.url = res.ShowUrl
-      }
-      console.log(res)
+const clickError = (value) => {
+  if (yiZhuData.value.orderCode) {
+    ElMessage.warning({
+      message: '请先保存正在编辑的内容',
+      duration: 3000,
+      showClose: true,
+      grouping: true,
     })
+  } else {
+    xuanZhongFeiYong(value)
   }
-  if (store.state.user.info.code !== "02896") {
-    return
-  }
-
-  ElMessageBox.confirm('您确定要保存这些数据吗?请仔细检查数据。', '提示', {
-    type: 'warning',
-    closeOnClickModal: false,
-  })
-      .then(() => {
-        shangChuanYiZhu(data)
-            .then((res) => {
-              fuZhiYiZhu.value = []
-              router.go(-1)
-            })
-            .catch((e) => {
-              cuoWuXinXi.value = e
-            })
-      })
-      .catch(() => {
-      })
 }
 
+/* 医嘱错误信息 end */
+
+
+
 /*  这里是抗菌药物,选择了除了 1和 2 的其他都可以不用填写 */
 const kangJunYaoYongYaoFangShiGaiBian = (val) => {
   if (val !== 1 || val !== 2) {
@@ -878,19 +852,7 @@ const baoCunMuBanClick = () => {
   if (listIsBlank(yiZhuList.value)) {
     return ElMessage.error('请先选择数据')
   }
-  let data = {
-    inpatientNo: huanZheXinXi.value.inpatientNo,
-    admissTimes: huanZheXinXi.value.admissTimes,
-    list: yiZhuList.value,
-  }
-  shangChuanYiZhu(data)
-      .then((res) => {
-        baoCunMuBanRef.value.daKaiBaoCunMuBan(yiZhuList.value)
-        cuoWuXinXi.value = ''
-      })
-      .catch((e) => {
-        cuoWuXinXi.value = e
-      })
+  baoCunMuBanRef.value.daKaiBaoCunMuBan(yiZhuList.value)
 }
 
 
@@ -909,11 +871,6 @@ const dianJiXiuGaiZhiXingKeShi = () => {
   if (listIsBlank(xuanZhongShuJu.value)) {
     return ElMessage.error('请先选择数据。')
   } else {
-    // zhiXingKeShiData.value.forEach((item) => {
-    //   if (item.code === yiZhuData.value.execUnit) {
-    //     yiZhuData.value.execUnitName = item.name
-    //   }
-    // })
     xuanZhongShuJu.value.forEach((item) => {
       item.execUnit = yiZhuData.value.execUnit
       item.execUnitName = yiZhuData.value.execUnitName
@@ -1141,7 +1098,7 @@ let shortcutKeyRegistration = {
   },
 }
 
-// 回车按下 跳转到下一个 input
+/* 回车按下 跳转到下一个 input , 暂时未启用 */
 let inputList = [
   'frequCode', 'dose', 'doseUnit', 'supplyCode',
   'startTime', 'endTime', 'execUnit', 'parentNo', 'instruction',
@@ -1168,7 +1125,11 @@ const enterToJumpInput = async (val) => {
   // console.log(el)
 }
 
+/* 回车按下 跳转到下一个 input , 暂时未启用 end */
+
 onMounted(() => {
+  // huanZheXinXi.value.inpatientNo = '0409327'
+  // huanZheXinXi.value.admissTimes = 1
   xcHotKey(shortcutKeyRegistration)
   yiZhuList.value = clone(fuZhiYiZhu.value)
   for (let i = 0; i < yiZhuList.value.length; i++) {
@@ -1201,8 +1162,8 @@ onMounted(() => {
       "frequCode": "ONCE",
       "frequCodeName": "一次",
       "drugFlag": "i",
-      "supplyCode": null,
-      "supplyCodeName": null,
+      // "supplyCode": "001",
+      // "supplyCodeName": "口服",
       "drugQuan": 1,
       "instruction": " ",
       "drugSpecification": "5% 500ml /袋",
@@ -1218,10 +1179,11 @@ onMounted(() => {
       "discription": "70.00元 次(自费项目)",
       "delFlag": "0",
       "serial": "01",
-      "execUnit": "8000007",
+      "execUnit": "8010100",
       "execUnitName": "七病室",
       "newActOrderNo": 0,
       "currentPage": 0,
+      "parentNo": 14798,
       "pageSize": 0,
       "total": 0,
       "isChildren": false,
@@ -1256,7 +1218,7 @@ onMounted(() => {
       "discription": "400.00元 每个部位(自费项目)",
       "delFlag": "0",
       "serial": "01",
-      "execUnit": "8000007",
+      "execUnit": "1010100",
       "execUnitName": "七病室",
       "newActOrderNo": 0,
       "currentPage": 0,
@@ -1270,6 +1232,106 @@ onMounted(() => {
       "startTime": "2022-10-13 10:41:11",
       "orderTime": "2022-10-13 10:41:11",
       "tableIndex": 1
+    },
+    {
+      "actOrderNo": 1111111,
+      "orderCode": "01192",
+      "frequCode": "001",
+      "frequCodeName": "口服",
+      "drugFlag": "i",
+      "supplyCode": "025",
+      "supplyCodeName": "接瓶续滴",
+      "drugQuan": 1,
+      "drugSpecification": "0.9% 100ml /袋",
+      "miniUnit": "14",
+      "miniUnitName": "袋",
+      "drugWeightUnit": " ",
+      "selfBuy": "0",
+      "drugVolume": 100,
+      "drugVolUnit": "06",
+      "dose": 100,
+      "doseUnit": "06",
+      "doseUnitName": "ml",
+      "orderName": "氯化钠注射液(湖南科伦)",
+      "discription": "400.00元 每个部位(自费项目)",
+      "delFlag": "0",
+      "serial": "01",
+      "execUnit": "1010100",
+      "execUnitName": "七病室",
+      "newActOrderNo": 0,
+      "currentPage": 0,
+      "pageSize": 0,
+      "total": 0,
+      "isChildren": false,
+      "id": "1111111",
+      "drugFlagName": "大输液",
+      "actOrderNoStr": "14798",
+      "selfBuyName": "未知",
+      "startTime": "2022-10-13 10:41:11",
+      "orderTime": "2022-10-13 10:41:11",
+      "tableIndex": 2
+    },
+    {
+      "rationalDrugUseId": null,
+      "id": "56547553",
+      "orderCode": "01361",
+      "nationalCode": null,
+      "orderName": "声阻抗检查",
+      "frequCode": "ONCE",
+      "frequCodeName": "一次",
+      "instruction": null,
+      "discription": "100.00元 次(自费项目)  |100",
+      "infantFlag": null,
+      "orderTime": "2022-10-17 14:17:24",
+      "startTime": "2022-10-17 14:17:24",
+      "endTime": null,
+      "physician": null,
+      "physicianName": null,
+      "drugSpecification": "诊疗项目",
+      "drugQuan": null,
+      "supplyCode": null,
+      "supplyCodeName": null,
+      "actOrderNo": null,
+      "drugFlag": "o",
+      "enterOper": null,
+      "enterTime": null,
+      "miniUnit": null,
+      "miniUnitName": null,
+      "drugWeight": null,
+      "drugWeightUnit": null,
+      "drugWeightUnitName": null,
+      "statusFlag": null,
+      "selfBuy": null,
+      "dose": 1,
+      "doseUnit": null,
+      "doseUnitName": null,
+      "drugOcc": null,
+      "drugVolume": null,
+      "drugVolUnit": null,
+      "parentNo": null,
+      "packSize": 1,
+      "packUnit": null,
+      "paySelf": null,
+      "serial": "00",
+      "groupNo": "00",
+      "doctorFlag": null,
+      "execUnit": "1120000",
+      "execUnitName": "麻醉科",
+      "regFlag": null,
+      "ybSelfFlag": null,
+      "emergencyFlag": null,
+      "kfFlag": null,
+      "kjywFlag": 0,
+      "stockAmount": 0,
+      "yyfs": null,
+      "ssqk": null,
+      "yysj": null,
+      "ypLevel": null,
+      "delFlag": null,
+      "modifier": null,
+      "zkWardCode": null,
+      "zkDeptCode": null,
+      "tableIndex": 3
     }
   ]
 })