DESKTOP-0GD05B0\Administrator 2 rokov pred
rodič
commit
fda4dab1a8

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

@@ -9,3 +9,12 @@ export function getCriticalValuePatientList(patNo) {
         params: {patNo}
     })
 }
+
+export function getCriticalValueByPatInfo(patNo, times) {
+    return request({
+        url: url + 'getCriticalValueByPatInfo',
+        method: 'get',
+        params: {patNo, times}
+    })
+}
+

+ 7 - 4
src/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrTest.vue

@@ -137,6 +137,7 @@ import {XcColumn} from "@/components/xiao-chan/xc-table-v3/XcColumn";
 import {xcMessage} from '@/utils/xiaochan-element-plus'
 import TestDescribe from "@/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/test-describe.vue";
 import {getDateRangeFormatDate} from '@/utils/date'
+import {getCriticalValueByPatInfo} from '@/api/zhu-yuan-yi-sheng/critical-value'
 
 const emits = defineEmits(['close'])
 const sidebarList = ref()
@@ -158,11 +159,13 @@ const query = async () => {
   }
   queryInspectionsIndex(param).then((res) => {
     sidebarList.value = res
+    console.log(res)
   })
 }
 
 const sidebarColums: XcColumn<any>[] = [
-  {title: '名称', key: 'aply_CTNT'}
+  {title: '名称', key: 'aply_CTNT'},
+  {title: '时间', key: 'ordr_CREATE_DATE', width: 180}
 ]
 
 
@@ -287,7 +290,8 @@ onMounted(async () => {
   dateRange.value.push(patInfo.value.admissDate)
   dateRange.value.push(await getServerDateApi())
   await query()
-  // todo 要查询患者危急值
+  // todo 检验接口没有返回危急值。
+  // let res = await getCriticalValueByPatInfo(patInfo.value.inpatientNo, patInfo.value.admissTimes)
 })
 
 </script>
@@ -299,7 +303,7 @@ onMounted(async () => {
 }
 
 .sidebar {
-  width: 220px;
+  width: 420px;
 }
 
 .main {
@@ -328,6 +332,5 @@ onMounted(async () => {
     }
   }
 
-
 }
 </style>