|
@@ -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
|