⚙️ chore (initial-nursing): remove unused functions and adjust type code
This commit is contained in:
@@ -54,29 +54,6 @@ const isLoading = reactive<DataTableLoader>({
|
|||||||
isTableLoading: false,
|
isTableLoading: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
async function getDiagnoses() {
|
|
||||||
isLoading.isTableLoading = true
|
|
||||||
const resp = await xfetch('/api/v1/diagnose-src')
|
|
||||||
if (resp.success) {
|
|
||||||
diagnoses.value = (resp.body as Record<string, any>).data
|
|
||||||
}
|
|
||||||
isLoading.isTableLoading = false
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getProcedures() {
|
|
||||||
isLoading.isTableLoading = true
|
|
||||||
const resp = await xfetch('/api/v1/procedure-src')
|
|
||||||
if (resp.success) {
|
|
||||||
procedures.value = (resp.body as Record<string, any>).data
|
|
||||||
}
|
|
||||||
isLoading.isTableLoading = false
|
|
||||||
}
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
getProcedures()
|
|
||||||
getDiagnoses()
|
|
||||||
})
|
|
||||||
|
|
||||||
function handleOpen(type: string) {
|
function handleOpen(type: string) {
|
||||||
if (type === 'fungsional') {
|
if (type === 'fungsional') {
|
||||||
isOpenDiagnose.value = true
|
isOpenDiagnose.value = true
|
||||||
@@ -105,6 +82,8 @@ async function actionHandler(type: string) {
|
|||||||
{},
|
{},
|
||||||
toast,
|
toast,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
backToList()
|
||||||
} else {
|
} else {
|
||||||
console.log('Ada error di form', result)
|
console.log('Ada error di form', result)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import {
|
|||||||
handleActionEdit,
|
handleActionEdit,
|
||||||
handleActionRemove,
|
handleActionRemove,
|
||||||
handleCancelForm,
|
handleCancelForm,
|
||||||
} from '~/handlers/consultation.handler'
|
} from '~/handlers/soapi-early.handler'
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
import { getList, getDetail } from '~/services/soapi-early.service'
|
import { getList, getDetail } from '~/services/soapi-early.service'
|
||||||
@@ -63,7 +63,7 @@ const {
|
|||||||
fetchFn: async ({ page, search }) => {
|
fetchFn: async ({ page, search }) => {
|
||||||
const result = await getList({
|
const result = await getList({
|
||||||
'encounter-id': id,
|
'encounter-id': id,
|
||||||
typeCode: 'dev-record',
|
'type-code': 'early-nursery',
|
||||||
includes: 'encounter',
|
includes: 'encounter',
|
||||||
search,
|
search,
|
||||||
page,
|
page,
|
||||||
|
|||||||
Reference in New Issue
Block a user