fix slicing result entry
This commit is contained in:
@@ -1,136 +1,138 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-row>
|
||||
<v-col cols="12">
|
||||
<v-container class="bg-white rounded-lg">
|
||||
<v-container class="bg-white rounded-lg" fluid>
|
||||
|
||||
<v-row class="pb-5">
|
||||
<v-col cols="2">
|
||||
<v-menu
|
||||
v-model="menu"
|
||||
:close-on-content-click="false"
|
||||
transition="scale-transition"
|
||||
offset-y
|
||||
min-width="auto"
|
||||
max-width="290px"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-text-field
|
||||
:model-value="formatDate()"
|
||||
label="Tanggal Mulai"
|
||||
prepend-inner-icon="mdi-calendar"
|
||||
hide-details
|
||||
readonly
|
||||
variant="outlined"
|
||||
v-bind="props"
|
||||
></v-text-field>
|
||||
</template>
|
||||
<v-date-picker
|
||||
hide-header
|
||||
show-adjacent-months
|
||||
rounded="lg"
|
||||
color="primary"
|
||||
v-model="date"
|
||||
@update:modelValue="menu=false"
|
||||
></v-date-picker>
|
||||
</v-menu>
|
||||
</v-col>
|
||||
<v-col cols="4">
|
||||
<v-text-field
|
||||
label="No Reg / Nama / Jenis Kelamin"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="3">
|
||||
<v-text-field
|
||||
label="DOB / Umur"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="3">
|
||||
<v-text-field
|
||||
label="Pengirim"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="xdetails"
|
||||
return-object
|
||||
hide-default-footer
|
||||
<v-row>
|
||||
<v-col cols="2">
|
||||
<v-menu
|
||||
v-model="menu"
|
||||
:close-on-content-click="false"
|
||||
transition="scale-transition"
|
||||
offset-y
|
||||
min-width="auto"
|
||||
max-width="290px"
|
||||
>
|
||||
<template v-slot:item="{ item }">
|
||||
<tr>
|
||||
<td class="text-left" v-if="item.is_result == 'N'" colspan="8">
|
||||
<p class="font-weight-medium">{{ item.t_testname }}</p>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<p class="font-weight-medium">{{ item.t_testname }}</p>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<div class="pt-3 pb-3">
|
||||
<v-text-field
|
||||
density="compact"
|
||||
label=""
|
||||
variant="outlined"
|
||||
hide-details
|
||||
auto-grow
|
||||
></v-text-field>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<p>{{ item.result_flag }}</p>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
{{ item.normal_note }}
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
{{ item.unit_name }}
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<div class="d-flex justify-space-between">
|
||||
<div>
|
||||
{{ item.methode_name }}
|
||||
</div>
|
||||
<v-btn
|
||||
variant="text"
|
||||
small
|
||||
color="primary"
|
||||
class="bg-primary-lightens ma-0 float-left">
|
||||
<iconify-icon
|
||||
style="font-size: 2rem;"
|
||||
icon="fluent:edit-20-regular"
|
||||
></iconify-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<div class="pt-3 pb-3">
|
||||
<v-text-field
|
||||
density="compact"
|
||||
label=""
|
||||
variant="outlined"
|
||||
hide-details
|
||||
auto-grow
|
||||
></v-text-field>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-text-field
|
||||
:model-value="formatDate()"
|
||||
label="Tanggal Mulai"
|
||||
prepend-inner-icon="mdi-calendar"
|
||||
hide-details
|
||||
readonly
|
||||
variant="outlined"
|
||||
v-bind="props"
|
||||
></v-text-field>
|
||||
</template>
|
||||
</v-data-table>
|
||||
<v-date-picker
|
||||
hide-header
|
||||
show-adjacent-months
|
||||
rounded="lg"
|
||||
color="primary"
|
||||
v-model="date"
|
||||
@update:modelValue="menu=false"
|
||||
></v-date-picker>
|
||||
</v-menu>
|
||||
</v-col>
|
||||
<v-col cols="5">
|
||||
<v-text-field
|
||||
label="No Reg / Nama / Jenis Kelamin"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="2.5">
|
||||
<v-text-field
|
||||
label="DOB / Umur"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="2.5">
|
||||
<v-text-field
|
||||
label="Pengirim"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-container>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="xdetails"
|
||||
return-object
|
||||
hide-default-footer
|
||||
class="pt-5"
|
||||
>
|
||||
<template v-slot:item="{ item }">
|
||||
<tr>
|
||||
<td class="text-left" v-if="item.is_result == 'N'" colspan="8">
|
||||
<p class="font-weight-medium">{{ item.t_testname }}</p>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<p class="font-weight-medium">{{ item.t_testname }}</p>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<div class="pt-3 pb-3">
|
||||
<v-text-field
|
||||
density="compact"
|
||||
label=""
|
||||
variant="outlined"
|
||||
hide-details
|
||||
auto-grow
|
||||
></v-text-field>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<p>{{ item.result_flag }}</p>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
{{ item.normal_note }}
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
{{ item.unit_name }}
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<div class="d-flex justify-space-between align-center">
|
||||
<div>
|
||||
{{ item.methode_name }}
|
||||
</div>
|
||||
<v-btn
|
||||
variant="text"
|
||||
small
|
||||
color="primary"
|
||||
class="bg-primary-lightens ma-0 float-left">
|
||||
<iconify-icon
|
||||
style="font-size: 1.5rem;"
|
||||
icon="fluent:edit-20-regular"
|
||||
></iconify-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<div class="pt-3 pb-3">
|
||||
<v-text-field
|
||||
density="compact"
|
||||
label=""
|
||||
variant="outlined"
|
||||
hide-details
|
||||
auto-grow
|
||||
></v-text-field>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
|
||||
</v-container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.v-table .v-table__wrapper > table > tbody > tr:not(:last-child) > td,
|
||||
.v-table .v-table__wrapper > table > tbody > tr:not(:last-child) > th,
|
||||
.v-table .v-table__wrapper > table > thead > tr > th {
|
||||
border-bottom: dashed 1px #EEEEEE;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="module">
|
||||
@@ -168,7 +170,7 @@
|
||||
align: 'start',
|
||||
key: 'name',
|
||||
sortable: false,
|
||||
width: "15%",
|
||||
width: "10%",
|
||||
title: "NILAI NORMAL",
|
||||
class: "bg-secondary-lighten font-weight-bold",
|
||||
},
|
||||
@@ -184,7 +186,7 @@
|
||||
align: 'start',
|
||||
key: 'name',
|
||||
sortable: false,
|
||||
width: "15%",
|
||||
width: "20%",
|
||||
title: "METODE",
|
||||
class: "bg-secondary-lighten font-weight-bold",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user