adjust form submit,list, and detail

refactor(patient-preview): comment out unused occupation field in patient preview
fix(handler): return success response from update operation in crud handler
fix search patient
add handle del search char for ease use
This commit is contained in:
Khafid Prayoga
2025-12-11 14:15:24 +07:00
parent 8354d3819d
commit 3a4a2cc841
4 changed files with 19 additions and 6 deletions
+2 -2
View File
@@ -217,13 +217,13 @@ function onNavigate(type: ClickType) {
<DetailRow label="Pendidikan">
{{ educationOptions.find((item) => item.code === relative.education_code)?.label || '-' }}
</DetailRow>
<DetailRow label="Pekerjaan">
<!-- <DetailRow label="Pekerjaan">
{{
occupationOptions.find((item) => item.code === relative.occupation_code)?.label ||
relative.occupation_name ||
'-'
}}
</DetailRow>
</DetailRow> -->
<!-- <DetailRow label="Alamat">{{ relative.address || '-' }}</DetailRow> -->
<!-- <DetailRow label="Nomor HP">{{ relative.phoneNumber || '-' }}</DetailRow> -->
</template>
+2 -1
View File
@@ -6,7 +6,7 @@ import { Calendar, Hospital, UserCheck, UsersRound } from 'lucide-vue-next'
import RecordConfirmation from '~/components/pub/my-ui/confirmation/record-confirmation.vue'
import { ActionEvents } from '~/components/pub/my-ui/data/types'
import Header from '~/components/pub/my-ui/nav-header/prep.vue'
import Header from '~/components/pub/my-ui/nav-header/header.vue'
import SummaryCard from '~/components/pub/my-ui/summary-card/summary-card.vue'
import { usePaginatedList } from '~/composables/usePaginatedList'
@@ -46,6 +46,7 @@ const headerPrep: HeaderPrep = {
label: 'Tambah',
onClick: () => navigateTo('/client/patient/add'),
},
refSearchNav: refSearchNav,
}
// Disable dulu, ayahab kalo diminta