eight
2025-04-15 589bcdb26f8e9d3e0d5ef46d27acc901c96d50ea
src/components/RoomStatus/src/RoomStatus.vue
@@ -2,6 +2,9 @@
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({
@@ -19,6 +22,8 @@
  }
})
const checkTypeStore = useCheckTypeStore();
const openBed = async (item) => {
    await QueueApi.bedOpen(item)
    emit('refresh')
@@ -28,6 +33,10 @@
    await QueueApi.bedClose(item)
    emit('refresh')
}
/** 初始化 **/
onMounted(() => {
})
</script>
@@ -55,6 +64,14 @@
            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>