fix: list integration
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -111,8 +111,8 @@ watch([recId, recAction], () => {
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
await getEncounterClassConstants()
|
||||
await getInstallationList()
|
||||
await getEncounterClassConstants()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -116,8 +116,8 @@ watch([recId, recAction], () => {
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
await getUomList()
|
||||
await getToolsList()
|
||||
await getUomList()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -111,8 +111,8 @@ watch([recId, recAction], () => {
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
await getInstallationList()
|
||||
await getUnitList()
|
||||
await getInstallationList()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user