| | |
| | | import {defineComponent, PropType} from "vue"; |
| | | import { QueueVO } from '@/api/ecg/queue' |
| | | import {DICT_TYPE} from "@/utils/dict"; |
| | | import {PatientVO, DoctorApi} from "@/api/ecg/doctor"; |
| | | import {PatientVO, DoctorApi, RoomBedVO} from "@/api/ecg/doctor"; |
| | | import {getCheckTypeName, getCheckTypeSeqPrefix} from "../../../../utils/checkTypeFormatter"; |
| | | |
| | | defineComponent({ |
| | | name: 'QueuePanel' |
| | | }) |
| | | |
| | | const emit = defineEmits(['event_RecallFinish']) // 定义 success 事件,用于操作成功后的回调 |
| | | |
| | | const message = useMessage() // 消息弹窗 |
| | | |
| | |
| | | queue: { |
| | | type: Array as PropType<QueueVO[]>, |
| | | required: true |
| | | } |
| | | /*, |
| | | modelValue: { |
| | | type: Object as PropType<RoomVO>, |
| | | }, |
| | | room: { |
| | | type: Object as PropType<RoomBedVO>, |
| | | required: true |
| | | } |
| | | */ |
| | | }) |
| | | |
| | | const recall = async (item) => { |
| | |
| | | roomId: item.roomId, |
| | | bedNo: item.bedNo, |
| | | patId: item.patId, |
| | | jumpFlag: 0 |
| | | checkType: item.bookCheckType, |
| | | //jumpFlag: 0, |
| | | roomId_operator: props.room.roomId, |
| | | bedNo_operator: props.room.bedNo, |
| | | } |
| | | |
| | | const data = await DoctorApi.recallPatient(patientVO); |
| | | let data = "" |
| | | if (item.status === 5) // 常规、领用 过号 |
| | | data = await DoctorApi.recallPatient(patientVO); |
| | | else if (item.status === 7) |
| | | data = await DoctorApi.recallInstallPatient(patientVO); |
| | | |
| | | emit("event_RecallFinish") // 召回完成 |
| | | message.info(data) |
| | | } |
| | | |
| | |
| | | |
| | | <template> |
| | | <div v-for="(item, index) in queue" :key="index"> |
| | | {{item.patName}}{{item.passed === 0 ? "":"*"}} |
| | | <span style="display:inline-block; width:30px;"> {{item.seqNum}} </span> |
| | | <span style="display:inline-block; width:40px;"> {{getCheckTypeSeqPrefix(item.bookCheckType)}}{{item.bookSeqNum}} </span> |
| | | <span style="display:inline-block; width:70px;"> {{item.patName}}{{item.passed === 0 ? "":"*"}} </span> |
| | | <dict-tag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="item.patGender" /> |
| | | {{item.roomName}} |
| | | {{item.bedNo}} |
| | | <dict-tag :type="DICT_TYPE.ECG_CHECK_TYPE" :value="item.bookCheckType" /> |
| | | <!-- {{item.roomName}} {{item.bedNo}}--> |
| | | {{getCheckTypeName(item.bookCheckType)}} |
| | | <dict-tag :type="DICT_TYPE.ECG_QUEUE_STATUS" :value="item.status" /> |
| | | <el-button v-if="item.status === 50" @click="recall(item)"> 召回 </el-button> |
| | | <el-button v-if="item.status === 5 || item.status === 7" @click="recall(item)"> 召回 </el-button> |
| | | </div> |
| | | </template> |
| | | |
| | | <style scoped lang="scss"> |
| | | div { |
| | | padding-left: 5px; |
| | | padding-bottom: 5px; |
| | | } |
| | | |
| | | </style> |