From 15db237f30616f8ec62453c367fc51c6f68275e3 Mon Sep 17 00:00:00 2001 From: Abizrh Date: Wed, 3 Dec 2025 22:26:32 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat=20(summary-medic):=20implement?= =?UTF-8?q?=20summary=20medic=20entry=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/app/summary-medic/entry.vue | 52 ++++++++-------- app/components/content/summary-medic/form.vue | 60 ++++++------------- app/components/content/summary-medic/list.vue | 12 +++- app/schemas/soapi.schema.ts | 9 +++ 4 files changed, 64 insertions(+), 69 deletions(-) diff --git a/app/components/app/summary-medic/entry.vue b/app/components/app/summary-medic/entry.vue index 53dae0d0..f75e918e 100644 --- a/app/components/app/summary-medic/entry.vue +++ b/app/components/app/summary-medic/entry.vue @@ -36,13 +36,20 @@ const { watch(values, (val) => emit('update:modelValue', val), { deep: true }) // Define form fields -const [relatives, relativesAttrs] = defineField('relatives') -const [responsibleName, responsibleNameAttrs] = defineField('responsibleName') -const [responsiblePhone, responsiblePhoneAttrs] = defineField('responsiblePhone') -const [informant, informantAttrs] = defineField('informant') -const [witness1, witness1Attrs] = defineField('witness1') -const [witness2, witness2Attrs] = defineField('witness2') -const [tanggal, tanggalAttrs] = defineField('tanggal') +// const [relatives, relativesAttrs] = defineField('relatives') +const [date, dateAttrs] = defineField('date') +const [doctor, doctorAttrs] = defineField('doctor') +const [diagnosis, diagnosisAttrs] = defineField('diagnosis') +const [essay, essayAttrs] = defineField('essay') +const [plan, planAttrs] = defineField('plan') +const [note, noteAttrs] = defineField('note') + +const tanggal = ref('') +const tanggalAttrs = ref({ + type: 'date', + required: true, + disabled: props.isReadonly, +}) // Relatives list handling const addRelative = () => { @@ -77,9 +84,9 @@ const isExcluded = (key: string) => props.excludeFields?.includes(key) @@ -87,9 +94,8 @@ const isExcluded = (key: string) => props.excludeFields?.includes(key) @@ -99,9 +105,8 @@ const isExcluded = (key: string) => props.excludeFields?.includes(key)