From 7b1526e06bee82372ce3f75603a7b6f63128b0cc Mon Sep 17 00:00:00 2001 From: adibwp Date: Fri, 16 Aug 2024 15:36:45 +0700 Subject: [PATCH] coba add store --- globalscript/theme.js | 2 + specimen-collection/components/filter.vue | 118 +++++++++++ specimen-collection/components/left.vue | 122 ++++++++++++ specimen-collection/components/main.vue | 46 +++++ specimen-collection/components/right.vue | 228 ++++++++++++++++++++++ specimen-collection/index.html | 124 ++++++++++++ specimen-collection/language.js | 32 +++ specimen-collection/modules/collection.js | 47 +++++ 8 files changed, 719 insertions(+) create mode 100644 specimen-collection/components/filter.vue create mode 100644 specimen-collection/components/left.vue create mode 100644 specimen-collection/components/main.vue create mode 100644 specimen-collection/components/right.vue create mode 100644 specimen-collection/index.html create mode 100644 specimen-collection/language.js create mode 100644 specimen-collection/modules/collection.js diff --git a/globalscript/theme.js b/globalscript/theme.js index 91c2a42..c0fd546 100644 --- a/globalscript/theme.js +++ b/globalscript/theme.js @@ -18,6 +18,8 @@ var CustomTheme = { "success-lighten": "#E8F5E9", "success-darken": "#1B5E20", white: "#FFFFFF", + grey: "#9E9E9E", + "grey-lighten-5": "#FAFAFA", }, }, } \ No newline at end of file diff --git a/specimen-collection/components/filter.vue b/specimen-collection/components/filter.vue new file mode 100644 index 0000000..8e024d9 --- /dev/null +++ b/specimen-collection/components/filter.vue @@ -0,0 +1,118 @@ + + + + + \ No newline at end of file diff --git a/specimen-collection/components/left.vue b/specimen-collection/components/left.vue new file mode 100644 index 0000000..d67566d --- /dev/null +++ b/specimen-collection/components/left.vue @@ -0,0 +1,122 @@ + + + + + \ No newline at end of file diff --git a/specimen-collection/components/main.vue b/specimen-collection/components/main.vue new file mode 100644 index 0000000..be057bd --- /dev/null +++ b/specimen-collection/components/main.vue @@ -0,0 +1,46 @@ + + + \ No newline at end of file diff --git a/specimen-collection/components/right.vue b/specimen-collection/components/right.vue new file mode 100644 index 0000000..82e9452 --- /dev/null +++ b/specimen-collection/components/right.vue @@ -0,0 +1,228 @@ + + + + + \ No newline at end of file diff --git a/specimen-collection/index.html b/specimen-collection/index.html new file mode 100644 index 0000000..f12ff88 --- /dev/null +++ b/specimen-collection/index.html @@ -0,0 +1,124 @@ + + + + + + Specimen Collection + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/specimen-collection/language.js b/specimen-collection/language.js new file mode 100644 index 0000000..b3b6368 --- /dev/null +++ b/specimen-collection/language.js @@ -0,0 +1,32 @@ +var CustomMessages = { + en: { + message: { + login: "Log in", + title: "Log in to your account", + sublogin: "Enter your details below", + email: "Email", + password: "Password", + forgotPassword: "Forgot password?", + placeholderEmail: "Enter your email", + placeholderPassword: "Enter your password", + msgInfo: 'Enter the registered account', + errorQuery: "Error get data", + invalid: "Invalid username / password" + }, + }, + id: { + message: { + login: "Masuk", + title: "Masuk ke akun Anda", + sublogin: "Masukkan detail Anda di bawah ini", + email: "Surel", + password: "Kata Sandi", + forgotPassword: "Lupa kata sandi?", + placeholderEmail: "Isikan email anda", + placeholderPassword: "Isikan kata sandi anda", + msgInfo: "Masukkan akun terdaftar", + errorQuery: "Gagal mendapatkan data", + invalid: "Nama pengguna / kata sandi tidak valid" + }, + }, +}; \ No newline at end of file diff --git a/specimen-collection/modules/collection.js b/specimen-collection/modules/collection.js new file mode 100644 index 0000000..eea265b --- /dev/null +++ b/specimen-collection/modules/collection.js @@ -0,0 +1,47 @@ +const store = { + state() { + return { + patients: [ + { + tanggal: "31-07-2024", + noreg: "055000037LA", + kelpelanggan: "PASIEN MANDIRI", + nama: "Tn. Alpha", + status: "New", + }, + { + tanggal: "31-07-2024", + noreg: "055000036LA", + kelpelanggan: "PASIEN KLINISI", + nama: "Tn. Beta", + status: "New", + }, + { + tanggal: "30-07-2024", + noreg: "055000035LA", + kelpelanggan: "PASIEN KLINISI", + nama: "Tn. Gamma", + status: "New", + }, + ], + selected_patients: { + + }, + }; + }, + mutations: { + setPatients(state, data) { + state.patients = data + }, + setSelectedPatients(state, data) { + state.selected_patients = data + }, + }, + actions: { + selectPatient({ commit, data }) { + commit('setSelectedPatients', data); + } + } +} + +export default store \ No newline at end of file