| | |
| | | <el-radio |
| | | v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_USER_SEX)" |
| | | :key="dict.value" |
| | | :value="dict.value" |
| | | > |
| | | :value="dict.value"> |
| | | {{ dict.label }} |
| | | </el-radio> |
| | | </el-radio-group> |
| | |
| | | import { AppointmentApi, AppointmentVO } from '@/api/ecg/appointment' |
| | | import {useCheckTypeStore} from "@/store/modules/checkType"; |
| | | import CheckItemPanel from "@/views/ecg/appointment/CheckItemPanel.vue"; |
| | | import {RoomStatus} from "@/components/RoomStatus"; |
| | | |
| | | /** 预约确认 表单 */ |
| | | defineOptions({ name: 'AppointmentConfirm' }) |
| | | |
| | | const checkTypeStore = useCheckTypeStore(); |
| | | |
| | | const message = useMessage() // 消息弹窗 |
| | | |
| | | const queryParams = reactive({ |
| | | patId: undefined |
| | | patId: '' |
| | | }) |
| | | |
| | | const appointmentVOList = ref<AppointmentVO[]>([]) |
| | |
| | | bookTime: new Date(), |
| | | bookDate: new Date(), |
| | | bookTimeslot: 9301030, |
| | | bookCheckType: checkTypeStore.getCheckTypeName(100) |
| | | bookCheckType: checkTypeStore.getCheckTypeName(100), |
| | | paid: 0, |
| | | }) |
| | | const formRef = ref() // 表单 Ref |
| | | |
| | |
| | | const data = await AppointmentApi.queryAndCreateAppointmentByPatId(queryParams.patId) // 对应数据库中 pat_id |
| | | console.info( data ) |
| | | appointmentVOList.value = data |
| | | if (null !== data) { |
| | | if (null !== data && data.length > 0) { |
| | | formData.value = data[0] |
| | | console.info( formData.value ) |
| | | return |
| | |
| | | |
| | | /** 重置表单 */ |
| | | const resetForm = () => { |
| | | appointmentVOList.value.length=0; |
| | | formData.value = { |
| | | id: 0, |
| | | applyNo: "", |
| | |
| | | bookTime: new Date(), |
| | | bookDate: new Date(), |
| | | bookTimeslot: 9301030, |
| | | bookCheckType: checkTypeStore.getCheckTypeName(100) |
| | | bookCheckType: checkTypeStore.getCheckTypeName(100), |
| | | paid: 0, |
| | | bookSeqNum: 0 |
| | | } |
| | | formRef.value?.resetFields() |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | | resetForm() |
| | | }) |
| | | |
| | | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |