| | |
| | | import {DICT_TYPE, getIntDictOptions} from '@/utils/dict' |
| | | import { AppointmentApi, AppointmentVO } from '@/api/ecg/appointment' |
| | | import {useCheckTypeStore} from "@/store/modules/checkType"; |
| | | import {getCheckTypeName} from "@/utils/checkTypeFormatter"; |
| | | |
| | | /** 预约 表单 */ |
| | | defineOptions({ name: 'AppointmentForm' }) |
| | |
| | | } |
| | | } |
| | | } |
| | | const openByQueue = async (type: string, patId: string) => { |
| | | const openByQueue = async (type: string, patId: string, checkType: number) => { |
| | | dialogVisible.value = true |
| | | dialogTitle.value = t('action.' + type) |
| | | formType.value = type |
| | |
| | | if (patId) { |
| | | formLoading.value = true |
| | | try { |
| | | formData.value = await AppointmentApi.getCurAppointmentByPatId( patId ) |
| | | formData.value = await AppointmentApi.getCurAppointmentByPatIdAndCheckType( patId, checkType ) |
| | | } finally { |
| | | formLoading.value = false |
| | | } |
| | |
| | | bookTime: undefined, |
| | | bookDate: new Date().getTime(), |
| | | bookTimeslot: 9000930, |
| | | bookCheckType: checkTypeStore.getCheckTypeName(100), |
| | | bookCheckType: getCheckTypeName(100), |
| | | paid: 0, |
| | | } |
| | | formRef.value?.resetFields() |
| | |
| | | |
| | | const searchBookInfo = async () => { |
| | | const tmpPatId = formData.value.patId |
| | | if (null === tmpPatId || "" === tmpPatId) |
| | | if (null == tmpPatId || "" === tmpPatId) |
| | | return |
| | | |
| | | const data = await AppointmentApi.queryAppointmentFromHis( tmpPatId ) // 对应数据库中 pat_id |