update all UI

This commit is contained in:
kamoa457 2023-11-03 02:06:40 +07:00
parent b75d1d815a
commit 7bc057d02d
17 changed files with 1122 additions and 392 deletions

View File

@ -1,5 +1,17 @@
{
"ranks": [
{
"label": "นาย",
"value": "นาย"
},
{
"label": "นาง",
"value": "นาง"
},
{
"label": "นางสาว",
"value": "นางสาว"
},
{
"label": "ส.ต.ต.",
"value": "ส.ต.ต."
@ -102,6 +114,7 @@
}
],
"position": [
{
"label": "รอง สว.",
"value": "รอง สว."
@ -140,6 +153,10 @@
}
],
"Affiliation": [
{
"label": "ลูกจ้าง",
"value": "ลูกจ้าง"
},
{
"label": "บช.ตซด.",
"value": "บช.ตซด."
@ -211,6 +228,7 @@
"name": "อาคารแฟลต 1/11",
"room": "24",
"floor": "4",
"roomnumber": "12,13",
"type": "ช.2"
},
{
@ -218,6 +236,7 @@
"name": "อาคารแฟลต 1/12",
"room": "20",
"floor": "4",
"roomnumber": "12,13",
"type": "ช.2"
},
{
@ -225,6 +244,7 @@
"name": "อาคารแฟลต 1/13",
"room": "24",
"floor": "4",
"roomnumber": "12,13",
"type": "ช.2"
},
{
@ -232,6 +252,7 @@
"name": "อาคารแฟลต 1/14",
"room": "18",
"floor": "3",
"roomnumber": "12,13",
"type": "ช.3"
},
{
@ -239,6 +260,7 @@
"name": "อาคารแฟลต 1/15",
"room": "32",
"floor": "4",
"roomnumber": "12,13",
"type": "ช.2"
},
{
@ -246,6 +268,7 @@
"name": "อาคารแฟลต 1/16",
"room": "24",
"floor": "4",
"roomnumber": "12,13",
"type": "ช.2"
},
{
@ -253,6 +276,7 @@
"name": "อาคารแฟลต 1/17",
"room": "32",
"floor": "4",
"roomnumber": "12,13",
"type": "ช.2"
},
{
@ -260,6 +284,7 @@
"name": "อาคารแฟลต 1/18",
"room": "60",
"floor": "5",
"roomnumber": "12,13",
"type": "-"
},
{
@ -267,6 +292,7 @@
"name": "แฟลตลือชา 1",
"room": "50",
"floor": "5",
"roomnumber": "12,13",
"type": "-"
},
{
@ -274,6 +300,7 @@
"name": "แฟลตลือชา 2",
"room": "50",
"floor": "5",
"roomnumber": "12,13",
"type": "-"
},
{
@ -281,6 +308,7 @@
"name": "แฟลตลือชา 3",
"room": "40",
"floor": "5",
"roomnumber": "12,13",
"type": "ช.2"
},
{
@ -288,6 +316,7 @@
"name": "แฟลตบางเขน 1",
"room": "50",
"floor": "5",
"roomnumber": "12,13",
"type": "-"
},
{
@ -295,49 +324,8 @@
"name": "แฟลตบางเขน 2",
"room": "50",
"floor": "5",
"roomnumber": "12,13",
"type": "ช.2"
},
{
"buil": "อาคารบ้านพักส่วนกลาง",
"name": "ลือชา ตร.",
"room": "-",
"floor": "-",
"type": "-"
},
{
"buil": "อาคารบ้านพักส่วนกลาง",
"name": "ทุ่งสองห้อง",
"room": "-",
"floor": "-",
"type": "-"
},
{
"buil": "อาคารบ้านพักส่วนกลาง",
"name": "วิภาวดี",
"room": "-",
"floor": "-",
"type": "-"
},
{
"buil": "อาคารบ้านพักส่วนกลาง",
"name": "ถนอมมิตร",
"room": "-",
"floor": "-",
"type": "-"
},
{
"buil": "อาคารบ้านพักส่วนกลาง",
"name": "อุดมสุข",
"room": "-",
"floor": "-",
"type": "-"
},
{
"buil": "อาคารบ้านพักส่วนกลาง",
"name": "เฉลิมลาภ",
"room": "-",
"floor": "-",
"type": "-"
}
]
}

View File

@ -2,6 +2,7 @@
{
"title": "ห้อง 1",
"dataIndex": "1",
"ranks": "",
"firstName": "",
"laststName": "",
"Affiliation": "",
@ -10,6 +11,7 @@
{
"title": "ห้อง 2",
"dataIndex": "2",
"ranks": "ส.ต.ต.",
"firstName": "ปิติ2",
"laststName": "มีดี",
"Affiliation": "ฝอ. 2",
@ -18,6 +20,7 @@
{
"title": "ห้อง 3",
"dataIndex": "3",
"ranks": "",
"firstName": "",
"laststName": "",
"Affiliation": "",
@ -26,6 +29,7 @@
{
"title": "ห้อง 4",
"dataIndex": "4",
"ranks": "ส.ต.ต.",
"firstName": "ปิติ2",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
@ -34,6 +38,7 @@
{
"title": "ห้อง 5",
"dataIndex": "5",
"ranks": "ส.ต.ต.",
"firstName": "ปิติ3",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
@ -42,6 +47,7 @@
{
"title": "ห้อง 6",
"dataIndex": "6",
"ranks": "ส.ต.ต.",
"firstName": "ปิติ4",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
@ -50,6 +56,7 @@
{
"title": "ห้อง 7",
"dataIndex": "7",
"ranks": "ส.ต.ต.",
"firstName": "ปิติ3",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
@ -58,6 +65,7 @@
{
"title": "ห้อง 8",
"dataIndex": "8",
"ranks": "ส.ต.ต.",
"firstName": "ปิติ9",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
@ -66,6 +74,7 @@
{
"title": "ห้อง 9",
"dataIndex": "9",
"ranks": "ส.ต.ต.",
"firstName": "ปิติ5",
"laststName": "มีดี",
"Affiliation": "ฝอ. 4",
@ -74,6 +83,7 @@
{
"title": "ห้อง 10",
"dataIndex": "10",
"ranks": "ส.ต.ต.",
"firstName": "ปิติ6",
"laststName": "มีดี",
"Affiliation": "ฝอ. 7",
@ -82,6 +92,7 @@
{
"title": "ห้อง 11",
"dataIndex": "11",
"ranks": "",
"firstName": "",
"laststName": "",
"Affiliation": "",
@ -90,6 +101,7 @@
{
"title": "ห้อง 12",
"dataIndex": "12",
"ranks": "",
"firstName": "",
"laststName": "",
"Affiliation": "",
@ -98,6 +110,7 @@
{
"title": "ห้อง 13",
"dataIndex": "13",
"ranks": "ส.ต.ต.",
"firstName": "ปิติ7",
"laststName": "มีดี",
"Affiliation": "ฝอ. 2",

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -2,7 +2,7 @@ import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router";
import '@trevoreyre/autocomplete-vue/dist/style.css'
// import '@trevoreyre/autocomplete-vue/dist/style.css'
// Nucleo Icons
import "./assets/css/nucleo-icons.css";

View File

@ -33,6 +33,7 @@ import addUserRoom from "../views/Restroom/AddRoom.vue"
import Reports from "../views/Reports/ReportlistView.vue"
import searchFilter from "../views/SearchAll/SearchView.vue"
import Queue from "../views/Queue/QueueView.vue"
import Expenses from "../views/Expenses/ExpensesView.vue"
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
@ -76,6 +77,11 @@ const router = createRouter({
name: "searchfilter",
component: searchFilter,
},
{
path: "/expenses",
name: "expenses",
component: Expenses,
},
{
path: "/queue",
name: "queue",

View File

@ -0,0 +1,503 @@
<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";
import masterData from "@/assets/dataJson/masterData.json";
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: "ฝอ.1", //
rank: "ส.ต.ต.", //
old: "32",
status: "สมรส",
birthday: "04/03/2534",
idcard: "134044411441122",
phone: "0325647846",
},
{
dataIndex: "2",
firstName: "สมชัย",
lastName: "แสงสุข",
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.", //
old: "32",
status: "โสด",
birthday: "14/07/2534",
idcard: "134044411441178",
phone: "0325647845",
},
];
export default {
components: {
MaterialInput,
MaterialButton,
Breadcrumbs,
},
setup() {
return {
listRoom,
NoRoom,
userlist,
vueMkHeader,
masterData,
};
},
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/11", value: "1" },
{ label: "อาคารแฟลต 1/12", value: "2" },
{ label: "อาคารแฟลต 1/13", value: "3" },
{ label: "อาคารแฟลต 1/14", value: "4" },
{ label: "อาคารแฟลต 1/15", value: "5" },
{ label: "อาคารแฟลต 1/16", value: "3" },
{ label: "อาคารแฟลต 1/17", value: "4" },
{ label: "อาคารแฟลต 1/18", value: "5" },
{ label: "แฟลตลือชา 1", value: "5" },
{ label: "แฟลตลือชา 2", value: "3" },
{ label: "แฟลตลือชา 3", value: "4" },
{ label: "แฟลตบางเขน 1", value: "5" },
{ label: "แฟลตบางเขน 2", value: "5" },
],
optionsFloor: [
{ label: "ชั้น 1", value: "1" },
{ label: "ชั้น 2", value: "2" },
{ label: "ชั้น 3", value: "3" },
{ label: "ชั้น 4", value: "4" },
{ label: "ชั้น 5", value: "5" },
],
optionsRoom: [
{ label: "ห้อง 101", value: "1" },
{ label: "ห้อง 202", value: "2" },
{ label: "ห้อง 303", value: "3" },
{ label: "ห้อง 404", value: "4" },
{ label: "ห้อง 505", value: "5" },
],
selectedBuilding: "อาคารแฟลต 1/11",
selectedFloor: "ชั้น 1",
selectedRoom: "ห้อง 101",
selectedColor: "",
firstName: "สมชัย",
lastName: "แสงสุข",
Affiliation: "", //
rank: "", //
idcard: "134044411441178",
phone: "0325647845",
selectedRanks: "ส.ต.ต.",
selectedAffiliation: "ฝอ.2",
birthday: "14/07/2534",
};
},
created() {
console.log(this.masterData);
},
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>
<Breadcrumbs
:routes="[
{ label: 'หน้าหลัก', route: '/' },
{ label: 'บันทึกค่าใช้จ่ายรายเดือน ตร' },
]"
/>
</div>
<div class="d-flex justify-content-end align-items-baseline">
<label style="margin-right: 10px">นหาเลขทอง </label>
<MaterialInput
class="input-group-dynamic w-30"
icon="search"
type="text"
placeholder="Search"
/>
</div>
<div class="text-center pt-4 table-responsive">
<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>
<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></th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>อาคารแฟลต 1/11</td>
<td>2</td>
<td>202</td>
<td>201</td>
<td>205</td>
<td>4</td>
<td>8,000</td>
<td>20,000</td>
<td>8,000</td>
<td>20,000</td>
<td>10,000</td>
<td>5/10</td>
<td>/</td>
<td></td>
<td>5555</td>
<td>
<MaterialButton
style="margin-bottom: 0px"
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#staticBackdrop11"
>นทกคาใชายรายเดอน</MaterialButton
>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div
class="modal fade"
id="staticBackdrop11"
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">
<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"
:value="fee"
@input="(event) => (fee = event.target.value)"
class="input-group-static"
label="ค่าธรรมเนียม"
type="text"
placeholder="ค่าธรรมเนียม"
/>
</div> -->
<div class="mb-3">
<MaterialInput
:value="Waterbill"
@input="(event) => (Waterbill = event.target.value)"
class="input-group-static"
label="ค่าน้ำประปา"
type="text"
placeholder="ค่าน้ำประปา"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Electricitybill"
@input="(event) => (Electricitybill = event.target.value)"
class="input-group-static"
label="ค่าไฟฟ้า"
type="text"
placeholder="ค่าไฟฟ้า"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Central"
@input="(event) => (Central = event.target.value)"
class="input-group-static"
label="ค่าไฟฟ้าส่วนกลาง"
type="text"
placeholder="ค่าไฟฟ้าส่วนกลาง"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Costs"
@input="(event) => (Costs = event.target.value)"
class="input-group-static"
label="ค่าบำรุงลิฟท์"
type="text"
placeholder="ค่าบำรุงลิฟท์"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Insurancecost"
@input="(event) => (Insurancecost = event.target.value)"
class="input-group-static"
label="เลขก่อน"
type="text"
placeholder="เลขก่อน"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="installments"
@input="(event) => (installments = event.target.value)"
class="input-group-static"
label="เลขหลัง"
type="text"
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">นท</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">
<label>งก</label>
<v-select
:options="masterData?.Affiliation"
v-model="selectedAffiliation"
></v-select>
</div>
<div class="mb-3">
<label>ยศ</label>
<v-select :options="masterData?.ranks" v-model="selectedRanks"></v-select>
</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="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 {
border: 2px solid #567b57 !important;
color: #000;
}
.bg-red {
border: 2px solid #d24c4a !important;
color: #000;
}
.bg-warning {
border: 2px solid #fb8c00 !important;
color: #000;
}
.bg-return {
border: 2px solid #ffca28 !important;
color: #000;
}
.bg-special {
border: 2px solid #edc7c7 !important;
color: #000;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
}
.breadcrumb-item a:hover {
color: #4caf50 !important;
}
</style>

View File

@ -38,7 +38,7 @@
</div>
</div>
</div>
<div class="col-sm-3">
<!-- <div class="col-sm-3">
<div class="card">
<div class="card-body text-center">
<p class="card-title" style="font-weight: bold; color: #000">าสาธารณปโภค</p>
@ -48,8 +48,8 @@
</RouterLink>
</div>
</div>
</div>
<div class="col-sm-3 mt-4">
</div> -->
<div class="col-sm-3 ">
<div class="card">
<div class="card-body text-center">
<p class="card-title" style="font-weight: bold; color: #000">ระบบค</p>
@ -71,6 +71,17 @@
</div>
</div>
</div>
<div class="col-sm-3 mt-4">
<div class="card">
<div class="card-body text-center">
<p class="card-title" style="font-weight: bold; color: #000">นทกคาใชายรายเดอน ตร</p>
<img src="../../../assets/img/accounting.png" alt="title" loading="lazy" class="w-50" />
<RouterLink :to="{ name: 'expenses' }" class="dropdown-item border-radius-md">
<a href="#" class="btn btn-success mt-4">นทกคาใชายรายเดอน ตร</a>
</RouterLink>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@ -32,6 +32,7 @@ const userlist = [
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.", //
old: "32",
status: "สมรส",
birthday: "04/03/2534",
idcard: "134044411441122",
phone: "0325647846",
@ -43,6 +44,7 @@ const userlist = [
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.", //
old: "32",
status: "โสด",
birthday: "14/07/2534",
idcard: "134044411441178",
phone: "0325647845",
@ -131,39 +133,62 @@ export default {
<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>
<Breadcrumbs
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ระบบคิว' }]"
/>
</div>
<div class="d-flex justify-content-end align-items-baseline">
<label style="margin-right: 20px">นหาช </label>
<MaterialInput
style="margin-right: 20px"
class="input-group-dynamic w-30"
icon="search"
type="text"
placeholder="Search"
<div>
<Breadcrumbs
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ระบบคิว' }]"
/>
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#seleteUserBackdrop"
>เพมผเชาลงค</MaterialButton
>
</div>
<div class="d-flex justify-content-between align-items-baseline">
<div class="mb-3">
<div class="form-check form-check-inline">
<label style="margin-right: 20px">สถานภาพ</label>
<input
class="form-check-input"
type="radio"
name="inlineRadioOptions"
id="inlineRadio1"
value="โสด"
/>
<label class="form-check-label" for="inlineRadio1">โสด</label>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="inlineRadioOptions"
id="inlineRadio2"
value="สมรส"
/>
<label class="form-check-label" for="inlineRadio2">สมรส</label>
</div>
</div>
<div class="d-flex align-items-baseline">
<label style="margin-right: 20px">นหาช </label>
<MaterialInput
style="margin-right: 20px; width:300px"
class="input-group-dynamic "
icon="search"
type="text"
placeholder="Search"
/>
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#seleteUserBackdrop"
>เพมผเชาลงค</MaterialButton
>
</div>
</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>
<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>
<th scope="col">เบอรดต</th>
</tr>
@ -171,15 +196,11 @@ export default {
<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.birthday }}</td>
<td>{{ item.old }}</td>
<td>{{ item.rank }} {{ item.firstName }} {{ item.lastName }}</td>
<td>{{ item.Affiliation }}</td>
<td>{{ item.rank }}</td>
<td>{{ item.status }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.phone }}</td>
</tr>
</tbody>
</table>
@ -254,7 +275,6 @@ export default {
.bg-special {
border: 2px solid #edc7c7 !important;
color: #000;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {

View File

@ -3,6 +3,7 @@ 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";
import masterData from "@/assets/dataJson/masterData.json";
const listRoom = [
{ title: "ตึก 1" },
@ -61,6 +62,7 @@ export default {
NoRoom,
userlist,
vueMkHeader,
masterData,
};
},
@ -74,6 +76,26 @@ export default {
{ label: "Laravel", value: "PHP" },
{ label: "Phoenix", value: "Elixir" },
],
optionYear:[
{ label: "2023", value: "2023" },
{ label: "2022", value: "2022" },
{ label: "2021", value: "2021" },
{ label: "2020", value: "2020" }
],
optionMonth:[
{ label: "มกราคม", value: "มกราคม" },
{ label: "กุมภาพันธ์", value: "กุมภาพันธ์" },
{ label: "มีนาคม", value: "มีนาคม" },
{ label: "เมษายน", value: "เมษายน" },
{ label: "พฤษภาคม", value: "พฤษภาคม" },
{ label: "มิถุนายน", value: "มิถุนายน" },
{ label: "กรกฎาคม", value: "กรกฎาคม" },
{ label: "สิงหาคม", value: "สิงหาคม" },
{ label: "กันยายน", value: "กันยายน" },
{ label: "ตุลาคม", value: "ตุลาคม" },
{ label: "พฤศจิกายน", value: "พฤศจิกายน" },
{ label: "ธันวาคม", value: "ธันวาคม" },
],
selectedColor: "",
firstName: "",
lastName: "",
@ -81,6 +103,10 @@ export default {
rank: "", //
idcard: "",
phone: "",
selectedAffiliation: "ฝอ.2",
selectedYear:"2023",
selectedMonth:"พฤศจิกายน"
};
},
watch: {
@ -193,8 +219,10 @@ export default {
aria-labelledby="home-tab"
>
<div class="d-flex justify-content-between align-items-baseline">
<div class="d-flex">
<h5>ประจำเดอน ลาคม</h5>
<div>
<h5>ประจำเดอน พฤศจกายน</h5>
<br />
<h5>รวมคาใชายทงหมด : 18,111</h5>
</div>
<div class="d-flex pt-4">
<MaterialButton
@ -225,7 +253,29 @@ export default {
</MaterialButton>
</div>
</div>
<div class="d-flex justify-content-end align-items-baseline">
<div class="mb-3 w-15" style="margin-right: 5px">
<label>เดอน</label>
<v-select
:options="optionMonth"
v-model="selectedMonth"
></v-select>
</div>
<div class="mb-3 w-10 " style="margin-right: 5px">
<label>..</label>
<v-select
:options="optionYear"
v-model="selectedYear"
></v-select>
</div>
<div class="mb-3 w-15 ">
<label>งก</label>
<v-select
:options="masterData?.Affiliation"
v-model="selectedAffiliation"
></v-select>
</div>
</div>
<div class="text-center pt-4 table-responsive">
<table class="table table-hover border border-2 border-success">
<thead class="border border-2 border-success border-bottom">
@ -234,7 +284,6 @@ 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>
@ -253,8 +302,7 @@ export default {
<td>แฟลตลอชา 2</td>
<td>3</td>
<td>303</td>
<td>...</td>
<td>นา บานเย</td>
<td>... นา บานเย</td>
<td>325</td>
<td>365</td>
<td>200</td>
@ -268,8 +316,7 @@ export default {
<td>แฟลตลอชา 2</td>
<td>3</td>
<td>303</td>
<td>...</td>
<td>นา บานเย</td>
<td>... นา บานเย</td>
<td>325</td>
<td>365</td>
<td>200</td>
@ -289,8 +336,10 @@ export default {
aria-labelledby="profile-tab"
>
<div class="d-flex justify-content-between align-items-baseline">
<div class="d-flex">
<h5>ประจำเดอน ลาคม</h5>
<div>
<h5>ประจำเดอน พฤศจกายน</h5>
<br />
<h5>รวมคาใชายทงหมด : 18,111</h5>
</div>
<div class="d-flex pt-4">
<MaterialButton
@ -379,101 +428,101 @@ export default {
<tbody>
<tr>
<th scope="row">1</th>
<td>ลาคม</td>
<td>พฤศจกายน</td>
<td>อาคารบานพ บช. ตชด.</td>
<td>
<MaterialButton
size="lg"
class="btn-icon"
style="margin-right: -0px"
>
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
<MaterialButton size="lg" class="btn-icon">
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/excel.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
<MaterialButton
size="lg"
class="btn-icon"
style="margin-right: -0px"
>
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
<MaterialButton size="lg" class="btn-icon">
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/excel.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
</td>
</tr>
<tr>
<th scope="row">1</th>
<td>ลาคม</td>
<td>พฤศจกายน</td>
<td>อาคารบานพกสวนกลาง</td>
<td>
<MaterialButton
size="lg"
class="btn-icon"
style="margin-right: -0px"
>
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
<MaterialButton size="lg" class="btn-icon">
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/excel.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
<MaterialButton
size="lg"
class="btn-icon"
style="margin-right: -0px"
>
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
<MaterialButton size="lg" class="btn-icon">
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/excel.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
</td>
</tr>
<tr>
<th scope="row">1</th>
<td>ลาคม</td>
<td>พฤศจกายน</td>
<td>อาคารบานพ ตร.</td>
<td>
<MaterialButton
size="lg"
class="btn-icon"
style="margin-right: -0px"
>
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
<MaterialButton size="lg" class="btn-icon">
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/excel.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
<MaterialButton
size="lg"
class="btn-icon"
style="margin-right: -0px"
>
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
<MaterialButton size="lg" class="btn-icon">
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/excel.png"
alt="title"
loading="lazy"
width="24"
/>
</div>
</MaterialButton>
</td>
</tr>
</tbody>

View File

@ -30,6 +30,55 @@ const NoRoom = [
{ title: "ชั้น 7" },
];
// {
// "buil": "",
// "name": " .",
// "room": "-",
// "floor": "-",
// "roomnumber": "-",
// "type": "-"
// },
// {
// "buil": "",
// "name": "",
// "room": "-",
// "floor": "-",
// "roomnumber": "-",
// "type": "-"
// },
// {
// "buil": "",
// "name": "",
// "room": "-",
// "floor": "-",
// "roomnumber": "-",
// "type": "-"
// },
// {
// "buil": "",
// "name": "",
// "room": "-",
// "floor": "-",
// "roomnumber": "-",
// "type": "-"
// },
// {
// "buil": "",
// "name": "",
// "room": "-",
// "floor": "-",
// "roomnumber": "-",
// "type": "-"
// },
// {
// "buil": "",
// "name": "",
// "room": "-",
// "floor": "-",
// "roomnumber": "-",
// "type": "-"
// }
const userlist = [
{
dataIndex: "1",

View File

@ -14,6 +14,7 @@ const userlist = [
rank: "ส.ต.ต.",
idcard: "134044411441122",
phone: "0325647846",
bookNumber: "1234",
ContractDate: "12/11/2566", //
Lengthofstay: "3 เดือน", //
InsuranceMoney: "10,000",
@ -27,6 +28,7 @@ const userlist = [
rank: "ส.ต.ต.",
idcard: "134044411441178",
phone: "0325647845",
bookNumber: "1234",
ContractDate: "12/11/2566", //
Lengthofstay: "3 เดือน", //
InsuranceMoney: "10,000",
@ -68,6 +70,7 @@ export default {
old: "",
birthday: "",
installments: "",
booknumber:""
};
},
created() {
@ -75,16 +78,15 @@ export default {
if (this.$route.params.id) {
this.id = this.$route.params.id;
}
this.mode == "add" ? (this.statusedit = false) : (this.statusedit = true);
// this.$route.query
},
methods: {
gotoAction() {
if (this.mode == "edit") {
this.$router.push({ path: `/room/update/${this.id}` });
} else {
this.$router.push({ path: `/addUserRoom` });
}
// if (this.mode == "edit") {
this.$router.push({ path: `/room/update/${this.id}`, query: { mode: this.mode } });
// } else {
// this.$router.push({ path: `/addUserRoom` , query: { mode: this.mode } });
// }
},
},
};
@ -121,18 +123,10 @@ export default {
<!-- d-flex justify-content-between -->
<div class="d-flex justify-content-between align-items-baseline">
<h4>รายละเอยดหองพ 101</h4>
<div v-if="mode == 'edit'">
<div>
<MaterialButton variant="gradient" color="success" @click="gotoAction()"
>ดการหองพ</MaterialButton
>
<!-- <MaterialButton
style="margin-left: 20px; margin-right: 10px"
variant="gradient"
color="warning"
data-bs-toggle="modal"
data-bs-target="#Returntheroom"
>นหอง</MaterialButton
> -->
</div>
</div>
<div class="row pt-4">
@ -140,30 +134,31 @@ export default {
<div class="row g-0">
<div class="col-md-10">
<div class="card-body">
<div class="row" v-if="statusedit == true">
<div class="row" v-if="this.mode !== 'add'">
<h5 class="card-title">รายละเอยดผเช</h5>
<div class="col-5">
<p class="card-text"> : มานะ</p>
<p class="card-text"> : ... มานะ</p>
<p class="card-text">สถานะหอง : ไมาง</p>
<p class="card-text">ยศ : ...</p>
<p class="card-text">นเก : 12/02/2514</p>
<p class="card-text">งก : ฝอ. 1</p>
<p class="card-text">เลขบตรประชาชน : 123456123456</p>
<p class="card-text">นทำสญญา : 12/02/2564</p>
<p class="card-text">อาย : 33 </p>
<p class="card-text">ระยะเวลาทเขาพ : 3 เดอน</p>
</div>
<div class="col-7">
<p class="card-text">นามสก : อด</p>
<p class="card-text">งก : ฝอ. 1</p>
<p class="card-text">เลขบตรประชาชน : 123456123456</p>
<p class="card-text">เบอรโทร : 0972534887</p>
<p class="card-text">เงนคาประก : 12,000</p>
<p class="card-text">งวดคาประก : 5/10</p>
<p class="card-text">จำนวนงวดคาประก : 2,000</p>
<p class="card-text">ยอดคงเหลอคาประก : 6,000</p>
</div>
</div>
<div class="row">
<div class="row" v-if="this.mode !== 'special'">
<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">เตอร/ไฟ : 745/546</p> -->
<p class="card-text">สภาพหอง : ปกต</p>
</div>
<div class="col-5">
@ -186,24 +181,25 @@ export default {
<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>
<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.rank }} {{ item.firstName }} {{ item.lastName }}
</td>
<td>{{ item.Affiliation }}</td>
<td>{{ item.rank }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.phone }}</td>
<td>{{ item.bookNumber }}</td>
<td>
<MaterialButton
variant="gradient"
@ -213,6 +209,17 @@ export default {
>เพมผเชาหองพ</MaterialButton
>
</td>
<td>
<MaterialButton
style="margin-left: 20px"
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#addBookBackdrop"
>เพมเลขลงรบหนงส</MaterialButton
>
</td>
</tr>
</tbody>
</table>
@ -411,14 +418,20 @@ export default {
</div>
</div>
<div>
<label style="padding-left: 30px;">หลกฐานแสดงการชาระคาไฟเดอนลาส</label>
<label style="padding-left: 30px"
>หลกฐานแสดงการชาระคาไฟเดอนลาส</label
>
</div>
<div
class="mb-3"
style="margin-left:10px; display: flex; justify-content: space-between; align-items: center"
style="
margin-left: 10px;
display: flex;
justify-content: space-between;
align-items: center;
"
>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
@ -475,6 +488,58 @@ export default {
</div>
</div>
</div>
</div>
<!-- modal -->
<div
class="modal fade"
id="addBookBackdrop"
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">
<label style="margin-left:-5px">กรอกเลขลงรบหนงส</label>
<textarea
:value="booknumber"
@input="(event) => (booknumber = event.target.value)"
class="form-control"
id="exampleFormControlTextarea1"
rows="3"
placeholder="ตัวอย่าง : 11244"
></textarea>
</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>

View File

@ -35,6 +35,12 @@ export default {
{ label: "Laravel", value: "PHP" },
{ label: "Phoenix", value: "Elixir" },
],
typeRoom: [
{ label: "ช1", value: "ช1" },
{ label: "ช2", value: "ช2" },
{ label: "ช3", value: "ช3" },
],
listRoom: [
{ label: "อาคารแฟลต 1/11", value: "1" },
{ label: "อาคารแฟลต 1/12", value: "2" },
@ -50,6 +56,7 @@ export default {
{ label: "แฟลตบางเขน 1", value: "5" },
{ label: "แฟลตบางเขน 2", value: "5" },
],
selectedtypeRoom: "ช1",
selectedColor: "",
statusfree: false,
statusreturn: false,
@ -68,6 +75,8 @@ export default {
if (index == "unavailable") action = "edit";
if (index == "waiting") action = "add";
if (index == "free") action = "add";
if (index == "special") action = "special";
if (index == "return") action = "return";
this.$router.push({ path: `/room/detail/${id}`, query: { mode: action } });
},
onChangeEvent(e) {
@ -166,9 +175,17 @@ export default {
</div>
<div class="text-center pt-4">
<div class="d-flex justify-content-start align-items-baseline pt-1 w-35">
<label class="w-30" style="margin-right: 5px"> เลอกประเภทหอง</label>
<v-select
class="w-50"
:options="typeRoom"
v-model="selectedtypeRoom"
></v-select>
</div>
<div class="d-flex justify-content-between align-items-baseline p-2">
<div class="text-start">
<h6>{{ selectedlistRoom }}</h6>
<h6>{{ selectedlistRoom?.label }}</h6>
<p class="d-flex align-items-baseline p-2">
<span>คณะกรรมการประจาต : มาร งาม , บารม งาม</span>
<a data-bs-toggle="modal" data-bs-target="#Edituser"
@ -213,7 +230,7 @@ export default {
:checked="statusreturn"
@change="onChangeEvent('return')"
>
<a href="javascript:;" class="font-weight-bolder"> รอคนหอง</a>
<a href="javascript:;" class="font-weight-bolder"> อนผ</a>
</MaterialCheckbox>
</div>
</div>
@ -250,25 +267,23 @@ export default {
'bg-return': item?.status == 'return',
'bg-special': item?.status == 'special',
}"
:style="{ width: `115px`, height: `170px` }"
:style="{ width: `220px`, height: `170px` }"
>
<div class="card-body p-1">
<a
style="cursor: pointer"
@click="gotodetail(item?.dataIndex, item?.status)"
class="text-drck"
>
<p
class="card-title"
:class="{
'bg-red': item?.status == 'unavailable',
'bg-green': item?.status == 'free',
'bg-warning2': item?.status == 'waiting',
'bg-return': item?.status == 'return',
'bg-special': item?.status == 'special',
}"
style="
color: #000;
border: 2px solid #f7f4f0 !important;
border-radius: 10px;
background: white;
"
>
<a>{{ item?.title }}</a>
<a style="font-size: medium">{{ item?.title }}</a>
</p>
<p
v-if="item?.status == 'free'"
@ -296,12 +311,14 @@ export default {
class="card-title bgg-return"
style="font-size: 16px"
>
{{ "รอคืนห้อง" }}
{{ "ผ่อนผัน" }}
</p>
<p class="card-title" style="font-size: 14px">
{{ item?.firstName }}
<p v-if="item?.status !== 'special'" class="card-title" style="font-size: 14px">
{{ item?.ranks }} {{ item?.firstName }}
{{ item?.laststName }}
</p>
<p class="card-title" style="font-size: 14px">
<p v-if="item?.status == 'special'" class="card-title text-red mt-1" style="font-size: 14px">
{{ item?.ranks }} {{ item?.firstName }}
{{ item?.laststName }}
</p>
<div>
@ -313,7 +330,7 @@ export default {
<span
v-if="item?.status == 'special'"
class="text-red"
style="text-align: right; font-size: small"
style="text-align: right; font-size: 16px"
>{{ "กรณีพิเศษ" }}</span
>
</div>
@ -412,24 +429,24 @@ export default {
</template>
<style>
.bg-green {
border: 2px solid #567b57 !important;
color: #000;
background-color: #567b57 !important;
color: #fff;
}
.bg-red {
border: 2px solid #d24c4a !important;
color: #000;
background-color: #d24c4a !important;
color: #fff !important;
}
.bg-warning2 {
border: 2px solid #fb8c00 !important;
color: #000;
background-color: #fb8c00 !important;
color: #fff !important;
}
.bg-return {
border: 2px solid #ffca28 !important;
color: #000;
background-color: #816613 !important;
color: #fff !important;
}
.bg-special {
border: 2px solid #edc7c7 !important;
color: #000;
background-color: #edc7c7 !important;
color: #fff !important;
}
.bgg-green {
background-color: #567b57 !important;
@ -444,11 +461,11 @@ export default {
color: #fff !important;
}
.bgg-return {
background-color: #ffca28 !important;
background-color: #816613 !important;
color: #fff !important;
}
.bgg-special {
background-color: #edc7c7 !important;
background-color: #cbc0c0 !important;
color: #fff !important;
}
.text-red {

View File

@ -212,8 +212,18 @@ export default {
Roomtype: "ช๑",
Roomconditions: "ปกติ",
selectedRoomtype: "ช๑",
statusedit: false,
mode: "",
id: "",
};
},
created() {
this.mode = this.$route.query.mode;
if (this.$route.params.id) {
this.id = this.$route.params.id;
}
// this.$route.query
},
watch: {
selectedColor: function (newValue) {
// this.updateColor(newValue)
@ -295,18 +305,7 @@ export default {
แกไขรายละเอยดหองพ
</button>
<button
class="nav-link"
id="v-pills-profile-tab"
data-bs-toggle="pill"
data-bs-target="#v-pills-profile"
type="button"
role="tab"
aria-controls="v-pills-profile"
aria-selected="false"
>
ดการค
</button>
<button
v-if="this.mode !== 'add'"
class="nav-link"
id="v-pills-messages-tab"
data-bs-toggle="pill"
@ -318,18 +317,6 @@ export default {
>
นหองพ
</button>
<button
class="nav-link"
id="v-pills-settings-tab"
data-bs-toggle="pill"
data-bs-target="#v-pills-settings"
type="button"
role="tab"
aria-controls="v-pills-settings"
aria-selected="false"
>
าสาธารณปโภค
</button>
</div>
</div>
<div class="col-lg-9">
@ -348,19 +335,9 @@ export default {
:value="lastName"
@input="(event) => (lastName = event.target.value)"
class="input-group-static"
label="มิเตอร์น้ำ"
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="มิเตอร์ไฟ"
placeholder="เลขห้อง"
/>
</div>
<div class="mb-3">
@ -434,12 +411,8 @@ export default {
<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>
@ -447,12 +420,8 @@ export default {
<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.birthday }}</td>
<td>{{ item.old }}</td>
<td>{{ item.rank }} {{ item.firstName }} {{ item.lastName }}</td>
<td>{{ item.Affiliation }}</td>
<td>{{ item.rank }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.phone }}</td>
</tr>
@ -706,7 +675,7 @@ export default {
<td>8,000</td>
<td>20,000</td>
<td>10,000</td>
<td>5</td>
<td>5/10</td>
</tr>
</tbody>
</table>
@ -756,7 +725,7 @@ export default {
<td>202</td>
<td>20,000</td>
<td>8,000</td>
<td>8</td>
<td>8/10</td>
</tr>
</tbody>
</table>

View File

@ -105,7 +105,7 @@ export default {
NoRoom,
landingColumns,
vueMkHeader,
masterData
masterData,
};
},
@ -165,11 +165,11 @@ export default {
<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>
<Breadcrumbs
style="padding"
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ผังห้องพัก' }]"
/>
<div>
<Breadcrumbs
style="padding"
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ผังห้องพัก' }]"
/>
</div>
<div class="d-flex justify-content-end align-items-baseline">
<label style="margin-right: 10px">นหาพนทหรอต </label>
@ -195,19 +195,21 @@ 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> -->
<!-- <th scope="col">ประเภทหองพ</th> -->
</tr>
</thead>
<tbody>
<tr v-for="(item, index) in masterData?.building" :key="index">
<th scope="row">{{ index+1 }}</th>
<td>{{item?.buil}}</td>
<td>{{item?.name}}</td>
<td>{{item?.floor}}</td>
<td>{{item?.room}}</td>
<td>{{item?.type}}</td>
<tr v-for="(item, index) in masterData?.building" :key="index">
<th scope="row">{{ index + 1 }}</th>
<td>{{ item?.buil }}</td>
<td>{{ item?.name }}</td>
<td>{{ item?.floor }}</td>
<td>{{ item?.room }}</td>
<!-- <td>{{ item?.roomnumber }}</td> -->
<!-- <td>{{ item?.type }}</td> -->
</tr>
</tbody>
</table>
@ -259,14 +261,15 @@ export default {
placeholder="ชื่ออาคาร"
/>
</div>
<md-chips v-model="fruits" md-placeholder="Add fruit..."></md-chips>
<div class="mb-3">
<MaterialInput
:value="Floors"
@input="(event) => (Floors = event.target.value)"
class="input-group-static"
label="จำนวนชั้น"
label="ชั้น"
type="number"
placeholder="จำนวนชั้น"
placeholder="ชั้น"
/>
</div>
<div class="mb-3">
@ -280,13 +283,24 @@ export default {
placeholder="จำนวนห้อง"
/>
</div>
<!-- <div class="mb-3">
<label>กรอกเลขหอง</label>
<textarea
:value="roomnumber"
@input="(event) => (roomnumber = event.target.value)"
class="form-control"
id="exampleFormControlTextarea1"
rows="3"
placeholder="ตัวอย่าง : 1,2,3"
></textarea>
</div>
<div class="mb-3">
<label>ประเภทหองพ</label>
<v-select
:options="optionsRoomtype"
v-model="selectedRoomtype"
></v-select>
</div>
</div> -->
</div>
</div>
<div class="modal-footer">
@ -320,7 +334,6 @@ export default {
.bg-special {
border: 2px solid #edc7c7 !important;
color: #000;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {

View File

@ -150,12 +150,8 @@ export default {
<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>
@ -163,12 +159,8 @@ export default {
<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.rank }} {{ item.firstName }} {{ item.lastName }}</td>
<td>{{ item.Affiliation }}</td>
<td>{{ item.rank }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.phone }}</td>

View File

@ -33,6 +33,7 @@ const userlist = [
Affiliation: "ฝอ.1", //
rank: "ส.ต.ต.", //
old: "32",
status: "สมรส",
birthday: "04/03/2534",
idcard: "134044411441122",
phone: "0325647846",
@ -44,6 +45,7 @@ const userlist = [
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.", //
old: "32",
status: "โสด",
birthday: "14/07/2534",
idcard: "134044411441178",
phone: "0325647845",
@ -62,7 +64,7 @@ export default {
NoRoom,
userlist,
vueMkHeader,
masterData
masterData,
};
},
@ -76,6 +78,11 @@ export default {
{ label: "Laravel", value: "PHP" },
{ label: "Phoenix", value: "Elixir" },
],
DataObtion: [
{ label: "โสด", value: "โสด" },
{ label: "สมรส", value: "สมรส" },
],
selectedDataObtion: "โสด",
selectedColor: "",
firstName: "สมชัย",
lastName: "แสงสุข",
@ -83,12 +90,12 @@ export default {
rank: "", //
idcard: "134044411441178",
phone: "0325647845",
selectedRanks: 'ส.ต.ต.',
selectedAffiliation: 'ฝอ.2',
birthday: "14/07/2534"
selectedRanks: "ส.ต.ต.",
selectedAffiliation: "ฝอ.2",
birthday: "14/07/2534",
};
},
created(){
created() {
console.log(this.masterData);
},
watch: {
@ -145,35 +152,84 @@ export default {
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ทะเบียน' }]"
/>
</div>
<div class="d-flex justify-content-end align-items-baseline">
<label style="margin-right: 10px">นหาชอหรอเลขหอง </label>
<MaterialInput
class="input-group-dynamic w-30"
icon="search"
type="text"
placeholder="Search"
/>
<MaterialButton
style="margin-left: 20px"
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#userBackdrop"
>เพมสมาช</MaterialButton
>
<div class="d-flex justify-content-between align-items-baseline">
<div class="mb-3">
<div class="form-check form-check-inline">
<label style="margin-right: 20px">ประเภท</label>
<input
class="form-check-input"
type="radio"
name="inlineRadioOptions"
id="inlineRadio1"
value="Radio1"
/>
<label class="form-check-label" for="inlineRadio1">ตร.</label>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="inlineRadioOptions"
id="inlineRadio2"
value="Radio2"
/>
<label class="form-check-label" for="inlineRadio2">บช.ตชด.</label>
</div>
</div>
<div class="d-flex align-items-baseline">
<label style="margin-right: 10px">นหาช </label>
<MaterialInput
style="width: 300px"
class="input-group-dynamic"
icon="search"
type="text"
placeholder="Search"
/>
<MaterialButton
style="margin-left: 20px"
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#userBackdrop"
>เพมสมาช</MaterialButton
>
</div>
</div>
<div>
<div class="form-check form-check-inline">
<label style="margin-right: 20px">ยศ</label>
<input
class="form-check-input"
type="radio"
name="inlineRadioOptions1"
id="inlineRadio3"
value="Radio3"
/>
<label class="form-check-label" for="inlineRadio3">ประทวน</label>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="inlineRadioOptions1"
id="inlineRadio4"
value="Radio4"
/>
<label class="form-check-label" for="inlineRadio4">ญญาบตร</label>
</div>
</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>
<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>
<th scope="col">สถานภาพ</th>
<!-- <th scope="col">เลขบตรประชาชน</th> -->
<th scope="col">เบอรดต</th>
<th scope="col"></th>
</tr>
@ -181,13 +237,11 @@ export default {
<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.birthday }}</td>
<td>{{ item.old }}</td>
<td>{{ item.rank }} {{ item.firstName }} {{ item.lastName }}</td>
<td>{{ item.Affiliation }}</td>
<td>{{ item.rank }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.status }}</td>
<!-- <td>{{ item.idcard }}</td> -->
<td>{{ item.phone }}</td>
<td>
<a data-bs-toggle="modal" data-bs-target="#EdituserBackdrop"
@ -230,6 +284,17 @@ export default {
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<label>งก</label>
<v-select
:options="masterData?.Affiliation"
v-model="selectedAffiliation"
></v-select>
</div>
<div class="mb-3">
<label>ยศ</label>
<v-select :options="masterData?.ranks" v-model="selectedRanks"></v-select>
</div>
<div class="mb-3">
<MaterialInput
name="firstName"
@ -252,29 +317,9 @@ export default {
/>
</div>
<div class="mb-3">
<MaterialInput
:value="birthday"
@input="(event) => (birthday = event.target.value)"
class="input-group-static"
label="วันเกิด"
type="text"
placeholder="วันเกิด"
/>
<label>สถานภาพ</label>
<v-select :options="DataObtion" v-model="selectedDataObtion"></v-select>
</div>
<div class="mb-3">
<label>งก</label>
<v-select
:options="masterData?.Affiliation"
v-model="selectedAffiliation"
></v-select>
</div>
<div class="mb-3">
<label>ยศ</label>
<v-select
:options="masterData?.ranks"
v-model="selectedRanks"
></v-select>
</div>
<div class="mb-3">
<MaterialInput
:value="idcard"
@ -336,6 +381,17 @@ export default {
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<label>งก</label>
<v-select
:options="masterData?.Affiliation"
v-model="selectedAffiliation"
></v-select>
</div>
<div class="mb-3">
<label>ยศ</label>
<v-select :options="masterData?.ranks" v-model="selectedRanks"></v-select>
</div>
<div class="mb-3">
<MaterialInput
name="firstName"
@ -358,29 +414,9 @@ export default {
/>
</div>
<div class="mb-3">
<MaterialInput
:value="birthday"
@input="(event) => (birthday = event.target.value)"
class="input-group-static"
label="วันเกิด"
type="text"
placeholder="วันเกิด"
/>
<label>สถานภาพ</label>
<v-select :options="DataObtion" v-model="selectedDataObtion"></v-select>
</div>
<div class="mb-3">
<label>งก</label>
<v-select
:options="masterData?.Affiliation"
v-model="selectedAffiliation"
></v-select>
</div>
<div class="mb-3">
<label>ยศ</label>
<v-select
:options="masterData?.ranks"
v-model="selectedRanks"
></v-select>
</div>
<div class="mb-3">
<MaterialInput
:value="idcard"
@ -440,7 +476,6 @@ export default {
.bg-special {
border: 2px solid #edc7c7 !important;
color: #000;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {

View File

@ -291,7 +291,7 @@ export default {
<td>8,000</td>
<td>20,000</td>
<td>10,000</td>
<td>5</td>
<td>5/10</td>
</tr>
</tbody>
</table>
@ -341,7 +341,7 @@ export default {
<td>202</td>
<td>20,000</td>
<td>8,000</td>
<td>8</td>
<td>8/10</td>
</tr>
</tbody>
</table>
@ -664,7 +664,7 @@ export default {
placeholder="ค่าธรรมเนียม"
/>
</div>
<div class="mb-3">
<!-- <div class="mb-3">
<MaterialInput
:value="Insurance"
@input="(event) => (Insurance = event.target.value)"
@ -673,7 +673,7 @@ export default {
type="text"
placeholder="ค่าน้ำประปา"
/>
</div>
</div> -->
<div class="mb-3">
<MaterialInput
:value="Insurancecost"
@ -684,7 +684,7 @@ export default {
placeholder="เงินค่าประกัน"
/>
</div>
<div class="mb-3">
<!-- <div class="mb-3">
<MaterialInput
:value="installments"
@input="(event) => (installments = event.target.value)"
@ -693,7 +693,7 @@ export default {
type="text"
placeholder="งวดเงินค่าประกัน"
/>
</div>
</div> -->
</div>
</div>
<div class="modal-footer">