| | |
| | | import { RoomApi, RoomVO } from '@/api/ecg/room' |
| | | import { QueueApi } from '@/api/ecg/queue' |
| | | import {PropType} from "vue"; |
| | | import {DICT_TYPE, getIntDictOptions} from "@/utils/dict"; |
| | | import {useCheckTypeStore} from "@/store/modules/checkType"; |
| | | import {getCheckTypeName} from "../../../utils/checkTypeFormatter"; |
| | | const emit = defineEmits(['refresh']) |
| | | |
| | | defineComponent({ |
| | |
| | | } |
| | | }) |
| | | |
| | | const checkTypeStore = useCheckTypeStore(); |
| | | |
| | | const openBed = async (item) => { |
| | | await QueueApi.bedOpen(item) |
| | | emit('refresh') |
| | |
| | | await QueueApi.bedClose(item) |
| | | emit('refresh') |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | | }) |
| | | |
| | | </script> |
| | | |
| | |
| | | style="width: 100%" |
| | | /> |
| | | {{bedItem.bedNo}} {{bedItem.docName}} {{bedItem.status === 30?"-暂停":""}} |
| | | <div v-for="(checkType, subIndex) in bedItem.checkTypes" :key="subIndex"> |
| | | {{getCheckTypeName(checkType)}} |
| | | </div> |
| | | <div> |
| | | {{bedItem.opType === 1?"领用":""}} |
| | | {{bedItem.opType === 2?"安装":""}} |
| | | </div> |
| | | <el-divider/> |
| | | </div> |
| | | </div> |
| | | </el-card> |