add translation label
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
:model-value="formatDate()"
|
:model-value="formatDate()"
|
||||||
label="Tanggal"
|
:label="$t('message.filter.date')"
|
||||||
prepend-inner-icon="mdi-calendar"
|
prepend-inner-icon="mdi-calendar"
|
||||||
hide-details
|
hide-details
|
||||||
readonly
|
readonly
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="2.2">
|
<v-col cols="2.2">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
label="No Reg / Nama"
|
:label="$t('message.filter.noreg')"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
hide-details
|
hide-details
|
||||||
append-inner-icon="mdi-magnify"
|
append-inner-icon="mdi-magnify"
|
||||||
@@ -42,29 +42,29 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="2.2">
|
<v-col cols="2.2">
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
label="Kel Pelanggan"
|
:label="$t('message.filter.group')"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
hide-details
|
hide-details
|
||||||
menu-icon="mdi-chevron-down"
|
menu-icon="mdi-chevron-down"
|
||||||
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']"
|
:items="temp_dropdown"
|
||||||
></v-autocomplete>
|
></v-autocomplete>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="2.2">
|
<v-col cols="2.2">
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
label="Station"
|
:label="$t('message.filter.station')"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
hide-details
|
hide-details
|
||||||
menu-icon="mdi-chevron-down"
|
menu-icon="mdi-chevron-down"
|
||||||
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']"
|
:items="temp_dropdown"
|
||||||
></v-autocomplete>
|
></v-autocomplete>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="2.2">
|
<v-col cols="2.2">
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
label="Lokasi"
|
:label="$t('message.filter.location')"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
hide-details
|
hide-details
|
||||||
menu-icon="mdi-chevron-down"
|
menu-icon="mdi-chevron-down"
|
||||||
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']"
|
:items="temp_dropdown"
|
||||||
></v-autocomplete>
|
></v-autocomplete>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="1">
|
<v-col cols="1">
|
||||||
@@ -98,8 +98,18 @@
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
date: {
|
date: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.collection.date;
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
this.$store.commit("collection/setDate", val);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
temp_dropdown: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.collection.temp_dropdown;
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatDate() {
|
formatDate() {
|
||||||
@@ -107,6 +117,11 @@
|
|||||||
|
|
||||||
return moment(this.date).format("DD-MM-YYYY");
|
return moment(this.date).format("DD-MM-YYYY");
|
||||||
},
|
},
|
||||||
|
deFormatedDate(date) {
|
||||||
|
if (!date) return null;
|
||||||
|
const [day, month, year] = date.split("-");
|
||||||
|
return `${year}-${month.padStart(2, "0")}-${day.padStart(2, "0")}`;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<v-container class="bg-white rounded-lg" fluid>
|
<v-container class="bg-white rounded-lg" fluid>
|
||||||
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
|
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
|
||||||
<h3 class="primary-lighten">PASIEN</h3>
|
<h3 class="primary-lighten">{{ $t('message.tablePatient.title') }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<v-data-table
|
<v-data-table
|
||||||
v-model="selected_patients"
|
v-model="selected_patients"
|
||||||
@@ -49,7 +49,15 @@ export default {
|
|||||||
selectedItems: [],
|
selectedItems: [],
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
title: "TANGGAL",
|
title: this.$t('message.tablePatient.date'),
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "15%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('message.tablePatient.noreg'),
|
||||||
align: "start",
|
align: "start",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
key: "name",
|
key: "name",
|
||||||
@@ -57,35 +65,27 @@ export default {
|
|||||||
class: "font-weight-bold",
|
class: "font-weight-bold",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "NO. REG",
|
title: this.$t('message.tablePatient.group'),
|
||||||
align: "start",
|
align: "start",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
key: "name",
|
key: "name",
|
||||||
width: "20%",
|
width: "25%",
|
||||||
class: "font-weight-bold",
|
class: "font-weight-bold",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "KEL. PELANGGAN",
|
title: this.$t('message.tablePatient.name'),
|
||||||
align: "start",
|
align: "start",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
key: "name",
|
key: "name",
|
||||||
width: "20%",
|
width: "25%",
|
||||||
class: "font-weight-bold",
|
class: "font-weight-bold",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "NAMA",
|
title: this.$t('message.tablePatient.status'),
|
||||||
align: "start",
|
align: "start",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
key: "name",
|
key: "name",
|
||||||
width: "20%",
|
width: "15%",
|
||||||
class: "font-weight-bold",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "STATUS",
|
|
||||||
align: "start",
|
|
||||||
sortable: false,
|
|
||||||
key: "name",
|
|
||||||
width: "20%",
|
|
||||||
class: "font-weight-bold",
|
class: "font-weight-bold",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -93,20 +93,21 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
patients() {
|
patients() {
|
||||||
return this.$store.state.collection.patients
|
return this.$store.state.collection.patients;
|
||||||
},
|
},
|
||||||
selected_patients: {
|
selected_patients: {
|
||||||
get() {
|
get() {
|
||||||
return this.$store.state.collection.selected_patients
|
return this.$store.state.collection.selected_patients;
|
||||||
},
|
},
|
||||||
set(data) {
|
set(data) {
|
||||||
this.$store.commit("setSelectedPatients", data)
|
this.$store.commit("setSelectedPatients", data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectItem(data) {
|
selectItem(data) {
|
||||||
this.$store.commit("setSelectedPatients", data);
|
// this.$store.commit("setSelectedPatients", data);
|
||||||
|
this.selected_patients = data;
|
||||||
},
|
},
|
||||||
isItemSelected(data) {
|
isItemSelected(data) {
|
||||||
return data.noreg === this.$store.state.collection.selected_patients.noreg
|
return data.noreg === this.$store.state.collection.selected_patients.noreg
|
||||||
|
|||||||
@@ -26,12 +26,12 @@
|
|||||||
<div
|
<div
|
||||||
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||||
class="rounded-lg bg-secondary-lighten pa-2 pointer"
|
class="rounded-lg bg-secondary-lighten pa-2 pointer"
|
||||||
|
@click="setCall(selected)"
|
||||||
>
|
>
|
||||||
<iconify-icon
|
<iconify-icon
|
||||||
class="text-secondary-darken"
|
class="text-secondary-darken"
|
||||||
style="font-size: 1.5rem;"
|
style="font-size: 1.5rem;"
|
||||||
icon="fluent:speaker-2-24-regular"
|
:icon="setIconCall(selected.status)"
|
||||||
icon="fluent:arrow-sync-24-regular"
|
|
||||||
></iconify-icon>
|
></iconify-icon>
|
||||||
</div>
|
</div>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
<p class="font-weight-medium">PID</p>
|
<p class="font-weight-medium">PID</p>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="2" class="text-end">
|
<v-col cols="2" class="text-end">
|
||||||
<p class="font-weight-medium" style="color: slategray;">asd</p>
|
<p class="font-weight-medium" style="color: slategray;">-</p>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row no-gutters>
|
<v-row no-gutters>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
|
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="10" align-self="center">
|
<v-col cols="10" align-self="center">
|
||||||
<h3 class="primary-lighten">STAF: NOVITA</h3>
|
<h3 class="primary-lighten">{{ $t('message.tableDetail.title') }}: {{ details.staff }}</h3>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="2" align-self="center" class="d-flex justify-end">
|
<v-col cols="2" align-self="center" class="d-flex justify-end">
|
||||||
<div
|
<div
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
</div>
|
</div>
|
||||||
<v-data-table
|
<v-data-table
|
||||||
:items="items"
|
:items="details.specimen"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
hide-default-footer
|
hide-default-footer
|
||||||
>
|
>
|
||||||
@@ -139,18 +139,15 @@
|
|||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
<div class="ml-3">
|
<div class="ml-3">
|
||||||
<v-chip class="mr-5 mt-2" color="primary">DARAH</v-chip>
|
<v-chip v-for="y in details.jenis" class="mr-2 mt-2" color="primary">{{ y }}</v-chip>
|
||||||
<v-chip class="mr-5 mt-2" color="primary">SWAB/SEKRET</v-chip>
|
|
||||||
</div>
|
</div>
|
||||||
</v-container>
|
</v-container>
|
||||||
<v-container class="bg-white rounded-lg mt-5" fluid>
|
<v-container class="bg-white rounded-lg mt-5" fluid>
|
||||||
<div class="bg-secondary-lighten rounded-lg pa-5">
|
<div class="bg-secondary-lighten rounded-lg pa-5">
|
||||||
<h3 class="primary-lighten">PEMERIKSAAN</h3>
|
<h3 class="primary-lighten">{{ $t('message.examination') }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<v-chip class="mr-5 mt-5" color="success">Hematologi Lengkap</v-chip>
|
<v-chip v-for="x in pemeriksaan" class="mt-5 mr-2" color="success">{{ x }}</v-chip>
|
||||||
<v-chip class="mr-5 mt-5" color="success">Golongan Darah Rhesus</v-chip>
|
|
||||||
<v-chip class="mr-5 mt-5" color="success">Kultur Usap Tenggorok (Vitek)</v-chip>
|
|
||||||
</div>
|
</div>
|
||||||
</v-container>
|
</v-container>
|
||||||
</div>
|
</div>
|
||||||
@@ -167,19 +164,9 @@
|
|||||||
return {
|
return {
|
||||||
menu: false,
|
menu: false,
|
||||||
visible: false,
|
visible: false,
|
||||||
items: [
|
|
||||||
{
|
|
||||||
specimen: "EDTA Rutin",
|
|
||||||
barcode: "055000035LSE1A",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
specimen: "EDTA Rutin",
|
|
||||||
barcode: "0550000AA223FF",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
title: "SPECIMEN",
|
title: this.$t('message.tableDetail.speciment'),
|
||||||
align: "start",
|
align: "start",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
key: "name",
|
key: "name",
|
||||||
@@ -187,7 +174,7 @@
|
|||||||
class: "font-weight-bold",
|
class: "font-weight-bold",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "BARCODE",
|
title: this.$t('message.tableDetail.barcode'),
|
||||||
align: "start",
|
align: "start",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
key: "name",
|
key: "name",
|
||||||
@@ -195,7 +182,7 @@
|
|||||||
class: "font-weight-bold",
|
class: "font-weight-bold",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "REQUIREMENT",
|
title: this.$t('message.tableDetail.requirement'),
|
||||||
align: "center",
|
align: "center",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
key: "name",
|
key: "name",
|
||||||
@@ -203,7 +190,7 @@
|
|||||||
class: "font-weight-bold",
|
class: "font-weight-bold",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "AKSI",
|
title: this.$t('message.tableDetail.action'),
|
||||||
align: "center",
|
align: "center",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
key: "name",
|
key: "name",
|
||||||
@@ -214,12 +201,36 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
selected() {
|
selected: {
|
||||||
return this.$store.state.collection.selected_patients;
|
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: {
|
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;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,32 +1,56 @@
|
|||||||
var CustomMessages = {
|
var CustomMessages = {
|
||||||
en: {
|
en: {
|
||||||
message: {
|
message: {
|
||||||
login: "Log in",
|
filter: {
|
||||||
title: "Log in to your account",
|
date: "Date",
|
||||||
sublogin: "Enter your details below",
|
noreg: "No. Reg / Name",
|
||||||
email: "Email",
|
group: "Customer Group",
|
||||||
password: "Password",
|
station: "Station",
|
||||||
forgotPassword: "Forgot password?",
|
location: "Location",
|
||||||
placeholderEmail: "Enter your email",
|
},
|
||||||
placeholderPassword: "Enter your password",
|
tablePatient: {
|
||||||
msgInfo: 'Enter the registered account',
|
title: "PATIENT",
|
||||||
errorQuery: "Error get data",
|
date: "DATE",
|
||||||
invalid: "Invalid username / password"
|
noreg: "NO. REG",
|
||||||
|
group: "CUSTOMER GROUP",
|
||||||
|
name: "NAME",
|
||||||
|
status: "STATUS"
|
||||||
|
},
|
||||||
|
tableDetail: {
|
||||||
|
title: "STAFF",
|
||||||
|
speciment: "SPECIMENT",
|
||||||
|
barcode: "BARCODE",
|
||||||
|
requirement: "REQUIREMENT",
|
||||||
|
action: "ACTION"
|
||||||
|
},
|
||||||
|
examination: "EXAMINATION"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
id: {
|
id: {
|
||||||
message: {
|
message: {
|
||||||
login: "Masuk",
|
filter: {
|
||||||
title: "Masuk ke akun Anda",
|
date: "Tanggal",
|
||||||
sublogin: "Masukkan detail Anda di bawah ini",
|
noreg: "No. Reg / Nama",
|
||||||
email: "Surel",
|
group: "Kel. Pelanggan",
|
||||||
password: "Kata Sandi",
|
station: "Station",
|
||||||
forgotPassword: "Lupa kata sandi?",
|
location: "Lokasi",
|
||||||
placeholderEmail: "Isikan email anda",
|
},
|
||||||
placeholderPassword: "Isikan kata sandi anda",
|
tablePatient: {
|
||||||
msgInfo: "Masukkan akun terdaftar",
|
title: "PASIEN",
|
||||||
errorQuery: "Gagal mendapatkan data",
|
date: "TANGGAL",
|
||||||
invalid: "Nama pengguna / kata sandi tidak valid"
|
noreg: "NO. REG",
|
||||||
|
group: "KEL. PELANGGAN",
|
||||||
|
name: "NAMA",
|
||||||
|
status: "STATUS"
|
||||||
|
},
|
||||||
|
tableDetail: {
|
||||||
|
title: "STAF",
|
||||||
|
speciment: "SPECIMEN",
|
||||||
|
barcode: "BARCODE",
|
||||||
|
requirement: "PRASYARAT",
|
||||||
|
action: "AKSI"
|
||||||
|
},
|
||||||
|
examination: "PEMERIKSAAN"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
const store = {
|
const store = {
|
||||||
state() {
|
state() {
|
||||||
return {
|
return {
|
||||||
|
date: new Date(),
|
||||||
|
temp_dropdown: ["Lorem", "ipsum", "dolor", "sit", "amet"],
|
||||||
patients: [
|
patients: [
|
||||||
{
|
{
|
||||||
tanggal: "31-07-2024",
|
tanggal: "31-07-2024",
|
||||||
noreg: "055000037LA",
|
noreg: "055000037LA",
|
||||||
kelpelanggan: "PASIEN MANDIRI",
|
kelpelanggan: "PASIEN MANDIRI",
|
||||||
nama: "Tn. Alpha",
|
nama: "Tn. Alpha",
|
||||||
status: "call",
|
status: "New",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tanggal: "31-07-2024",
|
tanggal: "31-07-2024",
|
||||||
@@ -31,6 +33,24 @@ const store = {
|
|||||||
nama: "-",
|
nama: "-",
|
||||||
status: "-",
|
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: {
|
mutations: {
|
||||||
@@ -40,11 +60,12 @@ const store = {
|
|||||||
setSelectedPatients(state, data) {
|
setSelectedPatients(state, data) {
|
||||||
state.selected_patients = data
|
state.selected_patients = data
|
||||||
},
|
},
|
||||||
|
setDate(state, date) {
|
||||||
|
state.date = date;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
selectPatient({ commit, data }) {
|
|
||||||
commit('setSelectedPatients', data);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user