update all ui

This commit is contained in:
kamoa457 2023-10-20 15:56:48 +07:00
parent e6a93a3be9
commit e4001f6e86
13 changed files with 1461 additions and 394 deletions

BIN
src/assets/img/result.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
src/assets/img/seo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -30,6 +30,8 @@ import UserlistView from "../views/Users/UserlistView.vue"
import RoomLayoutView from "../views/RoomLayout/RoomLayoutView.vue"
import UtilitiesRoom from "../views/UtilitiesRoom/UtilitieView.vue"
import addUserRoom from "../views/Restroom/AddRoom.vue"
import Reports from "../views/Reports/ReportlistView.vue"
import searchFilter from "../views/SearchAll/SearchView.vue"
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
@ -63,6 +65,16 @@ const router = createRouter({
name: "utilities",
component: UtilitiesRoom,
},
{
path: "/reports",
name: "reports",
component: Reports,
},
{
path: "/searchfilter",
name: "searchfilter",
component: searchFilter,
},
{
path: '/room/detail/:id',
name: 'DetailRoom',

View File

@ -4,11 +4,11 @@
<section class="my-4 py-4">
<div class="container">
<div class="row">
<div class="col-sm-3">
<div class="col-sm-2">
<div class="card">
<div class="card-body text-center">
<h5 class="card-title">ทะเบยน</h5>
<img src="../../../assets/img/register.png" alt="title" loading="lazy" class="w-70" />
<p class="card-title" style="font-weight: bold; color: #000">ทะเบยน</p>
<img src="../../../assets/img/register.png" alt="title" loading="lazy" class="w-50" />
<RouterLink :to="{ name: 'users' }" class="dropdown-item border-radius-md">
<a href="#" class="btn btn-primary mt-4">ทะเบยน</a>
</RouterLink>
@ -16,39 +16,61 @@
</div>
</div>
</div>
<div class="col-sm-3 mb-3 mb-sm-0">
<div class="col-sm-2 mb-3 mb-sm-0">
<div class="card">
<div class="card-body text-center">
<h5 class="card-title">สถานะหองพ</h5>
<img src="../../../assets/img/status.png" alt="title" loading="lazy" class="w-70" />
<p class="card-title" style="font-weight: bold; color: #000">สถานะหองพ</p>
<img src="../../../assets/img/status.png" alt="title" loading="lazy" class="w-50" />
<RouterLink :to="{ name: 'room' }" class="dropdown-item border-radius-md">
<a href="#" class="btn btn-primary mt-4">สถานะหองพ</a>
</RouterLink>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-sm-2">
<div class="card">
<div class="card-body text-center">
<h5 class="card-title">งหองพ</h5>
<img src="../../../assets/img/layout.png" alt="title" loading="lazy" class="w-70" />
<p class="card-title" style="font-weight: bold; color: #000">งหองพ</p>
<img src="../../../assets/img/layout.png" alt="title" loading="lazy" class="w-50" />
<RouterLink :to="{ name: 'layout' }" class="dropdown-item border-radius-md">
<a href="#" class="btn btn-primary mt-4">งหองพ</a>
</RouterLink>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="col-sm-2">
<div class="card">
<div class="card-body text-center">
<h5 class="card-title">าสาธารณปโภค</h5>
<img src="../../../assets/img/utilities.png" alt="title" loading="lazy" class="w-70" />
<p class="card-title" style="font-weight: bold; color: #000">าสาธารณปโภค</p>
<img src="../../../assets/img/utilities.png" alt="title" loading="lazy" class="w-50" />
<RouterLink :to="{ name: 'utilities' }" class="dropdown-item border-radius-md">
<a href="#" class="btn btn-primary mt-4">าสาธารณปโภค</a>
</RouterLink>
</div>
</div>
</div>
<div class="col-sm-2">
<div class="card">
<div class="card-body text-center">
<p class="card-title" style="font-weight: bold; color: #000">ระบบคนหา</p>
<img src="../../../assets/img/seo.png" alt="title" loading="lazy" class="w-50" />
<RouterLink :to="{ name: 'searchfilter' }" class="dropdown-item border-radius-md">
<a href="#" class="btn btn-primary mt-4">ระบบคนหา</a>
</RouterLink>
</div>
</div>
</div>
<div class="col-sm-2">
<div class="card">
<div class="card-body text-center">
<p class="card-title" style="font-weight: bold; color: #000">ระบบเรยกรายงาน</p>
<img src="../../../assets/img/result.png" alt="title" loading="lazy" class="w-50" />
<RouterLink :to="{ name: 'reports' }" class="dropdown-item border-radius-md">
<a href="#" class="btn btn-primary mt-4">ระบบเรยกรายงาน</a>
</RouterLink>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@ -0,0 +1,444 @@
<script>
import MaterialInput from "@/components/MaterialInput.vue";
import MaterialButton from "@/components/MaterialButton.vue";
import Breadcrumbs from "@/examples/Breadcrumbs.vue";
import vueMkHeader from "@/assets/img/bg.jpg";
const listRoom = [
{ title: "ตึก 1" },
{ title: "ตึก 2" },
{ title: "ตึก 3" },
{ title: "ตึก 4" },
{ title: "ตึก 5" },
{ title: "ตึก 6" },
{ title: "ตึก 7" },
];
const NoRoom = [
{ title: "ชั้น 1" },
{ title: "ชั้น 2" },
{ title: "ชั้น 3" },
{ title: "ชั้น 4" },
{ title: "ชั้น 5" },
{ title: "ชั้น 6" },
{ title: "ชั้น 7" },
];
const userlist = [
{
dataIndex: "1",
firstName: "สมชาย",
lastName: "แสงทอง",
Affiliation: "บก", //
rank: "ร้อยตรี", //
old: "32",
birthday: "04/03/2534",
idcard: "134044411441122",
phone: "0325647846",
},
{
dataIndex: "2",
firstName: "สมชัย",
lastName: "แสงสุข",
Affiliation: "กก", //
rank: "ร้อยตรี", //
old: "32",
birthday: "14/07/2534",
idcard: "134044411441178",
phone: "0325647845",
},
];
export default {
components: {
MaterialInput,
MaterialButton,
Breadcrumbs,
},
setup() {
return {
listRoom,
NoRoom,
userlist,
vueMkHeader,
};
},
data() {
return {
value: { name: "Vue.js", language: "JavaScript" },
options: [
{ label: "Vue.js", value: "JavaScript" },
{ label: "Rails", value: "Ruby" },
{ label: "Sinatra", value: "Ruby" },
{ label: "Laravel", value: "PHP" },
{ label: "Phoenix", value: "Elixir" },
],
selectedColor: "",
firstName: "",
lastName: "",
Affiliation: "", //
rank: "", //
idcard: "",
phone: "",
};
},
watch: {
selectedColor: function (newValue) {
// this.updateColor(newValue)
console.log(newValue);
},
},
methods: {
changedLabel(event) {
console.log(event);
// this.selected = event;
},
submitForm() {
let body = {
firstName: this.firstName,
lastName: this.lastName,
Affiliation: this.Affiliation,
rank: this.rank,
idcard: this.idcard,
phone: this.phone,
};
// let b = []
// b.push(body)
this.userlist.push(body);
console.log(this.userlist);
},
},
};
</script>
<template>
<Header>
<div
class="page-header min-vh-45"
:style="`background-image: url(${vueMkHeader})`"
loading="lazy"
>
<div class="container">
<div class="row">
<div class="col-lg-7 text-center mx-auto position-relative">
<h1 class="pt-3 mt-n5 me-2 head-text">ระบบเรยกรายงาน</h1>
</div>
</div>
</div>
</div>
</Header>
<section>
<div class="card card-body blur shadow-blur mx-3 mx-md-4 mt-n6">
<div class="page-header min-vh-45">
<div class="container">
<div class="d-flex justify-content-between">
<div>
<Breadcrumbs
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ระบบเรียกรายงาน' }]"
/>
</div>
<div class="text-end">
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#userBackdrop"
>เพมรายงาน</MaterialButton
>
</div>
</div>
<div class="text-center pt-4">
<table class="table border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
<th scope="col"></th>
<th scope="col">สก</th>
<th scope="col">นเก</th>
<th scope="col">อาย</th>
<th scope="col">งก</th>
<th scope="col">ยศ</th>
<th scope="col">เลขบตรประชาชน</th>
<th scope="col">เบอรดต</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr v-for="(item, index) in userlist" :key="index">
<th scope="row">{{ index + 1 }}</th>
<td>{{ item.firstName }}</td>
<td>{{ item.lastName }}</td>
<td>{{ item.old }}</td>
<td>{{ item.birthday }}</td>
<td>{{ item.Affiliation }}</td>
<td>{{ item.rank }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.phone }}</td>
<td>
<a data-bs-toggle="modal" data-bs-target="#EdituserBackdrop"
><i
class="material-icons me-2"
style="cursor: pointer"
aria-hidden="true"
>edit</i
></a
>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- modal -->
<div
class="modal fade"
id="userBackdrop"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">เพมสมาช</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<MaterialInput
name="firstName"
:value="firstName"
@input="(event) => (firstName = event.target.value)"
class="input-group-static"
label="ชื่อ"
type="text"
placeholder="ชื่อ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="lastName"
@input="(event) => (lastName = event.target.value)"
class="input-group-static"
label="สกุล"
type="text"
placeholder="สกุล"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="birthday"
@input="(event) => (birthday = event.target.value)"
class="input-group-static"
label="วันเกิด"
type="text"
placeholder="วันเกิด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="สังกัด"
type="text"
placeholder="สังกัด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
class="input-group-static"
label="ยศ"
type="text"
placeholder="ยศ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="idcard"
@input="(event) => (idcard = event.target.value)"
class="input-group-static"
label="เลขบัตรประชาชน"
type="number"
placeholder="เลขบัตรประชาชน"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="phone"
@input="(event) => (phone = event.target.value)"
class="input-group-static"
label="เบอร์ติดต่อ"
type="number"
placeholder="เบอร์ติดต่อ"
/>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<MaterialButton
variant="gradient"
color="success"
@click="submitForm"
html-type="submit"
>นท</MaterialButton
>
</div>
</div>
</div>
</div>
<!-- modal -->
<div
class="modal fade"
id="EdituserBackdrop"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">แกไขสมาช</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<MaterialInput
name="firstName"
:value="firstName"
@input="(event) => (firstName = event.target.value)"
class="input-group-static"
label="ชื่อ"
type="text"
placeholder="ชื่อ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="lastName"
@input="(event) => (lastName = event.target.value)"
class="input-group-static"
label="สกุล"
type="text"
placeholder="สกุล"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="birthday"
@input="(event) => (birthday = event.target.value)"
class="input-group-static"
label="วันเกิด"
type="text"
placeholder="วันเกิด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="สังกัด"
type="text"
placeholder="สังกัด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
class="input-group-static"
label="ยศ"
type="text"
placeholder="ยศ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="idcard"
@input="(event) => (idcard = event.target.value)"
class="input-group-static"
label="เลขบัตรประชาชน"
type="number"
placeholder="เลขบัตรประชาชน"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="phone"
@input="(event) => (phone = event.target.value)"
class="input-group-static"
label="เบอร์ติดต่อ"
type="number"
placeholder="เบอร์ติดต่อ"
/>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<MaterialButton
variant="gradient"
color="success"
@click="submitForm"
html-type="submit"
>นท</MaterialButton
>
</div>
</div>
</div>
</div>
</section>
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
}
.bg-waring {
background: #d1d3d5 !important;
color: #fff;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
}
</style>

View File

@ -39,6 +39,10 @@ const userlist = [
rank: "ร้อยตรี", //
idcard: "134044411441122",
phone: "0325647846",
ContractDate: "12/11/2566", //
Lengthofstay: "3 เดือน", //
InsuranceMoney: "10,000",
Status: "รอคิว",
},
{
dataIndex: "2",
@ -48,6 +52,10 @@ const userlist = [
rank: "ร้อยตรี", //
idcard: "134044411441178",
phone: "0325647845",
ContractDate: "12/11/2566", //
Lengthofstay: "3 เดือน", //
InsuranceMoney: "10,000",
Status: "รอคิว",
},
];
@ -70,11 +78,10 @@ export default {
return {
value: { name: "Vue.js", language: "JavaScript" },
options: [
{ label: "Vue.js", value: "JavaScript" },
{ label: "Rails", value: "Ruby" },
{ label: "Sinatra", value: "Ruby" },
{ label: "Laravel", value: "PHP" },
{ label: "Phoenix", value: "Elixir" },
{ label: "มานพ", value: "มานพ" },
{ label: "วิชัย", value: "วิชัย" },
{ label: "ธนาพร", value: "ธนาพร" },
{ label: "มนตรี", value: "มนตรี" },
],
selectedColor: "",
firstName: "",
@ -141,18 +148,26 @@ export default {
:routes="[
{ label: 'หน้าหลัก', route: '/' },
{ label: 'สถานะห้องพัก', route: '/room' },
{ label: 'แก้ไขรายละเอียดห้อง' },
{ label: 'เพิ่มผู้เช่าห้องพัก' },
]"
/>
</div>
<!-- d-flex justify-content-between -->
<h4>เพมผเชาหองพ</h4>
<div class="row pt-4">
<div class="card mb-3">
<h5>ลำดบค</h5>
<div class="text-center pt-4">
<table class="table border border-2 border-success">
<div class="text-end">
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#contractBackdrop"
>เพมผเชาลงค</MaterialButton
>
</div>
<div class="text-center pt-4 table-responsive">
<table class="table border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
@ -162,6 +177,10 @@ export default {
<th scope="col">ยศ</th>
<th scope="col">เลขบตรประชาชน</th>
<th scope="col">เบอรดต</th>
<th scope="col">นทำสญญา</th>
<th scope="col">ระยะเวลาทเขาพ</th>
<th scope="col">เงนคาประก</th>
<th scope="col">สถานะ</th>
<th scope="col"></th>
</tr>
</thead>
@ -174,13 +193,13 @@ export default {
<td>{{ item.rank }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.phone }}</td>
<td>{{ item.ContractDate }}</td>
<td>{{ item.Lengthofstay }}</td>
<td>{{ item.InsuranceMoney }}</td>
<td>{{ item.Status }}</td>
<td>
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#contractBackdrop"
>เพมรายละเอยดสญญา</MaterialButton
<MaterialButton variant="gradient" color="success"
>เพมผเชาหองพ</MaterialButton
>
</td>
</tr>
@ -192,8 +211,8 @@ export default {
</div>
</div>
</div>
<!-- modal -->
<div
<!-- modal -->
<div
class="modal fade"
id="contractBackdrop"
data-bs-backdrop="static"
@ -215,6 +234,11 @@ export default {
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<label>อผเช</label>
<v-select :options="options" v-model="selectedColor"></v-select>
</div>
<div class="mb-3">
<MaterialInput
name="contract"
@ -252,14 +276,13 @@ export default {
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<button
type="submit"
class="btn btn-primary"
<MaterialButton
variant="gradient"
color="success"
@click="submitForm"
html-type="submit"
>นท</MaterialButton
>
นท
</button>
</div>
</div>
</div>

View File

@ -1,105 +1,40 @@
<script setup>
import { onMounted } from "vue";
<script>
//image
import image from "@/assets/img/illustrations/illustration-signin.jpg";
import vueMkHeader from "@/assets/img/bg.jpg";
//material components
import MaterialInput from "@/components/MaterialInput.vue";
import MaterialButton from "@/components/MaterialButton.vue";
// import MaterialInput from "@/components/MaterialInput.vue";
// import MaterialButton from "@/components/MaterialButton.vue";
import Breadcrumbs from "@/examples/Breadcrumbs.vue";
// material-input
import setMaterialInput from "@/assets/js/material-input";
onMounted(() => {
setMaterialInput();
});
const listRoom = [
{ title: "ตึก 1" },
{ title: "ตึก 2" },
{ title: "ตึก 3" },
{ title: "ตึก 4" },
{ title: "ตึก 5" },
{ title: "ตึก 6" },
{ title: "ตึก 7" },
];
const NoRoom = [
{ title: "ชั้น 1" },
{ title: "ชั้น 2" },
{ title: "ชั้น 3" },
{ title: "ชั้น 4" },
{ title: "ชั้น 5" },
{ title: "ชั้น 6" },
{ title: "ชั้น 7" },
];
export default {
components: {
// MaterialInput,
// MaterialButton,
Breadcrumbs,
},
setup() {
return {
vueMkHeader,
};
},
const landingColumns = [
{
title: "ห้อง 1",
dataIndex: "1",
status: true,
data() {
return {
selectedColor: "",
statusedit: false
};
},
{
title: "ห้อง 2",
dataIndex: "2",
status: false,
created(){
console.log(this.$route.query.mode);
let mode = this.$route.query.mode
mode == "add" ? this.statusedit = false : this.statusedit = true
// this.$route.query
},
{
title: "ห้อง 3",
dataIndex: "3",
status: true,
},
{
title: "ห้อง 4",
dataIndex: "4",
status: true,
},
{
title: "ห้อง 5",
dataIndex: "5",
status: false,
},
{
title: "ห้อง 6",
dataIndex: "6",
status: false,
},
{
title: "ห้อง 7",
dataIndex: "7",
status: true,
},
{
title: "ห้อง 8",
dataIndex: "8",
status: false,
},
{
title: "ห้อง 9",
dataIndex: "9",
status: false,
},
{
title: "ห้อง 10",
dataIndex: "10",
status: false,
},
{
title: "ห้อง 11",
dataIndex: "11",
status: true,
},
{
title: "ห้อง 12",
dataIndex: "12",
status: false,
},
{
title: "ห้อง 13",
dataIndex: "13",
status: false,
},
];
};
</script>
<template>
<Header>
@ -145,10 +80,9 @@ const landingColumns = [
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">รายละเอยดเจาของหอง</h5>
<div class="row">
<div class="col-4">
<div class="row" v-if="statusedit == true">
<h5 class="card-title">รายละเอยดผเช</h5>
<div class="col-5">
<p class="card-text"> : มานะ</p>
<p class="card-text">สถานะหอง : ไมาง</p>
<p class="card-text">ยศ : อยตร</p>
@ -157,7 +91,7 @@ const landingColumns = [
<p class="card-text">อาย : 33 </p>
<p class="card-text">ระยะเวลาทเขาพ : 3 เดอน</p>
</div>
<div class="col-4">
<div class="col-7">
<p class="card-text">นามสก : อด</p>
<p class="card-text">งก : กก</p>
<p class="card-text">เลขบตรประชาชน : 123456123456</p>
@ -165,6 +99,21 @@ const landingColumns = [
<p class="card-text">เงนคาประก : 12,000</p>
</div>
</div>
<div class="row">
<div class="col-5" >
<h5 class="card-title pt-2">รายละเอยดหองพ</h5>
<p class="card-text">ประเภทหองพ : ช๓</p>
<p class="card-text">เตอร/ไฟ : 745/546</p>
<p class="card-text">สภาพหอง : ปกต</p>
</div>
<div class="col-7" v-if="statusedit == true">
<h5 class="card-title pt-2">รายละเอยดคาสาธารณปโภค</h5>
<p class="card-text">านำประปา : 120</p>
<p class="card-text">าไฟฟ : 700</p>
<p class="card-text">าไฟฟาสวนกลาง : 100</p>
<p class="card-text">าบำรงลฟท : 200</p>
</div>
</div>
<!-- <p class="card-text">
<small class="text-muted">Last updated 3 mins ago</small>
</p> -->
@ -192,3 +141,4 @@ const landingColumns = [
color: #fff;
}
</style>

View File

@ -125,15 +125,15 @@ export default {
selectedColor: "",
};
},
created() {
created(){
// this.$route.query
},
methods: {
changedLabel(event) {
console.log(event);
// this.selected = event;
},
gotodetail(id,index){
let action
index == true ? action = 'edit' : action = 'add'
this.$router.push({ path: `/room/detail/${id}`, query: { mode: action } });
}
},
};
</script>
@ -165,7 +165,7 @@ export default {
</div>
<div class="row pt-4">
<div class="col-8">
<div class="nav-item dropdown dropdown-hover mx-2">
<div class="nav-item dropdown dropdown-hover mx-2 w-45">
<a
role="button"
class="nav-link ps-2 d-flex cursor-pointer align-items-center"
@ -174,7 +174,7 @@ export default {
aria-expanded="false"
>
<i class="material-icons opacity-6 me-2 text-md">home</i>
เลอก
</a>
<div
class="dropdown-menu dropdown-menu-animation ms-n3 dropdown-md p-3 border-radius-xl mt-0 mt-lg-3"
@ -200,6 +200,7 @@ export default {
</div>
<div class="col-4">
<div>
<label>นหาผเช</label>
<MaterialInput
class="input-group-dynamic w-100"
icon="search"
@ -212,7 +213,7 @@ export default {
<div class="text-center pt-4">
<!-- v-for="(item, index) in NoRoom" :key="index" -->
<div >
<div>
<p class="text-start mt-4">
<MaterialButton
variant="outline"
@ -283,13 +284,8 @@ export default {
</div>
<p class="card-title">
<a
v-if="item?.status"
:href="`/room/detail/${item?.dataIndex}`"
class="text-white"
>{{ item?.title }}</a
>
<a
v-if="!item?.status"
style="cursor: pointer"
@click="gotodetail(item?.dataIndex,item?.status)"
class="text-white"
>{{ item?.title }}</a
>
@ -333,7 +329,7 @@ export default {
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<button type="button" class="btn btn-primary">นท</button>
<MaterialButton variant="gradient" color="success">นท</MaterialButton>
</div>
</div>
</div>

View File

@ -119,21 +119,28 @@ export default {
return {
value: { name: "Vue.js", language: "JavaScript" },
options: [
{ label: "Vue.js", value: "JavaScript" },
{ label: "Rails", value: "Ruby" },
{ label: "Sinatra", value: "Ruby" },
{ label: "Laravel", value: "PHP" },
{ label: "Phoenix", value: "Elixir" },
{ label: "มกราคม", value: "01" },
{ label: "กุมภาพันธ์", value: "02" },
{ label: "มีนาคม", value: "03" },
{ label: "เมษายน", value: "04" },
{ label: "พฤษภาคม", value: "05" },
{ label: "มิถุนายน", value: "06" },
{ label: "กรกฎาคม ", value: "07" },
{ label: "สิงหาคม", value: "08" },
{ label: "กันยายน", value: "09" },
{ label: "ตุลาคม", value: "10" },
{ label: "พฤศจิกายน", value: "11" },
{ label: "ธันวาคม", value: "12" },
],
selectedColor: "",
selectedMonth: "ตุลาคม",
firstName: "สมชาย",
lastName: "มาดี",
Affiliation: "กก", //
rank: "ร้อยโท", //
idcard: "1234",
phone: "2023654888",
old: "30",
birthday: "12/11/2536",
lastName: "0237",
Affiliation: "0426 ", //
rank: "ปกติ", //
idcard: "120",
phone: "1200",
old: "100",
birthday: "200",
};
},
watch: {
@ -155,13 +162,12 @@ export default {
Affiliation: this.Affiliation,
rank: this.rank,
idcard: this.idcard,
phone: this.phone
}
phone: this.phone,
};
// let b = []
// b.push(body)
// this.userlist.push(body)
// console.log(this.userlist);
},
},
};
@ -191,12 +197,12 @@ export default {
:routes="[
{ label: 'หน้าหลัก', route: '/' },
{ label: 'สถานะห้องพัก', route: '/room' },
{ label: 'แก้ไขรายละเอียดห้อง' },
{ label: 'แก้ไขค่าใช้จ่ายประจำเดือน' },
]"
/>
</div>
<!-- d-flex justify-content-between -->
<h4>แกไขรายละเอยดหอง</h4>
<h4>แกไขาใชายประจำเดอน</h4>
<div class="row pt-4">
<div class="card mb-3">
<div class="row g-0">
@ -210,30 +216,19 @@ export default {
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">รายละเอยดเจาของหอง</h5>
<h5 class="card-title">าใชายประจำเดอน ลาคม</h5>
<div class="row">
<div class="col-4">
<div>
<div class="mb-3">
<MaterialInput
name="firstName"
:value="firstName"
@input="(event) => (firstName = event.target.value)"
class="input-group-static"
label="ชื่อ"
type="text"
placeholder="ชื่อ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="lastName"
@input="(event) => (lastName = event.target.value)"
class="input-group-static"
label="สกุล"
label="มิเตอร์น้ำ"
type="text"
placeholder="สกุล"
placeholder="มิเตอร์น้ำ"
/>
</div>
<div class="mb-3">
@ -241,52 +236,42 @@ export default {
:value="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="สังกัด"
label="มิเตอร์ไฟ"
type="text"
placeholder="สังกัด"
placeholder="มิเตอร์ไฟ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
:value="idcard"
@input="(event) => (idcard = event.target.value)"
class="input-group-static"
label="ยศ"
type="text"
placeholder="ยศ"
label="ค่าน้ำประปา"
type="number"
placeholder="ค่าน้ำประปา"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="phone"
@input="(event) => (phone = event.target.value)"
class="input-group-static"
label="ค่าไฟฟ้า"
type="number"
placeholder="ค่าไฟฟ้า"
/>
</div>
</div>
</div>
<div class="col-4">
<div class="mb-3">
<MaterialInput
:value="idcard"
@input="(event) => (idcard = event.target.value)"
class="input-group-static"
label="เลขบัตรประชาชน"
type="number"
placeholder="เลขบัตรประชาชน"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="phone"
@input="(event) => (phone = event.target.value)"
class="input-group-static"
label="เบอร์ติดต่อ"
type="number"
placeholder="เบอร์ติดต่อ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="birthday"
@input="(event) => (birthday = event.target.value)"
class="input-group-static"
label="วันเกิด"
label="ค่าไฟฟ้าส่วนกลาง"
type="text"
placeholder="วันเกิด"
placeholder="ค่าไฟฟ้าส่วนกลาง"
/>
</div>
<div class="mb-3">
@ -294,9 +279,19 @@ export default {
:value="old"
@input="(event) => (old = event.target.value)"
class="input-group-static"
label="อายุ"
label="ค่าบำรุงลิฟท์"
type="number"
placeholder="อายุ"
placeholder="ค่าบำรุงลิฟท์"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
class="input-group-static"
label="สภาพห้อง"
type="text"
placeholder="สภาพห้อง"
/>
</div>
</div>
@ -305,10 +300,9 @@ export default {
<small class="text-muted">Last updated 3 mins ago</small>
</p> -->
<div class="text-center">
<MaterialButton
variant="gradient"
color="success"
>นท</MaterialButton>
<MaterialButton variant="gradient" color="success"
>นท</MaterialButton
>
</div>
</div>
</div>

View File

@ -257,7 +257,7 @@ export default {
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<button type="button" class="btn btn-primary">นท</button>
<MaterialButton variant="gradient" color="success">นท</MaterialButton>
</div>
</div>
</div>

View File

@ -0,0 +1,432 @@
<script>
import MaterialInput from "@/components/MaterialInput.vue";
import MaterialButton from "@/components/MaterialButton.vue";
import Breadcrumbs from "@/examples/Breadcrumbs.vue";
import vueMkHeader from "@/assets/img/bg.jpg";
const listRoom = [
{ title: "ตึก 1" },
{ title: "ตึก 2" },
{ title: "ตึก 3" },
{ title: "ตึก 4" },
{ title: "ตึก 5" },
{ title: "ตึก 6" },
{ title: "ตึก 7" },
];
const NoRoom = [
{ title: "ชั้น 1" },
{ title: "ชั้น 2" },
{ title: "ชั้น 3" },
{ title: "ชั้น 4" },
{ title: "ชั้น 5" },
{ title: "ชั้น 6" },
{ title: "ชั้น 7" },
];
const userlist = [
{
dataIndex: "1",
firstName: "สมชาย",
lastName: "แสงทอง",
Affiliation: "บก", //
rank: "ร้อยตรี", //
old: "32",
birthday: "04/03/2534",
idcard: "134044411441122",
phone: "0325647846",
},
{
dataIndex: "2",
firstName: "สมชัย",
lastName: "แสงสุข",
Affiliation: "กก", //
rank: "ร้อยตรี", //
old: "32",
birthday: "14/07/2534",
idcard: "134044411441178",
phone: "0325647845",
},
];
export default {
components: {
MaterialInput,
MaterialButton,
Breadcrumbs,
},
setup() {
return {
listRoom,
NoRoom,
userlist,
vueMkHeader,
};
},
data() {
return {
value: { name: "Vue.js", language: "JavaScript" },
options: [
{ label: "Vue.js", value: "JavaScript" },
{ label: "Rails", value: "Ruby" },
{ label: "Sinatra", value: "Ruby" },
{ label: "Laravel", value: "PHP" },
{ label: "Phoenix", value: "Elixir" },
],
selectedColor: "",
firstName: "",
lastName: "",
Affiliation: "", //
rank: "", //
idcard: "",
phone: "",
};
},
watch: {
selectedColor: function (newValue) {
// this.updateColor(newValue)
console.log(newValue);
},
},
methods: {
changedLabel(event) {
console.log(event);
// this.selected = event;
},
submitForm() {
let body = {
firstName: this.firstName,
lastName: this.lastName,
Affiliation: this.Affiliation,
rank: this.rank,
idcard: this.idcard,
phone: this.phone,
};
// let b = []
// b.push(body)
this.userlist.push(body);
console.log(this.userlist);
},
},
};
</script>
<template>
<Header>
<div
class="page-header min-vh-45"
:style="`background-image: url(${vueMkHeader})`"
loading="lazy"
>
<div class="container">
<div class="row">
<div class="col-lg-7 text-center mx-auto position-relative">
<h1 class="pt-3 mt-n5 me-2 head-text">ระบบคนหา</h1>
</div>
</div>
</div>
</div>
</Header>
<section>
<div class="card card-body blur shadow-blur mx-3 mx-md-4 mt-n6">
<div class="page-header min-vh-45">
<div class="container">
<div class="d-flex justify-content-between">
<div>
<Breadcrumbs
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ระบบค้นหา' }]"
/>
</div>
</div>
<div class="d-flex justify-content-end">
<MaterialInput
class="input-group-dynamic w-30"
icon="search"
type="text"
placeholder="Search"
/>
</div>
<div class="text-center pt-4">
<table class="table border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
<th scope="col"></th>
<th scope="col">สก</th>
<th scope="col">นเก</th>
<th scope="col">อาย</th>
<th scope="col">งก</th>
<th scope="col">ยศ</th>
<th scope="col">เลขบตรประชาชน</th>
<th scope="col">เบอรดต</th>
</tr>
</thead>
<tbody>
<tr v-for="(item, index) in userlist" :key="index">
<th scope="row">{{ index + 1 }}</th>
<td>{{ item.firstName }}</td>
<td>{{ item.lastName }}</td>
<td>{{ item.old }}</td>
<td>{{ item.birthday }}</td>
<td>{{ item.Affiliation }}</td>
<td>{{ item.rank }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.phone }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- modal -->
<div
class="modal fade"
id="userBackdrop"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">เพมสมาช</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<MaterialInput
name="firstName"
:value="firstName"
@input="(event) => (firstName = event.target.value)"
class="input-group-static"
label="ชื่อ"
type="text"
placeholder="ชื่อ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="lastName"
@input="(event) => (lastName = event.target.value)"
class="input-group-static"
label="สกุล"
type="text"
placeholder="สกุล"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="birthday"
@input="(event) => (birthday = event.target.value)"
class="input-group-static"
label="วันเกิด"
type="text"
placeholder="วันเกิด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="สังกัด"
type="text"
placeholder="สังกัด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
class="input-group-static"
label="ยศ"
type="text"
placeholder="ยศ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="idcard"
@input="(event) => (idcard = event.target.value)"
class="input-group-static"
label="เลขบัตรประชาชน"
type="number"
placeholder="เลขบัตรประชาชน"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="phone"
@input="(event) => (phone = event.target.value)"
class="input-group-static"
label="เบอร์ติดต่อ"
type="number"
placeholder="เบอร์ติดต่อ"
/>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<MaterialButton
variant="gradient"
color="success"
@click="submitForm"
html-type="submit"
>นท</MaterialButton
>
</div>
</div>
</div>
</div>
<!-- modal -->
<div
class="modal fade"
id="EdituserBackdrop"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">แกไขสมาช</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<MaterialInput
name="firstName"
:value="firstName"
@input="(event) => (firstName = event.target.value)"
class="input-group-static"
label="ชื่อ"
type="text"
placeholder="ชื่อ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="lastName"
@input="(event) => (lastName = event.target.value)"
class="input-group-static"
label="สกุล"
type="text"
placeholder="สกุล"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="birthday"
@input="(event) => (birthday = event.target.value)"
class="input-group-static"
label="วันเกิด"
type="text"
placeholder="วันเกิด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="สังกัด"
type="text"
placeholder="สังกัด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
class="input-group-static"
label="ยศ"
type="text"
placeholder="ยศ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="idcard"
@input="(event) => (idcard = event.target.value)"
class="input-group-static"
label="เลขบัตรประชาชน"
type="number"
placeholder="เลขบัตรประชาชน"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="phone"
@input="(event) => (phone = event.target.value)"
class="input-group-static"
label="เบอร์ติดต่อ"
type="number"
placeholder="เบอร์ติดต่อ"
/>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<MaterialButton
variant="gradient"
color="success"
@click="submitForm"
html-type="submit"
>นท</MaterialButton
>
</div>
</div>
</div>
</div>
</section>
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
}
.bg-waring {
background: #d1d3d5 !important;
color: #fff;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
}
</style>

View File

@ -31,8 +31,10 @@ const userlist = [
lastName: "แสงทอง",
Affiliation: "บก", //
rank: "ร้อยตรี", //
old: "32",
birthday: "04/03/2534",
idcard: "134044411441122",
phone: "0325647846"
phone: "0325647846",
},
{
dataIndex: "2",
@ -40,9 +42,11 @@ const userlist = [
lastName: "แสงสุข",
Affiliation: "กก", //
rank: "ร้อยตรี", //
old: "32",
birthday: "14/07/2534",
idcard: "134044411441178",
phone: "0325647845"
}
phone: "0325647845",
},
];
export default {
@ -98,13 +102,12 @@ export default {
Affiliation: this.Affiliation,
rank: this.rank,
idcard: this.idcard,
phone: this.phone
}
phone: this.phone,
};
// let b = []
// b.push(body)
this.userlist.push(body)
this.userlist.push(body);
console.log(this.userlist);
},
},
};
@ -147,27 +150,42 @@ export default {
</div>
<div class="text-center pt-4">
<table class="table table-hover border border-2 border-success">
<table class="table border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
<th scope="col"></th>
<th scope="col">สก</th>
<th scope="col">นเก</th>
<th scope="col">อาย</th>
<th scope="col">งก</th>
<th scope="col">ยศ</th>
<th scope="col">เลขบตรประชาชน</th>
<th scope="col">เบอรดต</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr v-for="(item, index) in userlist" :key="index">
<th scope="row">{{ index+1 }}</th>
<th scope="row">{{ index + 1 }}</th>
<td>{{ item.firstName }}</td>
<td>{{ item.lastName }}</td>
<td>{{ item.old }}</td>
<td>{{ item.birthday }}</td>
<td>{{ item.Affiliation }}</td>
<td>{{ item.rank }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.phone }}</td>
<td>
<a data-bs-toggle="modal" data-bs-target="#EdituserBackdrop"
><i
class="material-icons me-2"
style="cursor: pointer"
aria-hidden="true"
>edit</i
></a
>
</td>
</tr>
</tbody>
</table>
@ -220,6 +238,16 @@ export default {
placeholder="สกุล"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="birthday"
@input="(event) => (birthday = event.target.value)"
class="input-group-static"
label="วันเกิด"
type="text"
placeholder="วันเกิด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Affiliation"
@ -266,15 +294,125 @@ export default {
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<button
type="submit"
class="btn btn-primary"
<MaterialButton
variant="gradient"
color="success"
@click="submitForm"
html-type="submit"
>นท</MaterialButton
>
นท
</div>
</div>
</div>
</div>
<!-- modal -->
<div
class="modal fade"
id="EdituserBackdrop"
data-bs-backdrop="static"
data-bs-keyboard="false"
tabindex="-1"
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">แกไขสมาช</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<MaterialInput
name="firstName"
:value="firstName"
@input="(event) => (firstName = event.target.value)"
class="input-group-static"
label="ชื่อ"
type="text"
placeholder="ชื่อ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="lastName"
@input="(event) => (lastName = event.target.value)"
class="input-group-static"
label="สกุล"
type="text"
placeholder="สกุล"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="birthday"
@input="(event) => (birthday = event.target.value)"
class="input-group-static"
label="วันเกิด"
type="text"
placeholder="วันเกิด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="สังกัด"
type="text"
placeholder="สังกัด"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
class="input-group-static"
label="ยศ"
type="text"
placeholder="ยศ"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="idcard"
@input="(event) => (idcard = event.target.value)"
class="input-group-static"
label="เลขบัตรประชาชน"
type="number"
placeholder="เลขบัตรประชาชน"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="phone"
@input="(event) => (phone = event.target.value)"
class="input-group-static"
label="เบอร์ติดต่อ"
type="number"
placeholder="เบอร์ติดต่อ"
/>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<MaterialButton
variant="gradient"
color="success"
@click="submitForm"
html-type="submit"
>นท</MaterialButton
>
</div>
</div>
</div>

View File

@ -109,14 +109,30 @@ export default {
data() {
return {
value: { name: "Vue.js", language: "JavaScript" },
options: [
{ label: "Vue.js", value: "JavaScript" },
{ label: "Rails", value: "Ruby" },
{ label: "Sinatra", value: "Ruby" },
{ label: "Laravel", value: "PHP" },
{ label: "Phoenix", value: "Elixir" },
optionsBuilding: [
{ label: "ตึก 1", value: "1" },
{ label: "ตึก 2", value: "2" },
{ label: "ตึก 3", value: "3" },
{ label: "ตึก 4", value: "4" },
{ label: "ตึก 5", value: "5" },
],
selectedColor: "",
optionsFloor: [
{ label: "ชั้น 1", value: "1" },
{ label: "ชั้น 2", value: "2" },
{ label: "ชั้น 3", value: "3" },
{ label: "ชั้น 4", value: "4" },
{ label: "ชั้น 5", value: "5" },
],
optionsRoom: [
{ label: "ห้อง 1", value: "1" },
{ label: "ห้อง 2", value: "2" },
{ label: "ห้อง 3", value: "3" },
{ label: "ห้อง 4", value: "4" },
{ label: "ห้อง 5", value: "5" },
],
selectedBuilding: "ตึก 1",
selectedFloor: "ชั้น 1",
selectedRoom: "ห้อง 1",
fee: "",
Waterbill: "",
Electricitybill: "",
@ -168,166 +184,178 @@ export default {
</div>
</div>
<div>
<div class="accordion" id="accordionPanelsStayOpenExample">
<div class="accordion-item">
<h2 class="accordion-header" id="panelsStayOpen-headingOne">
<button
style="text-decoration-line: underline"
class="accordion-button"
type="button"
data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseOne"
aria-expanded="true"
aria-controls="panelsStayOpen-collapseOne"
>
นทกคาใชายบานพกสวนกลาง ตร.
</button>
</h2>
<div
id="panelsStayOpen-collapseOne"
class="accordion-collapse collapse show"
aria-labelledby="panelsStayOpen-headingOne"
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button
class="nav-link active"
style="color: #57b05b"
id="home-tab"
data-bs-toggle="tab"
data-bs-target="#home"
type="button"
role="tab"
aria-controls="home"
aria-selected="true"
>
<div class="accordion-body">
<div class="text-end">
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#staticBackdrop11"
>เพมคาใชายบานพกสวนกลาง ตร.</MaterialButton
>
</div>
<div class="text-center pt-4">
<table class="table table-hover border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
<th scope="col">าธรรมเนยม</th>
<th scope="col">านำประปา</th>
<th scope="col">าไฟฟ</th>
<th scope="col">าไฟฟาสวนกลาง</th>
<th scope="col">าบำรงลฟท</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>20,000</td>
<td>8,000</td>
<td>20,000</td>
<td>8,000</td>
<td>20,000</td>
</tr>
</tbody>
</table>
</div>
</div>
นทกคาใชายบานพกสวนกลาง ตร.
</button>
</li>
<li class="nav-item" role="presentation">
<button
class="nav-link"
style="color: #57b05b"
id="profile-tab"
data-bs-toggle="tab"
data-bs-target="#profile"
type="button"
role="tab"
aria-controls="profile"
aria-selected="false"
>
นทกคาใชายบานพกสวนกลาง บช.ตชด.
</button>
</li>
<li class="nav-item" role="presentation">
<button
class="nav-link"
style="color: #57b05b"
id="contact-tab"
data-bs-toggle="tab"
data-bs-target="#contact"
type="button"
role="tab"
aria-controls="contact"
aria-selected="false"
>
สรปรายงานคาใชาย
</button>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div
class="tab-pane fade show active"
id="home"
role="tabpanel"
aria-labelledby="home-tab"
>
<div class="text-end pt-4">
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#staticBackdrop11"
>เพมคาใชายบานพกสวนกลาง ตร.</MaterialButton
>
</div>
<div class="text-center pt-4">
<table class="table table-hover border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col">อง</th>
<th scope="col">าธรรมเนยม</th>
<th scope="col">านำประปา</th>
<th scope="col">าไฟฟ</th>
<th scope="col">าไฟฟาสวนกลาง</th>
<th scope="col">าบำรงลฟท</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>1</td>
<td>2</td>
<td>3</td>
<td>20,000</td>
<td>8,000</td>
<td>20,000</td>
<td>8,000</td>
<td>20,000</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="panelsStayOpen-headingTwo">
<button
class="accordion-button collapsed"
style="text-decoration-line: underline"
type="button"
data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseTwo"
aria-expanded="false"
aria-controls="panelsStayOpen-collapseTwo"
<div
class="tab-pane fade"
id="profile"
role="tabpanel"
aria-labelledby="profile-tab"
>
<div class="text-end pt-4">
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#staticBackdrop12"
>เพมคาใชายบานพกสวนกลาง บช.ตชด.</MaterialButton
>
นทกคาใชายบานพกสวนกลาง บช.ตชด.
</button>
</h2>
<div
id="panelsStayOpen-collapseTwo"
class="accordion-collapse collapse"
aria-labelledby="panelsStayOpen-headingTwo"
>
<div class="accordion-body">
<div class="text-end">
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#staticBackdrop12"
>เพมคาใชายบานพกสวนกลาง บช.ตชด.</MaterialButton
>
</div>
<div class="text-center pt-4">
<table class="table table-hover border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
<th scope="col">าบำรงฯ</th>
<th scope="col">าประก</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>20,000</td>
<td>8,000</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="text-center pt-4">
<table class="table table-hover border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col">อง</th>
<th scope="col">าบำรงฯ</th>
<th scope="col">าประก</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>1</td>
<td>2</td>
<td>3</td>
<td>20,000</td>
<td>8,000</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="panelsStayOpen-headingThree">
<button
class="accordion-button collapsed"
style="text-decoration-line: underline"
type="button"
data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseThree"
aria-expanded="false"
aria-controls="panelsStayOpen-collapseThree"
<div
class="tab-pane fade"
id="contact"
role="tabpanel"
aria-labelledby="contact-tab"
>
<div class="text-end pt-4">
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#staticBackdrop13"
>เพมรายงาน</MaterialButton
>
สรปรายงานคาใชาย
</button>
</h2>
<div
id="panelsStayOpen-collapseThree"
class="accordion-collapse collapse"
aria-labelledby="panelsStayOpen-headingThree"
>
<div class="accordion-body">
<div class="text-end">
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#staticBackdrop13"
>เพมรายงาน</MaterialButton
>
</div>
<div class="text-center pt-4">
<table class="table table-hover border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
<th scope="col">กก.</th>
<th scope="col">บก.</th>
<th scope="col">อมลระด บช.</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="text-center pt-4">
<table class="table table-hover border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
<tr>
<th scope="col">ลำด</th>
<th scope="col">กก.</th>
<th scope="col">บก.</th>
<th scope="col">อมลระด บช.</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
@ -346,7 +374,9 @@ export default {
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">นทกคาใชายบานพกสวนกลาง ตร.</h5>
<h5 class="modal-title" id="staticBackdropLabel">
นทกคาใชายบานพกสวนกลาง ตร.
</h5>
<button
type="button"
class="btn-close"
@ -356,6 +386,18 @@ export default {
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<label></label>
<v-select :options="optionsBuilding" v-model="selectedBuilding"></v-select>
</div>
<div class="mb-3">
<label></label>
<v-select :options="optionsFloor" v-model="selectedFloor"></v-select>
</div>
<div class="mb-3">
<label>อง</label>
<v-select :options="optionsRoom" v-model="selectedRoom"></v-select>
</div>
<div class="mb-3">
<MaterialInput
name="fee"
@ -413,7 +455,7 @@ export default {
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<button type="button" class="btn btn-primary">นท</button>
<MaterialButton variant="gradient" color="success">นท</MaterialButton>
</div>
</div>
</div>
@ -432,7 +474,9 @@ export default {
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">เพมคาใชายบานพกสวนกลาง บช.ตชด.</h5>
<h5 class="modal-title" id="staticBackdropLabel">
เพมคาใชายบานพกสวนกลาง บช.ตชด.
</h5>
<button
type="button"
class="btn-close"
@ -442,6 +486,18 @@ export default {
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<label></label>
<v-select :options="optionsBuilding" v-model="selectedBuilding"></v-select>
</div>
<div class="mb-3">
<label></label>
<v-select :options="optionsFloor" v-model="selectedFloor"></v-select>
</div>
<div class="mb-3">
<label>อง</label>
<v-select :options="optionsRoom" v-model="selectedRoom"></v-select>
</div>
<div class="mb-3">
<MaterialInput
name="Maintenance"
@ -469,7 +525,7 @@ export default {
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<button type="button" class="btn btn-primary">นท</button>
<MaterialButton variant="gradient" color="success">นท</MaterialButton>
</div>
</div>
</div>
@ -525,7 +581,7 @@ export default {
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
ดหนาตาง
</button>
<button type="button" class="btn btn-primary">นท</button>
<MaterialButton variant="gradient" color="success">นท</MaterialButton>
</div>
</div>
</div>