This commit is contained in:
Your Name
2026-08-05 11:08:02 +08:00
parent 57a7c415a1
commit c2b7018a22
429 changed files with 13316 additions and 350 deletions
+15 -1
View File
@@ -206,10 +206,20 @@ import isoWeek from 'dayjs/plugin/isoWeek'
import { getDoctors } from '@/api/tcm'
import { getDictData } from '@/api/app'
import { getAvailableSlots, createAppointment, rosterLists, appointmentLists } from '@/api/doctor'
import { myPatientCreateAppointment } from '@/api/first_visit'
import feedback from '@/utils/feedback'
dayjs.extend(isoWeek)
const props = withDefaults(
defineProps<{
apiScene?: 'default' | 'my_patient'
}>(),
{
apiScene: 'default'
}
)
interface TimeSlot {
time: string
available: boolean
@@ -703,7 +713,11 @@ const handleConfirm = async () => {
console.log('提交预约参数:', params)
await createAppointment(params)
if (props.apiScene === 'my_patient') {
await myPatientCreateAppointment(params)
} else {
await createAppointment(params)
}
feedback.msgSuccess('预约成功')
visible.value = false