feat/prescription-56: wip
This commit is contained in:
No files matched your search
@@ -6,7 +6,7 @@ import Header from '~/components/pub/my-ui/nav-header/prep.vue'
|
||||
import ListEntry from '~/components/app/prescription/list-entry.vue'
|
||||
import PrescriptionItemListEntry from '~/components/app/prescription-item/list-entry.vue'
|
||||
|
||||
import { prescriptionSvc } from '~/services/prescription.service'
|
||||
import { getList } from '~/services/prescription.service'
|
||||
import { usePaginatedList } from '~/composables/usePaginatedList'
|
||||
|
||||
import MixEntry from '~/components/app/prescription-item/mix-entry.vue'
|
||||
@@ -21,7 +21,7 @@ const {
|
||||
fetchData: getMedicineList,
|
||||
} = usePaginatedList({
|
||||
fetchFn: async ({ page, search }) => {
|
||||
const result = await prescriptionSvc.getList({ search, page })
|
||||
const result = await getList({ search, page })
|
||||
return { success: result.success || false, body: result.body || {} }
|
||||
},
|
||||
entityName: 'medicine',
|
||||
@@ -90,7 +90,7 @@ function addMedicineMix() {
|
||||
|
||||
<template>
|
||||
<Header :prep="{ ...headerPrep }" :ref-search-nav="refSearchNav" />
|
||||
<ListEntry v-if="!isLoading.dataListLoading" :data="[]" :isLoading="isLoading" :paginatin="{}" />
|
||||
<ListEntry v-if="!isLoading.dataListLoading" :data="[]" :isLoading="isLoading.isTableLoading" :paginatin="{}" />
|
||||
|
||||
<Dialog v-model:open="itemEntryDialogShown" :title="!!recItem ? title : 'Tambah Obat'" size="lg" prevent-outside>
|
||||
</Dialog>
|
||||
|
||||
Reference in New Issue
Block a user