eight
2024-10-23 83bc7f6d33934f56fd1df80c7e8975e7c887d606
src/components/RoomStatus/src/RoomStatus.vue
@@ -2,6 +2,8 @@
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";
const emit = defineEmits(['refresh'])
defineComponent({
@@ -19,6 +21,8 @@
  }
})
const checkTypeStore = useCheckTypeStore();
const openBed = async (item) => {
    await QueueApi.bedOpen(item)
    emit('refresh')
@@ -28,6 +32,10 @@
    await QueueApi.bedClose(item)
    emit('refresh')
}
/** 初始化 **/
onMounted(() => {
})
</script>
@@ -55,6 +63,13 @@
            style="width: 100%"
        />
        {{bedItem.bedNo}} {{bedItem.docName}} {{bedItem.status === 30?"-暂停":""}}
        <div v-for="(checkType, subIndex) in bedItem.checkTypes" :key="subIndex">
          {{checkTypeStore.getCheckTypeName(checkType)}}
        </div>
        <div>
          {{bedItem.opType === 1?"领用":""}}
        </div>
        <el-divider/>
      </div>
    </div>
  </el-card>