| | |
| | | <script setup lang="ts"> |
| | | |
| | | import {RoomBedVO, RoomProfileVO} from "@/api/ecg/doctor"; |
| | | import {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"; |
| | | import {getCheckTypeName, getCheckTypeSeqPrefix} from "../../../utils/checkTypeFormatter"; |
| | | |
| | | defineOptions({ name: 'roomscreen' }) |
| | | let roomId = ref<number>(0) |
| | | |
| | | const checkTypeStore = useCheckTypeStore() |
| | | |
| | | const checkRelatedPatientList = ref<ScreenQueueVO[]>([]) |
| | | const installRelatedPatientList = ref<ScreenQueueVO[]>([]) |
| | |
| | | } |
| | | |
| | | const initiateSpeak = async () => { |
| | | //TODO: 测试用,暂时不播音 |
| | | return; |
| | | |
| | | curSpeakPat = await CallApi.getNextInstallCall() |
| | | if (curSpeakPat !== null) { |
| | | speak("请、" + curSpeakPat.patName + "到" + curSpeakPat.roomName + "装机"); |
| | | } |
| | | if (curSpeakPat == null) |
| | | return; |
| | | |
| | | speak("请、" + curSpeakPat.patName + "到" + curSpeakPat.roomName + "装机"); |
| | | } |
| | | |
| | | const speak = (msg) => { |
| | |
| | | </el-header> |
| | | <el-main> |
| | | <div class="layout-content"> |
| | | <div class="left"> |
| | | <div class="left" v-if="roomProfile?.callingScreenType === 10 || roomProfile?.callingScreenType === 20 || roomProfile?.callingScreenType === 40 || roomProfile?.callingScreenType === 50"> |
| | | <el-table |
| | | :data="checkRelatedPatientList" |
| | | :show-header="false" |
| | |
| | | label="预约序号" |
| | | width="60px"> |
| | | <template #default="scope"> |
| | | <span style="display:inline-block; width:60px;">{{checkTypeStore.getCheckTypeSeqPrefix(scope.row.bookCheckType)}}{{scope.row.bookSeqNum}} </span> |
| | | <span style="display:inline-block; width:60px;">{{getCheckTypeSeqPrefix(scope.row.bookCheckType)}}{{scope.row.bookSeqNum}} </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | label="检查项目" |
| | | width="80px"> |
| | | <template #default="scope"> |
| | | <span style="display:inline-block; width:80px;">{{scope.row.bookCheckType && checkTypeStore.getCheckTypeName(scope.row.bookCheckType)}} </span> |
| | | <span style="display:inline-block; width:80px;">{{scope.row.bookCheckType && getCheckTypeName(scope.row.bookCheckType)}} </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="状态" align="center" width="200px"> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div class="right"> |
| | | <div class="right" v-if="roomProfile?.callingScreenType === 30 || roomProfile?.callingScreenType === 40 || roomProfile?.callingScreenType === 50"> |
| | | <el-table |
| | | :data="installRelatedPatientList" |
| | | :show-header="false" |
| | |
| | | label="预约序号" |
| | | width="60px"> |
| | | <template #default="scope"> |
| | | <span style="display:inline-block; width:60px;">{{checkTypeStore.getCheckTypeSeqPrefix(scope.row.bookCheckType)}}{{scope.row.bookSeqNum}} </span> |
| | | <span style="display:inline-block; width:60px;">{{getCheckTypeSeqPrefix(scope.row.bookCheckType)}}{{scope.row.bookSeqNum}} </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | label="检查项目" |
| | | width="80px"> |
| | | <template #default="scope"> |
| | | <span style="display:inline-block; width:80px;">{{scope.row.bookCheckType && checkTypeStore.getCheckTypeName(scope.row.bookCheckType)}} </span> |
| | | <span style="display:inline-block; width:80px;">{{scope.row.bookCheckType && getCheckTypeName(scope.row.bookCheckType)}} </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="状态" align="center" width="200px"> |