- 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
30 lines
618 B
Vue
30 lines
618 B
Vue
<script setup lang="ts">
|
|
// type
|
|
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[]>([])
|
|
|
|
// TODO: dummy data
|
|
;(() => {
|
|
doctors.value = [genDoctor()]
|
|
})()
|
|
</script>
|
|
|
|
<template>
|
|
<AppTreatmentReportEntry
|
|
:isLoading="false"
|
|
:doctors="doctors"
|
|
:initialValues="
|
|
{
|
|
operatorTeam: {
|
|
// dpjpId: -1,
|
|
},
|
|
} as TreatmentReportFormData
|
|
"
|
|
/>
|
|
</template>
|