feat(sep): modify server request for vclaim
This commit is contained in:
@@ -7,9 +7,12 @@ import type { PatientEntity } from '~/models/patient'
|
||||
|
||||
// Services
|
||||
import { getPatientDetail, getPatients } from '~/services/patient.service'
|
||||
import { getList as getProvinceList } from '~/services/vclaim-region-province.service'
|
||||
import { getList as getCityList } from '~/services/vclaim-region-city.service'
|
||||
import { getList as getDistrictList } from '~/services/vclaim-region-district.service'
|
||||
import { getList as getDiagnoseReferralList } from '~/services/vclaim-diagnose-referral.service'
|
||||
import { getList as getVclaimMonitoringVisitList } from '~/services/vclaim-monitoring-visit.service'
|
||||
import { getList as getVclaimMonitoringHistoryList } from '~/services/vclaim-monitoring-history.service'
|
||||
import { getList as geMonitoringVisitList } from '~/services/vclaim-monitoring-visit.service'
|
||||
import { getList as getMonitoringHistoryList } from '~/services/vclaim-monitoring-history.service'
|
||||
|
||||
const openPatient = ref(false)
|
||||
const openLetter = ref(false)
|
||||
@@ -159,12 +162,22 @@ function handleEvent(value: string) {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
getDiagnoseReferralList().then(
|
||||
(value) => {
|
||||
console.log('value:', value)
|
||||
},
|
||||
)
|
||||
getVclaimMonitoringHistoryList({ nop: '0002078925513', tglawal: '2025-07-20', tglakhir: '2025-10-10' }).then(
|
||||
getProvinceList().then((value) => {
|
||||
console.log('value:', value)
|
||||
})
|
||||
getCityList({ province: '14' }).then((value) => {
|
||||
console.log('value:', value)
|
||||
})
|
||||
getDistrictList({ city: '0187' }).then((value) => {
|
||||
console.log('value:', value)
|
||||
})
|
||||
getDiagnoseReferralList().then((value) => {
|
||||
console.log('value:', value)
|
||||
})
|
||||
geMonitoringVisitList({ tglpelayanan: '2025-10-10', jnspelayanan: 1}).then((value) => {
|
||||
console.log('value:', value)
|
||||
})
|
||||
getMonitoringHistoryList({ nop: '0002078925513', tglawal: '2025-07-20', tglakhir: '2025-10-10' }).then(
|
||||
(value) => {
|
||||
console.log('value:', value)
|
||||
},
|
||||
|
||||
@@ -51,10 +51,11 @@ export default defineEventHandler(async (event) => {
|
||||
|
||||
if (isVclaim) {
|
||||
const resClone = res.clone()
|
||||
const responseBody = await resClone.json()
|
||||
return {
|
||||
status: resClone.status,
|
||||
headers: resClone.headers,
|
||||
body: await resClone.json(),
|
||||
...responseBody,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user