fix(sep): add external mapper for member
This commit is contained in:
@@ -15,7 +15,6 @@ import TreeSelect from '~/components/pub/my-ui/select-tree/tree-select.vue'
|
||||
|
||||
// Types
|
||||
import { IntegrationBpjsSchema, type IntegrationBpjsFormData } from '~/schemas/integration-bpjs.schema'
|
||||
import type { PatientEntity } from '~/models/patient'
|
||||
import type { TreeItem } from '~/components/pub/my-ui/select-tree/type'
|
||||
|
||||
// Helpers
|
||||
@@ -48,7 +47,6 @@ const props = defineProps<{
|
||||
cities: any[]
|
||||
districts: any[]
|
||||
specialists?: TreeItem[]
|
||||
patient?: PatientEntity | null | undefined
|
||||
objects?: any
|
||||
values?: any
|
||||
}>()
|
||||
@@ -138,7 +136,6 @@ const onSubmit = handleSubmit((values) => {
|
||||
})
|
||||
|
||||
watch(props, (value) => {
|
||||
const patient = value.patient || ({} as PatientEntity)
|
||||
const objects = value.objects || ({} as any)
|
||||
if (Object.keys(objects).length > 0) {
|
||||
sepDate.value = objects?.registerDate || new Date().toISOString().substring(0, 10)
|
||||
@@ -160,13 +157,6 @@ watch(props, (value) => {
|
||||
isDateReload.value = false
|
||||
}, 100)
|
||||
}
|
||||
if (Object.keys(patient).length > 0) {
|
||||
cardNumber.value = '-'
|
||||
nationalId.value = patient?.person?.residentIdentityNumber || '-'
|
||||
medicalRecordNumber.value = patient?.number || '-'
|
||||
patientName.value = patient?.person?.name || '-'
|
||||
phoneNumber.value = '-'
|
||||
}
|
||||
})
|
||||
|
||||
// Watch debounced search values
|
||||
|
||||
Reference in New Issue
Block a user