refactor(glob:form): update form handling and type definitions

- Migrate from Form component to vee-validate useForm
- Update combobox component to support number values
- Modify base model ID type for mock data
- Improve type safety in treatment report schema
- Add proper form submission handling
This commit is contained in:
Khafid Prayoga
2025-11-25 20:46:04 +07:00
parent 3fbcdf9e2a
commit 6a29fdfd50
7 changed files with 86 additions and 40 deletions
@@ -4,6 +4,7 @@ import { genDoctor, type Doctor } from '~/models/doctor'
// components
import AppTreatmentReportEntry from '~/components/app/treatment-report/entry-form.vue'
import type { TreatmentReportFormData } from '~/schemas/treatment-report.schema'
const doctors = ref<Doctor[]>([])
@@ -17,5 +18,12 @@ const doctors = ref<Doctor[]>([])
<AppTreatmentReportEntry
:isLoading="false"
:doctors="doctors"
:initialValues="
{
operatorTeam: {
// dpjpId: -1,
},
} as TreatmentReportFormData
"
/>
</template>