From 738068edc5912e0a2a18ecbe13ba0e4c1f0b7c0d Mon Sep 17 00:00:00 2001 From: adibwp Date: Mon, 19 Aug 2024 08:16:33 +0700 Subject: [PATCH] add selected patient --- globalscript/theme.js | 1 + specimen-collection/components/right.vue | 9 ++++++--- specimen-collection/modules/collection.js | 8 ++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/globalscript/theme.js b/globalscript/theme.js index c0fd546..1a943de 100644 --- a/globalscript/theme.js +++ b/globalscript/theme.js @@ -20,6 +20,7 @@ var CustomTheme = { white: "#FFFFFF", grey: "#9E9E9E", "grey-lighten-5": "#FAFAFA", + "grey-darken-1": "#757575" }, }, } \ No newline at end of file diff --git a/specimen-collection/components/right.vue b/specimen-collection/components/right.vue index 82e9452..100a384 100644 --- a/specimen-collection/components/right.vue +++ b/specimen-collection/components/right.vue @@ -9,8 +9,8 @@ -

055000035LA

-

Tn. Alpha

+

{{ selected.noreg }}

+

{{ selected.nama }}

@@ -213,7 +214,9 @@ }; }, computed: { - + selected() { + return this.$store.state.collection.selected_patients; + } }, methods: { diff --git a/specimen-collection/modules/collection.js b/specimen-collection/modules/collection.js index eea265b..4c4e9cf 100644 --- a/specimen-collection/modules/collection.js +++ b/specimen-collection/modules/collection.js @@ -7,7 +7,7 @@ const store = { noreg: "055000037LA", kelpelanggan: "PASIEN MANDIRI", nama: "Tn. Alpha", - status: "New", + status: "call", }, { tanggal: "31-07-2024", @@ -25,7 +25,11 @@ const store = { }, ], selected_patients: { - + tanggal: "-", + noreg: "-", + kelpelanggan: "-", + nama: "-", + status: "-", }, }; },