浏览代码

患者危急值

DESKTOP-0GD05B0\Administrator 2 年之前
父节点
当前提交
87c9fce865

+ 12 - 1
src/App.vue

@@ -44,7 +44,18 @@ export default defineComponent({
         })
       })
 
-      setCallback('systemNotification',  (data) => {
+
+      setCallback('criticalValue', (data) => {
+        ElMessageBox.alert(data.message, '患者危急值', {
+          type: 'error'
+        }).then(() => {
+
+        }).catch(() => {
+
+        })
+      })
+
+      setCallback('systemNotification', (data) => {
         if (data.count) {
           let newCount = store.state.app.unreadMessageCount + data.count
           store.commit('app/setUnreadMessageCount', newCount)

+ 11 - 0
src/api/zhu-yuan-yi-sheng/critical-value.js

@@ -0,0 +1,11 @@
+import request from "@/utils/request";
+
+let url = '/criticalValue/'
+
+export function getCriticalValuePatientList(patNo) {
+    return request({
+        url: url + 'getCriticalValuePatientList',
+        method: 'get',
+        params: {patNo}
+    })
+}

+ 7 - 0
src/router/modules/dashboard.js

@@ -572,6 +572,13 @@ const route = [
                             title: '病历文本提示维护',
                         },
                     },
+                    {
+                        path: 'criticalValue',
+                        component: createNameComponent(() => import('@/views/hospitalization/zhu-yuan-yi-sheng/critical-value/CriticalValue.vue')),
+                        meta: {
+                            title: '患者危急值',
+                        },
+                    },
                 ],
             },
         ],

+ 48 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/critical-value/CriticalValue.vue

@@ -0,0 +1,48 @@
+<template>
+  <el-container>
+    <el-header>
+      住院号:
+      <el-input style="width: 120px" v-model="patNo"/>
+      <el-button @click="queryClick">查询</el-button>
+    </el-header>
+
+    <el-main>
+      <xc-table :local-data="data" :height="20">
+        <el-table-column label="住院号" prop="patNo" width="80"/>
+        <el-table-column label="姓名" prop="name" width="60"/>
+        <el-table-column label="床号" prop="bedNo" width="60"/>
+        <el-table-column label="消息" prop="message"/>
+      </xc-table>
+    </el-main>
+
+  </el-container>
+</template>
+
+<script setup name='CriticalValue'>
+import {huanZheXinXi} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
+import {getCriticalValuePatientList} from "@/api/zhu-yuan-yi-sheng/critical-value";
+import XcTable from "@/components/xiao-chan/xc-table/XcTable.vue";
+
+const patNo = ref('')
+const data = ref([])
+
+const queryClick = () => {
+  if (!patNo.value) {
+    patNo.value = ''
+  }
+  getCriticalValuePatientList(patNo.value).then((res) => {
+    data.value = res
+  })
+}
+
+watch(() => huanZheXinXi.value.inpatientNo, () => {
+  patNo.value = huanZheXinXi.value.inpatientNo
+  queryClick()
+}, {immediate: true})
+
+
+</script>
+
+<style scoped lang="scss">
+
+</style>