From 865bbbdce987471e1e5eb8f3f9634c7ce5965d2f Mon Sep 17 00:00:00 2001 From: Khafid Prayoga Date: Thu, 11 Sep 2025 14:46:50 +0700 Subject: [PATCH] init specialist feature --- app/components/app/specialist/entry-form.vue | 37 ++----------------- app/components/app/specialist/list-cfg.ts | 20 +--------- app/components/content/specialist/entry.ts | 30 ++++----------- app/components/content/specialist/list.vue | 30 +++++++-------- .../(features)/org-src/specialist/index.vue | 4 +- 5 files changed, 28 insertions(+), 93 deletions(-) diff --git a/app/components/app/specialist/entry-form.vue b/app/components/app/specialist/entry-form.vue index 0b3a0049..23667e8c 100644 --- a/app/components/app/specialist/entry-form.vue +++ b/app/components/app/specialist/entry-form.vue @@ -6,30 +6,20 @@ import Field from '~/components/pub/custom-ui/form/field.vue' import Label from '~/components/pub/custom-ui/form/label.vue' import Select from '~/components/pub/custom-ui/form/select.vue' -interface InstallationFormData { +interface SpecialistFormData { name: string code: string encounterClassCode: string } const props = defineProps<{ - installation: { - msg: { - placeholder: string - } - items: { - value: string - label: string - code: string - }[] - } schema: any - initialValues?: Partial + initialValues?: Partial errors?: FormErrors }>() const emit = defineEmits<{ - 'submit': [values: InstallationFormData, resetForm: () => void] + 'submit': [values: SpecialistFormData, resetForm: () => void] 'cancel': [resetForm: () => void] }>() @@ -37,7 +27,7 @@ const formSchema = toTypedSchema(props.schema) // Form submission handler function onSubmitForm(values: any, { resetForm }: { resetForm: () => void }) { - const formData: InstallationFormData = { + const formData: SpecialistFormData = { name: values.name || '', code: values.code || '', encounterClassCode: values.encounterClassCode || '', @@ -89,25 +79,6 @@ function onCancelForm({ resetForm }: { resetForm: () => void }) { - - - - - - - -