eight
2024-10-23 83bc7f6d33934f56fd1df80c7e8975e7c887d606
src/components/RoomBedSelect/src/RoomBedSelect.vue
@@ -3,6 +3,7 @@
import {PropType} from "vue";
import {useUserStore} from "@/store/modules/user";
import {DICT_TYPE, getIntDictOptions} from "@/utils/dict";
import {useCheckTypeStore} from "@/store/modules/checkType";
const emit = defineEmits(['event-haveseat', 'event-leaveseat'])
defineComponent({
@@ -25,6 +26,7 @@
  }
})
const checkTypeStore = useCheckTypeStore();
const userStore = useUserStore()
const curUser = userStore.getUser
@@ -35,19 +37,10 @@
  emit('event-leaveseat', curItem)
}
let mapCheckType: Map<number, string> = new Map();
const getCheckTypeList = () => {
  const data = getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE)
  console.info( data )
  data.forEach((checkTypeItem) => {
    mapCheckType.set(checkTypeItem.value, checkTypeItem.label)
  })
}
/** 初始化 **/
onMounted(() => {
    //console.info(props.bedList)
  getCheckTypeList()
})
</script>
@@ -59,7 +52,7 @@
      <div class="deskwarp">
        <div v-for="(checkType, subIndex) in bedItem.checkTypes" :key="subIndex">
          {{mapCheckType.get(checkType)}}
          {{checkTypeStore.getCheckTypeName(checkType)}}
        </div>
        <div>
          {{bedItem.opType === 1?"领用":""}}