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)