feat(sep): adjust combobox filter
This commit is contained in:
@@ -236,14 +236,28 @@ function handleEvent(menu: string, value: string) {
|
||||
}
|
||||
}
|
||||
|
||||
async function handleFetch(params: any) {
|
||||
const menu = params.menu || ''
|
||||
const value = params.value || ''
|
||||
if (menu === 'initialDiagnosis') {
|
||||
diagnoses.value = await getDiagnoseLabelList({ diagnosa: value })
|
||||
}
|
||||
if (menu === 'attendingDoctor') {
|
||||
console.log('value:', value)
|
||||
}
|
||||
if (menu === 'destinationClinic') {
|
||||
facilities.value = await getHealthFacilityLabelList({ faskes: value, 'jenis-faskes': 1 })
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
diagnoses.value = await getDiagnoseLabelList({ diagnosa: 'paru' })
|
||||
facilities.value = await getHealthFacilityLabelList({ faskes: 'Puskesmas', 'jenis-faskes': 1 })
|
||||
doctors.value = await getDoctorLabelList({
|
||||
'jenis-pelayanan': 1,
|
||||
'tgl-pelayanan': new Date().toISOString().substring(0, 10),
|
||||
'kode-spesialis': 0,
|
||||
})
|
||||
facilities.value = await getHealthFacilityLabelList({ faskes: 'Puskesmas', 'jenis-faskes': 1 })
|
||||
diagnoses.value = await getDiagnoseLabelList({ diagnosa: 'paru' })
|
||||
getProvinceList().then((value) => {
|
||||
console.log('value:', value)
|
||||
})
|
||||
@@ -273,6 +287,7 @@ onMounted(async () => {
|
||||
:diagnoses="diagnoses"
|
||||
:facilities="facilities"
|
||||
:patient="selectedPatientObject"
|
||||
@fetch="handleFetch"
|
||||
@event="handleEvent"
|
||||
/>
|
||||
<AppSepTableSearchPatient
|
||||
|
||||
Reference in New Issue
Block a user