Browse Source

优化电子病历

DESKTOP-0GD05B0\Administrator 2 years ago
parent
commit
a2386d5fdb

+ 3 - 2
src/components/xiao-chan/xc-table-v3/XcTableV3Column.vue

@@ -13,8 +13,9 @@
     </template>
     <template v-if="props.item.cellRenderer"
               :key="item"
-              #default="{row}">
-      <component :is="props.item.cellRenderer({row, cellData: row[props.item.key]})"/>
+              #default="{row, $index}">
+      <component
+          :is="props.item.cellRenderer({row, cellData: row[props.item.key], index: props.startIndex + $index})"/>
     </template>
     <template v-if="props.item.children" v-for="ch in props.item.children">
       <xc-table-v3-column :item="ch" :start-index="startIndex"/>

+ 99 - 46
src/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrYzTemperature.vue

@@ -14,78 +14,118 @@
 <script setup name='EmrYzTemperature' lang="tsx">
 import {Ref, ref, h, onMounted} from "vue";
 import {getYzTemperature} from "@/api/zhu-yuan-yi-sheng/emr-patient";
-import EmrDrawer from "@/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrDrawer.vue";
 import XcTableV3 from "@/components/xiao-chan/xc-table-v3/XcTableV3.vue";
 import {XcColumn} from "@/components/xiao-chan/xc-table-v3/XcColumn";
-import {ElButton} from "element-plus";
-import {xcMessage} from '@/utils/xiaochan-element-plus'
 import {patInfo} from './emr-tools-store'
+import {stringIsBlank} from '@/utils/blank-utils'
 
 const columns: XcColumn[] = [
   {
-    title: '操作',
-    fixed: 'left',
-    width: 60,
-    cellRenderer: ({row}) => {
-      return h(ElButton,
-          {
-            title: '复制护理措施及效果',
-            onClick: (e) => {
-              e.stopPropagation()
-              if (row.otherInfo) {
-                window.localStorage.setItem("clipBoardData",
-                    JSON.stringify({
-                      content: [{type: 'text', data: row.otherInfo}],
-                      plainText: row.otherInfo,
-                    }))
-                xcMessage.success('复制成功。')
-              }
-            }
-          },
-          () => h('span', '复制')
-      )
-    }
+    key: 'recDateStr',
+    title: '日期',
+    width: 80,
+    cellRenderer: ({cellData}) => (
+        <span>{cellData}</span>
+    )
   },
   {
-    key: 'otherInfo',
-    title: '护理措施及效果',
-    width: 250,
-    fixed: 'left'
+    key: 'recTimeStr',
+    title: '时间',
+    width: 40,
+    cellRenderer: ({cellData}) => (
+        <span>{cellData}</span>
+    )
   },
   {
-    key: 'tempDate',
-    title: '时间',
-    width: 150
+    key: 'patientState',
+    title: '病情',
+    width: 25
   },
   {
     key: 'temperature1',
     title: '体温',
-    width: 40
+    width: 45,
+    cellRenderer: ({row}) => (
+        <span>{row.temperature1}{row.temperature1Type}</span>
+    )
   },
   {
-    key: 'pulse1',
-    title: '心率/脉搏(次/min)',
-    width: 90
+    title: '次/min',
+    children: [
+      {
+        key: ' ',
+        title: '心率',
+        width: 40,
+      }, {
+        key: 'pulse1',
+        title: '脉搏',
+        width: 40,
+      }
+    ]
   },
   {
     key: 'breathe1',
     title: '呼吸',
-    width: 90
+    width: 40
   },
   {
-    key: 'Sp02 %',
-    title: 'spo2',
-    width: 90
+    key: 'pressure1AmAndPm',
+    title: '血压',
+    width: 55,
   },
   {
-    key: '意识',
-    title: 'mind',
-    width: 90
+    key: 'spo2',
+    title: 'Sp02%',
+    width: 50
+  },
+  {
+    key: 'mind',
+    title: '意识',
+    width: 40
+  },
+  {
+    title: '入量',
+    children: [
+      {
+        title: '名称',
+        width: 80,
+        key: 'col1Name'
+      },
+      {
+        title: 'ml',
+        width: 30,
+        key: 'col1Am'
+      }
+    ]
   },
+  {
+    title: '出量',
+    children: [
+      {
+        title: '名称',
+        width: 80,
+        key: 'col1Name'
+      },
+      {
+        title: 'ml',
+        width: 30,
+        key: 'col1Am'
+      },
+      {
+        title: '颜色',
+        width: 40
+      },
+      {
+        title: '状态',
+        width: 40
+      }
+    ]
+  },
+
   {
     key: 'skin',
     title: '皮肤',
-    width: 90
+    width: 40
   },
   {
     key: 'userid',
@@ -110,12 +150,25 @@ const columns: XcColumn[] = [
     title: '管道情况',
     width: 90
   },
-
-]
+  {
+    key: 'otherInfo',
+    title: '护理措施及效果',
+    width: 240,
+  },
+];
 
 const drawer: Ref<boolean> = ref(false)
 const list: Ref<Array<any>> = ref([])
 
+const nullToEmpty = (val) => {
+  if (stringIsBlank(val)) {
+    return ''
+  } else {
+    return val
+  }
+}
+
+
 const query = () => {
   getYzTemperature(patInfo.value.inpatientNo, patInfo.value.admissTimes).then(res => {
     drawer.value = true

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

@@ -341,6 +341,7 @@ import EmrUnorderedList from "@/components/zhu-yuan-yi-sheng/emr/EmrUnorderedLis
 import HistoricalEmr from "@/components/zhu-yuan-yi-sheng/emr/HistoricalEmr.vue";
 import EmrPopup from "@/components/zhu-yuan-yi-sheng/emr/EmrPopup.vue";
 import EmrAuxiliaryTools from "@/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrAuxiliaryTools.vue";
+import {isDev} from "@/utils/public";
 
 const props = defineProps({
   huanZheXinXi: {
@@ -1258,7 +1259,9 @@ onMounted(async () => {
   })
 
   interval = setInterval(() => {
-    clickSaveData()
+    if (!isDev) {
+      clickSaveData();
+    }
   }, 1000 * 60 * 5)
 
 })