Files
FE_CPONE/test/vuex/one-hs-schedule/components/oneQueueFo.vue
2026-04-27 10:13:31 +07:00

131 lines
4.7 KiB
Vue

<template>
<v-layout column fill-height>
<v-toolbar class="pa-1 mb-2" color="blue lighten-3" dark height="50px">
<v-toolbar-title>HOME SERVICE SCHEDULE</v-toolbar-title>
<v-spacer></v-spacer>
<v-flex xs6 lg3>
<v-menu ref="menu1" v-model="menu1" :close-on-content-click="false" :nudge-right="40" lazy transition="scale-transition" offset-y full-width max-width="290px" min-width="290px" >
<template v-slot:activator="{ on }">
<v-text-field v-model="dateFormatted" persistent-hint @blur="date = parseDate(dateFormatted)" v-on="on" ></v-text-field>
</template>
<v-date-picker v-model="date" no-title @input="menu1 = false"></v-date-picker>
</v-menu>
</v-flex>
</v-toolbar>
<v-card class="pa-1 p-left-side grow" grow>
<v-card-text class="pa-0">
<v-layout row wrap>
<v-flex >
<v-data-table :headers="headers" :items="patients" :loading="isLoading" hide-actions class="elevation-1">
<template slot="items" slot-scope="props">
<td v-bind:class="{'amber lighten-4':props.item.selected}" @click="selectMe(props.item)">{{ props.item.jam }}</td>
<td v-bind:class="{'amber lighten-4':props.item.selected}" @click="selectMe(props.item)">{{ props.item.layanan }}</td>
<td v-bind:class="{'amber lighten-4':props.item.selected}" @click="selectMe(props.item)">{{ props.item.antrian }}</td>
<td v-bind:class="{'amber lighten-4':props.item.selected}" @click="selectMe(props.item)">{{ props.item.status }}</td>
<td class="justify-center layout px-0">
<v-btn flat icon color="deep-orange">
<v-icon>mic</v-icon>
</v-btn>
<v-btn flat icon color="red">
<v-icon>clear</v-icon>
</v-btn>
<v-btn flat icon color="primary">
<v-icon>done</v-icon>
</v-btn>
</template>
<v-btn fab dark small color="primary">
<v-icon dark>remove</v-icon>
</v-btn>
</v-data-table>
</v-flex>
</v-layout>
</v-card-text>
</v-card>
</v-layout>
</template>
<style scoped>
table.v-table tbody td,table.v-table tbody th {
height: 40px;
}
table.v-table thead tr {
height: 40px;
}
</style>
<script>
module.exports = {
data() {
return {
query: "",
items: [],
headers: [
{
text: "Jam",
align: "Center",
sortable: false,
value: "mr",
width: "5%",
class: " blue lighten-4"
},
{
text: "Layanan",
align: "Center",
sortable: false,
value: "lab",
width: "25%",
class: "blue lighten-4"
},
{
text: "No Antrian",
align: "Center",
sortable: false,
value: "name",
width: "5%",
class: "blue lighten-4"
},
{
text: "Status",
align: "Center",
sortable: false,
value: "name",
width: "5%",
class: "blue lighten-4"
},
{
text: "Action",
align: "Center",
sortable: false,
value: "name",
width: "5%",
class: "blue lighten-4"
}
],
isLoading: true,
patients: [
{"jam":"10.00","layanan":"Antrian Umum", "antrian": "A006","status": "call","action":""},
{"jam":"10.10","layanan":"Antrian Rekanan", "antrian": "D001","status": "serve","action":""},
{"jam":"10.20","layanan":"Antrian Perusahaan", "antrian": "E004","status": "sone","action":""},
{"jam":"10.30","layanan":"Antrian Umum", "antrian": "A004","status": "skip","action":""},
]
};
}
}
</script>