| | |
| | | <script setup lang="ts"> |
| | | |
| | | import {RoomBedVO} from "@/api/ecg/doctor"; |
| | | import {RoomBedVO, RoomProfileVO} from "@/api/ecg/doctor"; |
| | | import {RoomApi} from "@/api/ecg/room"; |
| | | import {ScreenQueueVO, ScreenApi} from "@/api/ecg/screen"; |
| | | import {CallApi, CallVO} from "@/api/ecg/call"; |
| | | import {queueStatusConvert} from "../../../utils/statusFormatter"; |
| | | import {useCheckTypeStore} from "@/store/modules/checkType"; |
| | | |
| | | defineOptions({ name: 'roomscreen' }) |
| | | |
| | | const checkTypeStore = useCheckTypeStore() |
| | | |
| | | const list = ref<ScreenQueueVO[]>([]) // 列表的数据 |
| | | //const listPassed = ref<ScreenQueueVO[]>([]) // 过号列表的数据 |
| | | |
| | | let curSpeakPat : CallVO | null = null; |
| | | |
| | | const roomBed = ref<RoomBedVO>({ |
| | | roomId : null, |
| | | roomName: null, |
| | | bedNo: null |
| | | }) |
| | | const roomProfile = ref<RoomProfileVO>() |
| | | |
| | | const getList = async () => { |
| | | const data = await ScreenApi.getRoomScreenData() |
| | |
| | | |
| | | const getRoomByIp = async () => { |
| | | const data = await RoomApi.getRoomByIP() |
| | | roomBed.value = data |
| | | roomProfile.value = data |
| | | } |
| | | |
| | | const startScrolling = () => { |
| | |
| | | |
| | | <template> |
| | | <el-container style="height: 100%;"> |
| | | <el-header style="font-size: 25px">{{ roomBed.roomName }}</el-header> |
| | | <el-header style="font-size: 25px">{{ roomProfile.roomName }}</el-header> |
| | | <el-main> |
| | | <el-table |
| | | :data="list" |
| | |
| | | > |
| | | <el-table-column |
| | | prop="patName" |
| | | label="患者姓名" |
| | | width="80"> |
| | | label="预约序号" |
| | | width="60px"> |
| | | <template #default="scope"> |
| | | {{scope.row.seqNum}} {{ nameDesensitize(scope.row.patName) }} |
| | | <span style="display:inline-block; width:60px;">{{checkTypeStore.getCheckTypeSeqPrefix(scope.row.bookCheckType)}}{{scope.row.bookSeqNum}} </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="状态" align="center" width="130"> |
| | | <el-table-column |
| | | prop="patName" |
| | | label="患者姓名" |
| | | width="80px"> |
| | | <template #default="scope"> |
| | | <span style="display:inline-block; width:80px;">{{ nameDesensitize(scope.row.patName) }} </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="patName" |
| | | label="检查项目" |
| | | width="80px"> |
| | | <template #default="scope"> |
| | | <span style="display:inline-block; width:80px;">{{scope.row.bookCheckType && checkTypeStore.getCheckTypeName(scope.row.bookCheckType)}} </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="状态" align="center" width="100px"> |
| | | <template #default="scope"> |
| | | <!-- <dict-tag :type="DICT_TYPE.ECG_QUEUE_STATUS" :value="scope.row.status" />--> |
| | | {{queueStatusConvert(scope.row.status)}} |