feat(sep): add constant for vclaim
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { useRoute } from "vue-router"
|
||||
|
||||
// Components
|
||||
import AppViewHistory from '~/components/app/sep/view-history.vue'
|
||||
@@ -26,12 +27,14 @@ import { getList as geMonitoringVisitList } from '~/services/vclaim-monitoring-v
|
||||
import { getList as getMonitoringHistoryList } from '~/services/vclaim-monitoring-history.service'
|
||||
import { create as createSep, createPayload as createSepPayload } from '~/services/vclaim-sep.service'
|
||||
|
||||
const route = useRoute()
|
||||
const openPatient = ref(false)
|
||||
const openLetter = ref(false)
|
||||
const openHistory = ref(false)
|
||||
const selectedPatient = ref('')
|
||||
const selectedPatientObject = ref<PatientEntity | null>(null)
|
||||
const selectedLetter = ref('SK22334442')
|
||||
const selectedObjects = ref<any>({})
|
||||
const histories = ref<Array<SepHistoryData>>([])
|
||||
const visits = ref<Array<SepVisitData>>([])
|
||||
const patients = ref<Array<{ id: string; identity: string; number: string; bpjs: string; name: string }>>([])
|
||||
@@ -275,6 +278,10 @@ onMounted(async () => {
|
||||
console.log('value:', value)
|
||||
})
|
||||
supportCodesList.value = Object.keys(supportCodes).map((item) => ({ value: item.toString(), label: supportCodes[item] })) as any
|
||||
if (route.query) {
|
||||
selectedObjects.value = { ...route.query }
|
||||
}
|
||||
console.log('selectedObjects:', selectedObjects.value)
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user