feat (doctor): implement doctor entry form and navigation

This commit is contained in:
Abizrh
2025-08-19 17:57:32 +07:00
parent 83b1c2cad3
commit 5e4184d45a
3 changed files with 34 additions and 10 deletions

No files matched your search

+15 -1
View File
@@ -1,6 +1,20 @@
<script setup lang="ts">
function onEvent(type: string) {
if (type === 'cancel') {
navigateTo('/doctor')
} else if (type === 'draft') {
// do something
} else if (type === 'submit') {
// do something
}
}
const data = ref({
name: '',
specialization: '',
hospital: '',
})
</script>
<template>
<AppDoctorEntryForm />
<AppDoctorEntryForm v-model="data" @event="onEvent" />
</template>