feat(medicine): integrate medicine api

This commit is contained in:
riefive
2025-09-29 10:08:56 +07:00
parent 11e63dde3e
commit 9f950d552d
6 changed files with 104 additions and 412 deletions
@@ -8,7 +8,7 @@ import Label from '~/components/pub/custom-ui/doc-entry/label.vue'
import Button from '~/components/pub/ui/button/Button.vue'
// Types
import type { MedicineBaseFormData } from '~/schemas/medicine.schema'
import { type BaseFormData } from '~/schemas/base.schema'
// Helpers
import type z from 'zod'
@@ -26,7 +26,7 @@ const props = defineProps<Props>()
const isLoading = props.isLoading !== undefined ? props.isLoading : false
const isReadonly = props.isReadonly !== undefined ? props.isReadonly : false
const emit = defineEmits<{
submit: [values: MedicineBaseFormData, resetForm: () => void]
submit: [values: BaseFormData, resetForm: () => void]
cancel: [resetForm: () => void]
}>()