diff --git a/app/components/app/encounter/history-button-menu.vue b/app/components/app/encounter/history-button-menu.vue index c86ce159..9d6f3726 100644 --- a/app/components/app/encounter/history-button-menu.vue +++ b/app/components/app/encounter/history-button-menu.vue @@ -2,6 +2,12 @@ // Components import { Button } from '~/components/pub/ui/button' +const route = useRoute() +const router = useRouter() + +// Track active menu item from query param +const activeMenu = computed(() => route.query.menu as string || '') + interface ButtonItems { label: string icon: string @@ -64,16 +70,20 @@ const itemsTwo: ButtonItems[] = [ { label: 'Tarif Tindakan', icon: 'i-lucide-banknote-arrow-down', - value: 'action-fee', + value: 'price-list', type: 'icon', }, { label: 'Tarif Tindakan Paket', icon: 'i-lucide-banknote-arrow-down', - value: 'action-fee-package', + value: 'price-list-package', type: 'icon', }, ] + +function handleClick(value: string) { + router.replace({ path: route.path, query: { menu: value } }) +} diff --git a/app/components/pub/my-ui/comp-menu/comp-menu.vue b/app/components/pub/my-ui/comp-menu/comp-menu.vue index acb1d6e1..b02f2e78 100644 --- a/app/components/pub/my-ui/comp-menu/comp-menu.vue +++ b/app/components/pub/my-ui/comp-menu/comp-menu.vue @@ -2,11 +2,11 @@ import { type TabItem } from '../comp-tab/type' const props = defineProps<{ - initialActiveTab: string + initialActiveMenu: string data: TabItem[] }>() -const activeMenu = ref(props.initialActiveTab) +const activeMenu = ref(props.initialActiveMenu) const emit = defineEmits<{ changeMenu: [value: string] }>() diff --git a/public/bpjs.png b/public/bpjs.png new file mode 100644 index 00000000..6ed2a90c Binary files /dev/null and b/public/bpjs.png differ