refactor(treatment-report): restructure treatment report form and components
- Replace SelectDPJP with SelectDoctor component - Update schema naming from ActionReport to TreatmentReport - Add doctor selection functionality to treatment report form - Improve form layout and field organization - Update related model imports to use single quotes - add fragment for better form grouping - cherry pick form field from another branch
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
<script setup lang="ts">
|
||||
// type
|
||||
import { genDoctor, type Doctor } from '~/models/doctor'
|
||||
|
||||
// components
|
||||
import AppTreatmentReportEntry from '~/components/app/treatment-report/entry-form.vue'
|
||||
|
||||
const doctors = ref<Doctor[]>([])
|
||||
|
||||
// TODO: dummy data
|
||||
;(() => {
|
||||
doctors.value = [genDoctor()]
|
||||
})()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AppTreatmentReportEntry />
|
||||
<AppTreatmentReportEntry
|
||||
:isLoading="false"
|
||||
:doctors="doctors"
|
||||
/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user