fix: list integration

This commit is contained in:
riefive
2025-10-02 14:12:10 +07:00
parent fc3bda14f4
commit 693d8225bf
13 changed files with 91 additions and 22 deletions

No files matched your search

+6 -2
View File
@@ -55,7 +55,11 @@ const {
fetchData: getMedicineList,
} = usePaginatedList({
fetchFn: async (params: any) => {
const result = await getMedicines({ search: params.search, page: params['page-number'] || 0, includes: 'medicineGroup,medicineMethod,uom' })
const result = await getMedicines({
search: params.search,
page: params['page-number'] || 0,
includes: 'medicineGroup,medicineMethod,uom',
})
return { success: result.success || false, body: result.body || {} }
},
entityName: 'medicine',
@@ -120,10 +124,10 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getMedicineList()
await getMedicineGroupList()
await getMedicineMethodList()
await getUomList()
await getMedicineList()
})
</script>