| | |
| | | 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({ |
| | |
| | | } |
| | | }) |
| | | |
| | | let mapCheckType: Map<number, string> = new Map(); |
| | | const checkTypeStore = useCheckTypeStore(); |
| | | |
| | | const openBed = async (item) => { |
| | | await QueueApi.bedOpen(item) |
| | |
| | | emit('refresh') |
| | | } |
| | | |
| | | const getCheckTypeList = () => { |
| | | const data = getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE) |
| | | console.info( data ) |
| | | data.forEach((checkTypeItem) => { |
| | | mapCheckType.set(checkTypeItem.value, checkTypeItem.label) |
| | | }) |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | | getCheckTypeList() |
| | | }) |
| | | |
| | | </script> |
| | |
| | | /> |
| | | {{bedItem.bedNo}} {{bedItem.docName}} {{bedItem.status === 30?"-暂停":""}} |
| | | <div v-for="(checkType, subIndex) in bedItem.checkTypes" :key="subIndex"> |
| | | {{mapCheckType.get(checkType)}} |
| | | {{getCheckTypeName(checkType)}} |
| | | </div> |
| | | <div> |
| | | {{bedItem.opType === 1?"领用":""}} |
| | | {{bedItem.opType === 2?"安装":""}} |
| | | </div> |
| | | <el-divider/> |
| | | </div> |
| | | </div> |
| | | </el-card> |