fix: list integration

This commit is contained in:
riefive
2025-10-02 14:12:10 +07:00
parent 6feb480a51
commit 3c046a4d82
13 changed files with 91 additions and 22 deletions
+3
View File
@@ -28,6 +28,7 @@ import {
handleActionRemove,
handleCancelForm,
} from '~/handlers/division.handler'
import { divisions, getDivisionParentList } from '~/handlers/_shared.handler'
// Services
import { getDivisions, getDivisionDetail } from '~/services/division.service'
@@ -111,6 +112,7 @@ watch([recId, recAction], () => {
onMounted(async () => {
await getDivisionList()
await getDivisionParentList(false, data.value || [])
})
</script>
@@ -127,6 +129,7 @@ onMounted(async () => {
<Dialog v-model:open="isFormEntryDialogOpen" :title="!!recItem ? title : 'Tambah Divisi'" size="lg" prevent-outside>
<AppDivisionEntryForm
:schema="DivisionSchema"
:divisions="divisions"
:values="recItem"
:is-loading="isProcessing"
:is-readonly="isReadonly"
+2 -2
View File
@@ -29,7 +29,7 @@ import {
handleActionRemove,
handleCancelForm,
} from '~/handlers/material.handler'
import { uoms, getUomList } from "~/handlers/_shared.handler"
import { uoms, getUomList } from '~/handlers/_shared.handler'
// Services
import { getMaterials, getMaterialDetail } from '~/services/material.service'
@@ -112,8 +112,8 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getUomList()
await getEquipmentList()
await getUomList()
})
</script>
+1 -1
View File
@@ -111,8 +111,8 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getEncounterClassConstants()
await getInstallationList()
await getEncounterClassConstants()
})
</script>
+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>
+1 -1
View File
@@ -112,8 +112,8 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getUnitList()
await getSpecialistList()
await getUnitList()
})
</script>
@@ -111,8 +111,8 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getSpecialistsList()
await getSubSpecialistList()
await getSpecialistsList()
})
</script>
+1 -1
View File
@@ -116,8 +116,8 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getUomList()
await getToolsList()
await getUomList()
})
</script>
+1 -1
View File
@@ -111,8 +111,8 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getInstallationList()
await getUnitList()
await getInstallationList()
})
</script>