diff --git a/specimen-collection/components/filter.vue b/specimen-collection/components/filter.vue index 8e024d9..e77ae44 100644 --- a/specimen-collection/components/filter.vue +++ b/specimen-collection/components/filter.vue @@ -14,7 +14,7 @@
- DARAH - SWAB/SEKRET + {{ y }}
-

PEMERIKSAAN

+

{{ $t('message.examination') }}

- Hematologi Lengkap - Golongan Darah Rhesus - Kultur Usap Tenggorok (Vitek) + {{ x }}
@@ -167,19 +164,9 @@ return { menu: false, visible: false, - items: [ - { - specimen: "EDTA Rutin", - barcode: "055000035LSE1A", - }, - { - specimen: "EDTA Rutin", - barcode: "0550000AA223FF", - }, - ], headers: [ { - title: "SPECIMEN", + title: this.$t('message.tableDetail.speciment'), align: "start", sortable: false, key: "name", @@ -187,7 +174,7 @@ class: "font-weight-bold", }, { - title: "BARCODE", + title: this.$t('message.tableDetail.barcode'), align: "start", sortable: false, key: "name", @@ -195,7 +182,7 @@ class: "font-weight-bold", }, { - title: "REQUIREMENT", + title: this.$t('message.tableDetail.requirement'), align: "center", sortable: false, key: "name", @@ -203,7 +190,7 @@ class: "font-weight-bold", }, { - title: "AKSI", + title: this.$t('message.tableDetail.action'), align: "center", sortable: false, key: "name", @@ -214,12 +201,36 @@ }; }, computed: { - selected() { - return this.$store.state.collection.selected_patients; + selected: { + get() { + return this.$store.state.collection.selected_patients; + }, + set(data) { + this.$store.commit("setSelectedPatients", data); + } + }, + details: { + get() { + return this.$store.state.collection.details; + } + }, + pemeriksaan() { + return this.$store.state.collection.pemeriksaan; } }, methods: { - + setIconCall(status) { + switch (status.toLowerCase()) { + case "call": + return "fluent:arrow-sync-24-regular"; + default: + return "fluent:speaker-2-24-regular"; + } + }, + setCall(data) { + data.status = "Call"; + this.selected = data; + } }, } diff --git a/specimen-collection/language.js b/specimen-collection/language.js index b3b6368..cdf32a9 100644 --- a/specimen-collection/language.js +++ b/specimen-collection/language.js @@ -1,32 +1,56 @@ 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" + filter: { + date: "Date", + noreg: "No. Reg / Name", + group: "Customer Group", + station: "Station", + location: "Location", + }, + tablePatient: { + title: "PATIENT", + date: "DATE", + noreg: "NO. REG", + group: "CUSTOMER GROUP", + name: "NAME", + status: "STATUS" + }, + tableDetail: { + title: "STAFF", + speciment: "SPECIMENT", + barcode: "BARCODE", + requirement: "REQUIREMENT", + action: "ACTION" + }, + examination: "EXAMINATION" }, }, 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" + filter: { + date: "Tanggal", + noreg: "No. Reg / Nama", + group: "Kel. Pelanggan", + station: "Station", + location: "Lokasi", + }, + tablePatient: { + title: "PASIEN", + date: "TANGGAL", + noreg: "NO. REG", + group: "KEL. PELANGGAN", + name: "NAMA", + status: "STATUS" + }, + tableDetail: { + title: "STAF", + speciment: "SPECIMEN", + barcode: "BARCODE", + requirement: "PRASYARAT", + action: "AKSI" + }, + examination: "PEMERIKSAAN" }, }, }; \ No newline at end of file diff --git a/specimen-collection/modules/collection.js b/specimen-collection/modules/collection.js index 4c4e9cf..dd81ea7 100644 --- a/specimen-collection/modules/collection.js +++ b/specimen-collection/modules/collection.js @@ -1,13 +1,15 @@ const store = { state() { return { + date: new Date(), + temp_dropdown: ["Lorem", "ipsum", "dolor", "sit", "amet"], patients: [ { tanggal: "31-07-2024", noreg: "055000037LA", kelpelanggan: "PASIEN MANDIRI", nama: "Tn. Alpha", - status: "call", + status: "New", }, { tanggal: "31-07-2024", @@ -31,6 +33,24 @@ const store = { nama: "-", status: "-", }, + details: { + staff: "NOVITA", + specimen: [ + { + specimen: "EDTA Rutin", + barcode: "055000035LSE1A", + }, + { + specimen: "EDTA Rutin", + barcode: "0550000AA223FF", + }, + ], + jenis: ["DARAH", "SWAB/SEKRET" ] + }, + + pemeriksaan: [ + "Hematologi Lengkap", "Golongan Darah Rhesus", "Kultur Usap Tenggorokan (Vitek)", + ] }; }, mutations: { @@ -40,11 +60,12 @@ const store = { setSelectedPatients(state, data) { state.selected_patients = data }, + setDate(state, date) { + state.date = date; + } }, actions: { - selectPatient({ commit, data }) { - commit('setSelectedPatients', data); - } + } }