add slicing image verification
This commit is contained in:
229
image-verification/components/left.vue
Normal file
229
image-verification/components/left.vue
Normal file
@@ -0,0 +1,229 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-row>
|
||||
<v-col cols="12">
|
||||
<v-container class="bg-white rounded-lg" fluid>
|
||||
<v-row>
|
||||
<v-col cols="3">
|
||||
<v-text-field
|
||||
:label="$t('message.left.noreg')"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
append-inner-icon="mdi-magnify"
|
||||
></v-text-field
|
||||
>
|
||||
</v-col>
|
||||
<v-col cols="3">
|
||||
<v-autocomplete
|
||||
:label="$t('message.left.station')"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
menu-icon="mdi-chevron-down"
|
||||
:items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
|
||||
></v-autocomplete>
|
||||
</v-col>
|
||||
<v-col cols="5"></v-col>
|
||||
<v-col cols="1">
|
||||
<v-btn
|
||||
variant="flat"
|
||||
small
|
||||
style="height: 100%;"
|
||||
class="bg-primary rounded-lg">
|
||||
<iconify-icon
|
||||
style="font-size: 2rem;"
|
||||
icon="fluent:search-20-regular"
|
||||
></iconify-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<v-container class="bg-white rounded-lg" fluid>
|
||||
<v-data-table
|
||||
:items="xpatients"
|
||||
:headers="headers"
|
||||
return-object
|
||||
hide-default-footer
|
||||
>
|
||||
<template
|
||||
v-slot:item="{ item }"
|
||||
>
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<p class="font-weight-medium mt-2 mb-1">{{ item.noreg }}</p>
|
||||
<p class="mb-2">
|
||||
<v-chip class="ma-1" size="small" label>
|
||||
{{ item.orderdate }}
|
||||
</v-chip>
|
||||
</p>
|
||||
</td>
|
||||
<td class="text-left">
|
||||
<p>{{ item.name }}</p>
|
||||
</td>
|
||||
<td class="text-left">
|
||||
<p>{{ item.test }}</p>
|
||||
<p>{{ item.doctorname }}</p>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<div class="d-flex justify-center">
|
||||
<div
|
||||
class="pointer"
|
||||
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||
>
|
||||
<iconify-icon
|
||||
class="text-primary"
|
||||
style="font-size: 1.5rem;"
|
||||
icon="fluent:edit-24-regular"
|
||||
></iconify-icon>
|
||||
</div>
|
||||
<div
|
||||
class="pointer"
|
||||
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||
>
|
||||
<iconify-icon
|
||||
class="text-error"
|
||||
style="font-size: 1.5rem;"
|
||||
icon="fluent:dismiss-24-regular"
|
||||
></iconify-icon>
|
||||
</div>
|
||||
<div
|
||||
class="pointer"
|
||||
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||
>
|
||||
<iconify-icon
|
||||
class="text-success"
|
||||
style="font-size: 1.5rem;"
|
||||
icon="fluent:checkmark-24-regular"
|
||||
></iconify-icon>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<div class="d-flex justify-center">
|
||||
<div
|
||||
class="pointer"
|
||||
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||
>
|
||||
<iconify-icon
|
||||
class="text-grey"
|
||||
style="font-size: 1.5rem;"
|
||||
icon="fluent:arrow-hook-up-left-24-regular"
|
||||
></iconify-icon>
|
||||
</div>
|
||||
<div
|
||||
class="pointer"
|
||||
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||
>
|
||||
<iconify-icon
|
||||
class="text-green"
|
||||
style="font-size: 1.5rem;"
|
||||
icon="fluent:checkmark-starburst-24-regular"
|
||||
></iconify-icon>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-container>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="module">
|
||||
export default {
|
||||
name: "LeftComponent",
|
||||
components: {},
|
||||
mounted() {},
|
||||
data() {
|
||||
return {
|
||||
menu: false,
|
||||
visible: false,
|
||||
headers: [
|
||||
{
|
||||
title: this.$t('message.left.table.noreg'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "15%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.left.table.name'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "25%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.left.table.test'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "25%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.left.table.requirement'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "25%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.left.table.action'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "10%",
|
||||
class: "font-weight-bold",
|
||||
}
|
||||
],
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
// Akses state dari store
|
||||
xpatients() {
|
||||
return this.$store.state.patient.patients
|
||||
},
|
||||
selected_patient: {
|
||||
get() {
|
||||
return this.$store.state.patient.selected_patient
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("patient/setSelectedPatient", val)
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// Dispatch action ke store
|
||||
formatDate() {
|
||||
if (!this.date) return null;
|
||||
|
||||
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")}`;
|
||||
},
|
||||
increment() {
|
||||
this.$store.dispatch("increment");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
68
image-verification/components/main.vue
Normal file
68
image-verification/components/main.vue
Normal file
@@ -0,0 +1,68 @@
|
||||
<template>
|
||||
<v-app id="inspire">
|
||||
<one-navbar></one-navbar>
|
||||
<v-main>
|
||||
<div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100">
|
||||
<v-row>
|
||||
<v-col cols="12" md="8" sm="12" xs="12">
|
||||
<one-left></one-left>
|
||||
</v-col>
|
||||
<v-col cols="12" md="4" sm="12" xs="12">
|
||||
<one-right></one-right>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</v-main>
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
<script type="module">
|
||||
import NavbarComponent from "../../globalcomponent/one-navbar.vue";
|
||||
import LeftComponent from "./left.vue";
|
||||
import RightComponent from "./right.vue";
|
||||
export default {
|
||||
name: "Specimen",
|
||||
components: {
|
||||
"one-navbar": NavbarComponent,
|
||||
"one-left": LeftComponent,
|
||||
"one-right": RightComponent,
|
||||
},
|
||||
mounted() {},
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
// Akses state dari store
|
||||
count() {
|
||||
return this.$store.state.login.count;
|
||||
},
|
||||
email: {
|
||||
get() {
|
||||
return this.$store.state.login.email;
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("login/setEmail", val);
|
||||
},
|
||||
},
|
||||
password: {
|
||||
get() {
|
||||
return this.$store.state.login.password;
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("login/setPassword", val);
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// Dispatch action ke store
|
||||
increment() {
|
||||
this.$store.dispatch("increment");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
170
image-verification/components/right.vue
Normal file
170
image-verification/components/right.vue
Normal file
@@ -0,0 +1,170 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-row>
|
||||
<v-col cols="12">
|
||||
<v-container class="bg-white rounded-lg" fluid>
|
||||
<v-row>
|
||||
<v-col cols="5">
|
||||
<v-text-field
|
||||
:label="$t('message.right.noreg')"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
append-inner-icon="mdi-magnify"
|
||||
></v-text-field
|
||||
>
|
||||
</v-col>
|
||||
<v-col cols="5">
|
||||
<v-autocomplete
|
||||
:label="$t('message.right.station')"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
menu-icon="mdi-chevron-down"
|
||||
:items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
|
||||
></v-autocomplete>
|
||||
</v-col>
|
||||
<v-col cols="2">
|
||||
<v-btn
|
||||
variant="flat"
|
||||
small
|
||||
style="height: 100%;"
|
||||
class="bg-primary rounded-lg">
|
||||
<iconify-icon
|
||||
style="font-size: 2rem;"
|
||||
icon="fluent:send-24-regular"
|
||||
></iconify-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<v-container class="bg-white rounded-lg" fluid>
|
||||
<v-data-table
|
||||
v-model="selectedItems"
|
||||
:items="xpatientright"
|
||||
:headers="headers"
|
||||
return-object
|
||||
hide-default-footer
|
||||
>
|
||||
<template
|
||||
v-slot:item="{ item, isSelected, toggleSelect, internalItem }"
|
||||
>
|
||||
<tr>
|
||||
<td class="px-2">
|
||||
<v-checkbox-btn
|
||||
:model-value="isSelected(internalItem)"
|
||||
color="primary"
|
||||
@update:model-value="toggleSelect(internalItem)"
|
||||
></v-checkbox-btn>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p class="font-weight-medium mt-2 mb-1">{{ item.noreg }}</p>
|
||||
<p class="mb-2">
|
||||
<v-chip class="ma-1" size="small" label>
|
||||
{{ item.orderdate }}
|
||||
</v-chip>
|
||||
</p>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>{{ item.name }}</p>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>{{ item.test }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-container>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="module">
|
||||
export default {
|
||||
name: "RightComponent",
|
||||
components: {},
|
||||
mounted() {},
|
||||
data() {
|
||||
return {
|
||||
menu: false,
|
||||
visible: false,
|
||||
selectedItems: [],
|
||||
headers: [
|
||||
{
|
||||
title: "",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "15%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.right.table.noreg'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "25%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.right.table.name'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "30%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.right.table.test'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "30%",
|
||||
class: "font-weight-bold",
|
||||
}
|
||||
],
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
// Akses state dari store
|
||||
xpatientright() {
|
||||
return this.$store.state.patient.patientright
|
||||
},
|
||||
selected_patientright: {
|
||||
get() {
|
||||
return this.$store.state.patient.selected_patientright
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("patient/setSelectedPatientRight", val)
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// Dispatch action ke store
|
||||
formatDate() {
|
||||
if (!this.date) return null;
|
||||
|
||||
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")}`;
|
||||
},
|
||||
increment() {
|
||||
this.$store.dispatch("increment");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user