update ui

This commit is contained in:
kamoa457 2023-10-27 06:53:15 +07:00
parent f06af90d30
commit b75d1d815a
13 changed files with 2041 additions and 495 deletions

View File

@ -9758,7 +9758,7 @@ textarea.form-control-lg {
.bg-gray-200 {
background-color: #f0f2f5 !important;
}
.bg-gray-300 {
background-color: #dee2e6 !important;
}

View File

@ -0,0 +1,343 @@
{
"ranks": [
{
"label": "ส.ต.ต.",
"value": "ส.ต.ต."
},
{
"label": "ส.ต.ต.หญิง",
"value": "ส.ต.ต.หญิง"
},
{
"label": "ส.ต.ท.",
"value": "ส.ต.ท."
},
{
"label": "ส.ต.ท.หญิง",
"value": "ส.ต.ท.หญิง"
},
{
"label": "ส.ต.อ.",
"value": "ส.ต.อ."
},
{
"label": "ส.ต.อ.หญิง",
"value": "ส.ต.อ.หญิง"
},
{
"label": "จ.ส.ต.",
"value": "จ.ส.ต."
},
{
"label": "จ.ส.ต.หญิง",
"value": "จ.ส.ต.หญิง"
},
{
"label": "ด.ต.",
"value": "ด.ต."
},
{
"label": "ด.ต.หญิง",
"value": "ด.ต.หญิง"
},
{
"label": "ร.ต.ต.",
"value": "ร.ต.ต."
},
{
"label": "ร.ต.ต.หญิง",
"value": "ร.ต.ต.หญิง"
},
{
"label": "ร.ต.ท.",
"value": "ร.ต.ท."
},
{
"label": "ร.ต.ท.หญิง",
"value": "ร.ต.ท.หญิง"
},
{
"label": "ร.ต.อ.",
"value": "ร.ต.อ."
},
{
"label": "ร.ต.อ.หญิง",
"value": "ร.ต.อ.หญิง"
},
{
"label": "พ.ต.ต.",
"value": "พ.ต.ต."
},
{
"label": "พ.ต.ต.หญิง",
"value": "พ.ต.ต.หญิง"
},
{
"label": "พ.ต.ท.",
"value": "พ.ต.ท."
},
{
"label": "พ.ต.ท.หญิง",
"value": "พ.ต.ท.หญิง"
},
{
"label": "พ.ต.อ.",
"value": "พ.ต.อ."
},
{
"label": "พ.ต.อ.หญิง",
"value": "พ.ต.อ.หญิง"
},
{
"label": "พล.ต.ต.",
"value": "พล.ต.ต."
},
{
"label": "พล.ต.ท.",
"value": "พล.ต.ท."
},
{
"label": "พล.ต.อ.",
"value": "พล.ต.อ."
}
],
"position": [
{
"label": "รอง สว.",
"value": "รอง สว."
},
{
"label": "สว.",
"value": "สว."
},
{
"label": "รอง ผกก.",
"value": "รอง ผกก."
},
{
"label": "ผกก.",
"value": "ผกก."
},
{
"label": "รอง ผบก.",
"value": "รอง ผบก."
},
{
"label": "ผบก.",
"value": "ผบก."
},
{
"label": "รอง ผบช.",
"value": "รอง ผบช."
},
{
"label": "ผบช.",
"value": "ผบช."
},
{
"label": "ผบ.หมู่",
"value": "ผบ.หมู่"
}
],
"Affiliation": [
{
"label": "บช.ตซด.",
"value": "บช.ตซด."
},
{
"label": "บช.อก.",
"value": "บช.อก."
},
{
"label": "ฝอ.1",
"value": "ฝอ.1"
},
{
"label": "ฝอ.2",
"value": "ฝอ.2"
},
{
"label": "ฝอ.3",
"value": "ฝอ.3"
},
{
"label": "ฝอ.4",
"value": "ฝอ.4"
},
{
"label": "ฝอ.5",
"value": "ฝอ.5"
},
{
"label": "ฝอ.6",
"value": "ฝอ.6"
},
{
"label": "ฝอ.7",
"value": "ฝอ.7"
},
{
"label": "ฝอ.8",
"value": "ฝอ.8"
},
{
"label": "บช.สสน.",
"value": "บช.สสน."
},
{
"label": "ฝสสน.1",
"value": "ฝสสน.1"
},
{
"label": "ฝสสน.1",
"value": "ฝสสน.1"
},
{
"label": "ฝสสน.1",
"value": "ฝสสน.1"
},
{
"label": "ฝสสน.1",
"value": "ฝสสน.1"
},
{
"label": "ฝสสน.5",
"value": "ฝสสน.5"
}
],
"building": [
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "อาคารแฟลต 1/11",
"room": "24",
"floor": "4",
"type": "ช.2"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "อาคารแฟลต 1/12",
"room": "20",
"floor": "4",
"type": "ช.2"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "อาคารแฟลต 1/13",
"room": "24",
"floor": "4",
"type": "ช.2"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "อาคารแฟลต 1/14",
"room": "18",
"floor": "3",
"type": "ช.3"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "อาคารแฟลต 1/15",
"room": "32",
"floor": "4",
"type": "ช.2"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "อาคารแฟลต 1/16",
"room": "24",
"floor": "4",
"type": "ช.2"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "อาคารแฟลต 1/17",
"room": "32",
"floor": "4",
"type": "ช.2"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "อาคารแฟลต 1/18",
"room": "60",
"floor": "5",
"type": "-"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "แฟลตลือชา 1",
"room": "50",
"floor": "5",
"type": "-"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "แฟลตลือชา 2",
"room": "50",
"floor": "5",
"type": "-"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "แฟลตลือชา 3",
"room": "40",
"floor": "5",
"type": "ช.2"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "แฟลตบางเขน 1",
"room": "50",
"floor": "5",
"type": "-"
},
{
"buil": "อาคารบ้านพัก บช. ตชด.",
"name": "แฟลตบางเขน 2",
"room": "50",
"floor": "5",
"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,66 +2,105 @@
{
"title": "ห้อง 1",
"dataIndex": "1",
"firstName": "",
"laststName": "",
"Affiliation": "",
"status": "free"
},
{
"title": "ห้อง 2",
"dataIndex": "2",
"firstName": "ปิติ2",
"laststName": "มีดี",
"Affiliation": "ฝอ. 2",
"status": "unavailable"
},
{
"title": "ห้อง 3",
"dataIndex": "3",
"firstName": "",
"laststName": "",
"Affiliation": "",
"status": "free"
},
{
"title": "ห้อง 4",
"dataIndex": "4",
"firstName": "ปิติ2",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
"status": "return"
},
{
"title": "ห้อง 5",
"dataIndex": "5",
"firstName": "ปิติ3",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
"status": "unavailable"
},
{
"title": "ห้อง 6",
"dataIndex": "6",
"firstName": "ปิติ4",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
"status": "waiting"
},
{
"title": "ห้อง 7",
"dataIndex": "7",
"firstName": "ปิติ3",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
"status": "return"
},
{
"title": "ห้อง 8",
"dataIndex": "8",
"status": "unavailable"
"firstName": "ปิติ9",
"laststName": "มีดี",
"Affiliation": "ฝอ. 1",
"status": "special"
},
{
"title": "ห้อง 9",
"dataIndex": "9",
"firstName": "ปิติ5",
"laststName": "มีดี",
"Affiliation": "ฝอ. 4",
"status": "unavailable"
},
{
"title": "ห้อง 10",
"dataIndex": "10",
"firstName": "ปิติ6",
"laststName": "มีดี",
"Affiliation": "ฝอ. 7",
"status": "waiting"
},
{
"title": "ห้อง 11",
"dataIndex": "11",
"firstName": "",
"laststName": "",
"Affiliation": "",
"status": "free"
},
{
"title": "ห้อง 12",
"dataIndex": "12",
"firstName": "",
"laststName": "",
"Affiliation": "",
"status": "free"
},
{
"title": "ห้อง 13",
"dataIndex": "13",
"status": "waiting"
"firstName": "ปิติ7",
"laststName": "มีดี",
"Affiliation": "ฝอ. 2",
"status": "special"
}
]

View File

@ -29,8 +29,8 @@ const userlist = [
dataIndex: "1",
firstName: "สมชาย",
lastName: "แสงทอง",
Affiliation: "บก", //
rank: "ร้อยตรี", //
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.", //
old: "32",
birthday: "04/03/2534",
idcard: "134044411441122",
@ -40,8 +40,8 @@ const userlist = [
dataIndex: "2",
firstName: "สมชัย",
lastName: "แสงสุข",
Affiliation: "กก", //
rank: "ร้อยตรี", //
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.", //
old: "32",
birthday: "14/07/2534",
idcard: "134044411441178",
@ -68,11 +68,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: "",
@ -154,7 +153,7 @@ export default {
>เพมผเชาลงค</MaterialButton
>
</div>
<div class="text-center pt-4">
<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>
@ -237,16 +236,25 @@ export default {
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
border: 2px solid #567b57 !important;
color: #000;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
border: 2px solid #d24c4a !important;
color: #000;
}
.bg-waring {
background: #d1d3d5 !important;
color: #fff;
.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 {

View File

@ -132,14 +132,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
:routes="[
{ label: 'หน้าหลัก', route: '/' },
{ label: 'ระบบเรียกรายงาน' },
]"
/>
</div>
<div>
<Breadcrumbs
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ระบบเรียกรายงาน' }]"
/>
</div>
<div>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
@ -195,56 +192,91 @@ export default {
role="tabpanel"
aria-labelledby="home-tab"
>
<div class="d-flex justify-content-end pt-4">
<MaterialButton size="lg" class="btn-icon" style="margin-right: -30px">
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="40"
/>
</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="40"
/>
</div>
</MaterialButton>
<div class="d-flex justify-content-between align-items-baseline">
<div class="d-flex">
<h5>ประจำเดอน ลาคม</h5>
</div>
<div class="d-flex pt-4">
<MaterialButton
size="lg"
class="btn-icon"
style="margin-right: -30px"
>
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="40"
/>
</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="40"
/>
</div>
</MaterialButton>
</div>
</div>
<div class="text-center pt-4">
<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 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>แฟลตลอชา 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>
<td>303</td>
<td>...</td>
<td>นา บานเย</td>
<td>325</td>
<td>365</td>
<td>200</td>
<td>80</td>
<td>200</td>
<td>480</td>
<td>/</td>
</tr>
<tr>
<th scope="row">2</th>
<td>แฟลตลอชา 2</td>
<td>3</td>
<td>303</td>
<td>...</td>
<td>นา บานเย</td>
<td>325</td>
<td>365</td>
<td>200</td>
<td>80</td>
<td>200</td>
<td>480</td>
<td>/</td>
</tr>
</tbody>
</table>
@ -256,50 +288,73 @@ export default {
role="tabpanel"
aria-labelledby="profile-tab"
>
<div class="d-flex justify-content-end pt-4">
<MaterialButton size="lg" class="btn-icon" style="margin-right: -30px">
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="40"
/>
</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="40"
/>
</div>
</MaterialButton>
<div class="d-flex justify-content-between align-items-baseline">
<div class="d-flex">
<h5>ประจำเดอน ลาคม</h5>
</div>
<div class="d-flex pt-4">
<MaterialButton
size="lg"
class="btn-icon"
style="margin-right: -30px"
>
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="40"
/>
</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="40"
/>
</div>
</MaterialButton>
</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>
<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>2</td>
<td>3</td>
<td>20,000</td>
<td>8,000</td>
<td>203</td>
<td>ฝอ.2</td>
<td>1,300</td>
<td>300</td>
<td>1,600</td>
</tr>
<tr>
<th scope="row">2</th>
<td>แฟลตลอชา 2</td>
<td>1</td>
<td>101</td>
<td>ฝอ.1</td>
<td>1,300</td>
<td>300</td>
<td>1,600</td>
</tr>
</tbody>
</table>
@ -311,46 +366,115 @@ export default {
role="tabpanel"
aria-labelledby="contact-tab"
>
<div class="d-flex justify-content-end pt-4">
<MaterialButton size="lg" class="btn-icon" style="margin-right: -30px">
<div class="d-flex align-items-center">
<span style="margin-right: 5px">นท</span>
<img
src="../../assets/img/pdf.png"
alt="title"
loading="lazy"
width="40"
/>
</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="40"
/>
</div>
</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>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</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>
</td>
</tr>
<tr>
<th scope="row">1</th>
<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>
</td>
</tr>
<tr>
<th scope="row">1</th>
<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>
</td>
</tr>
</tbody>
</table>
@ -589,16 +713,24 @@ export default {
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
border: 2px solid #567b57 !important;
color: #000;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
border: 2px solid #d24c4a !important;
color: #000;
}
.bg-waring {
background: #d1d3d5 !important;
color: #fff;
.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 {

View File

@ -289,17 +289,4 @@ export default {
</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;
}
</style>

View File

@ -10,8 +10,8 @@ const userlist = [
dataIndex: "1",
firstName: "สมชาย",
lastName: "แสงทอง",
Affiliation: "บก", //
rank: "ร้อยตรี", //
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.",
idcard: "134044411441122",
phone: "0325647846",
ContractDate: "12/11/2566", //
@ -23,8 +23,8 @@ const userlist = [
dataIndex: "2",
firstName: "สมชัย",
lastName: "แสงสุข",
Affiliation: "กก", //
rank: "ร้อยตรี", //
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.",
idcard: "134044411441178",
phone: "0325647845",
ContractDate: "12/11/2566", //
@ -120,32 +120,24 @@ export default {
</div>
<!-- d-flex justify-content-between -->
<div class="d-flex justify-content-between align-items-baseline">
<h4>รายละเอยดหองพ</h4>
<h4>รายละเอยดหองพ 101</h4>
<div v-if="mode == 'edit'">
<MaterialButton variant="gradient" color="success" @click="gotoAction()"
>แกไขรายละเอยดหอง</MaterialButton
>ดการหองพ</MaterialButton
>
<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">
<div class="card mb-3">
<div class="row g-0">
<!-- <div class="col-md-4">
<img
width="300"
src="../../assets/img/team-4.jpg"
class="img-fluid rounded-start"
alt="..."
/>
</div> -->
<div class="col-md-10">
<div class="card-body">
<div class="row" v-if="statusedit == true">
@ -153,7 +145,7 @@ export default {
<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">นทำสญญา : 12/02/2564</p>
<p class="card-text">อาย : 33 </p>
@ -161,7 +153,7 @@ export default {
</div>
<div class="col-7">
<p class="card-text">นามสก : อด</p>
<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>
@ -174,6 +166,12 @@ export default {
<p class="card-text">เตอร/ไฟ : 745/546</p>
<p class="card-text">สภาพหอง : ปกต</p>
</div>
<div class="col-5">
<h5 class="card-title pt-2"></h5>
<p class="card-text">เลขทเรมใช : 3012</p>
<p class="card-text">เดอนทเรมใช : มกราคม</p>
<p class="card-text">เรมใช : 2565</p>
</div>
</div>
<!-- <p class="card-text">
<small class="text-muted">Last updated 3 mins ago</small>
@ -327,10 +325,10 @@ export default {
aria-labelledby="staticBackdropLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-dialog modal-dialog-centered" style="max-width: 740px">
<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"
@ -340,8 +338,12 @@ export default {
</div>
<div class="modal-body">
<div>
<div class="mb-3">
<div
class="mb-3"
style="display: flex; justify-content: space-between; align-items: center"
>
<div class="form-check form-check-inline">
<label style="margin-right: 20px">ญแจหอง</label>
<input
class="form-check-input"
type="radio"
@ -349,7 +351,7 @@ export default {
id="inlineRadio1"
value="option1"
/>
<label class="form-check-label" for="inlineRadio1">รอคนหอง</label>
<label class="form-check-label" for="inlineRadio1"></label>
</div>
<div class="form-check form-check-inline">
<input
@ -359,29 +361,103 @@ export default {
id="inlineRadio2"
value="option2"
/>
<label class="form-check-label" for="inlineRadio2">รอซอม</label>
<label class="form-check-label" for="inlineRadio2">ไม</label>
</div>
<div style="width: 360px; margin-bottom: 10px">
<MaterialInput
name="contract"
:value="contract"
@input="(event) => (contract = event.target.value)"
class="input-group-static"
type="text"
placeholder="สาเหตุ"
/>
</div>
</div>
<div class="mb-3">
<MaterialInput
name="contract"
:value="contract"
@input="(event) => (contract = event.target.value)"
class="input-group-static"
label="จำนวนเงินคงค้าง"
type="text"
placeholder="จำนวนเงินคงค้าง"
/>
<div
class="mb-3"
style="display: flex; justify-content: space-between; align-items: center"
>
<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="option1"
/>
<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="option2"
/>
<label class="form-check-label" for="inlineRadio2">ไม</label>
</div>
<div style="width: 360px; margin-bottom: 10px">
<MaterialInput
name="contract"
:value="contract"
@input="(event) => (contract = event.target.value)"
class="input-group-static"
type="text"
placeholder="สาเหตุ"
/>
</div>
</div>
<div class="mb-3">
<MaterialInput
:value="Checkintime"
@input="(event) => (Checkintime = event.target.value)"
class="input-group-static"
label="จำนวนงวดที่จ่าย"
type="text"
placeholder="จำนวนงวดที่จ่าย"
/>
<div>
<label style="padding-left: 30px;">หลกฐานแสดงการชาระคาไฟเดอนลาส</label>
</div>
<div
class="mb-3"
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"
name="inlineRadioOptions"
id="inlineRadio1"
value="option1"
/>
<label class="form-check-label" for="inlineRadio1"></label>
</div>
<div style="width: 250px; margin-bottom: 10px">
<MaterialInput
name="contract"
:value="contract"
@input="(event) => (contract = event.target.value)"
class="input-group-static"
type="text"
placeholder="สาเหตุ"
/>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="inlineRadioOptions"
id="inlineRadio2"
value="option2"
/>
<label class="form-check-label" for="inlineRadio2">ไม</label>
</div>
<div style="width: 250px; margin-bottom: 10px">
<MaterialInput
name="contract"
:value="contract"
@input="(event) => (contract = event.target.value)"
class="input-group-static"
type="text"
placeholder="สาเหตุ"
/>
</div>
</div>
</div>
</div>
@ -404,15 +480,23 @@ export default {
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
border: 2px solid #567b57 !important;
color: #000;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
border: 2px solid #d24c4a !important;
color: #000;
}
.bg-waring {
background: #d1d3d5 !important;
color: #fff;
.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;
}
</style>

View File

@ -36,20 +36,26 @@ export default {
{ label: "Phoenix", value: "Elixir" },
],
listRoom: [
{ label: "ตึก 1", value: "ตึก 1" },
{ label: "ตึก 2", value: "ตึก 2" },
{ label: "ตึก 3", value: "ตึก 3" },
{ label: "ตึก 4", value: "ตึก 4" },
{ label: "ตึก 5", value: "ตึก 5" },
{ label: "ตึก 6", value: "ตึก 6" },
{ label: "ตึก 7", value: "ตึก 7" },
{ 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" },
],
selectedColor: "",
statusfree: false,
statusreturn: false,
statuseunavailable: false,
statusewaiting: false,
selectedlistRoom: "ึก 1",
selectedlistRoom: "อาคารแฟลต 1/11 ",
};
},
created() {
@ -124,27 +130,26 @@ export default {
</div>
<div class="row pt-4 align-items-baseline">
<div class="col-4">
<div class=" d-flex justify-content-start align-items-baseline">
<label class="w-30" >
<div class="d-flex justify-content-start align-items-baseline">
<label class="w-30">
<i class="material-icons opacity-6 me-2 text-md">home</i>
เลอกต</label
>
<v-select class="w-100" :options="listRoom" v-model="selectedlistRoom"></v-select>
<v-select
class="w-100"
:options="listRoom"
v-model="selectedlistRoom"
></v-select>
</div>
</div>
<div class="col-8">
<div class="d-flex justify-content-end align-items-baseline">
<div class="d-flex">
<MaterialCheckbox id="terms5" checked>
<a href="javascript:;" class=" font-weight-bolder">
รายต</a
>
<a href="javascript:;" class="font-weight-bolder"> รายต</a>
</MaterialCheckbox>
<MaterialCheckbox id="terms6">
<a href="javascript:;" class=" font-weight-bolder">
กทงหมด</a
>
<a href="javascript:;" class="font-weight-bolder"> กทงหมด</a>
</MaterialCheckbox>
</div>
<label style="margin-right: 10px; margin-left: 20px"
@ -162,15 +167,29 @@ export default {
<div class="text-center pt-4">
<div class="d-flex justify-content-between align-items-baseline p-2">
<h6> 1</h6>
<div class="text-start">
<h6>{{ selectedlistRoom }}</h6>
<p class="d-flex align-items-baseline p-2">
<span>คณะกรรมการประจาต : มาร งาม , บารม งาม</span>
<a data-bs-toggle="modal" data-bs-target="#Edituser"
><i
class="material-icons"
style="cursor: pointer; margin-left: 10px"
aria-hidden="true"
>edit</i
></a
>
</p>
</div>
<div class="d-flex">
<MaterialCheckbox
id="terms"
color="success"
color="green"
:checked="statusfree"
@change="onChangeEvent('free')"
>
<a href="javascript:;" class=" font-weight-bolder"> าง</a>
<a href="javascript:;" class="font-weight-bolder"> าง</a>
</MaterialCheckbox>
<MaterialCheckbox
id="terms2"
@ -178,22 +197,15 @@ export default {
:checked="statuseunavailable"
@change="onChangeEvent('unavailable')"
>
<a href="javascript:;" class="font-weight-bolder">
ไมาง</a
>
<a href="javascript:;" class="font-weight-bolder"> ไมาง</a>
</MaterialCheckbox>
<MaterialCheckbox
id="terms3"
color="warning"
color="warning2"
:checked="statusewaiting"
@change="onChangeEvent('waiting')"
>
<a
href="javascript:;"
class="font-weight-bolder"
>
รอซอม</a
>
<a href="javascript:;" class="font-weight-bolder"> ชำร</a>
</MaterialCheckbox>
<MaterialCheckbox
id="terms4"
@ -201,12 +213,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>
@ -215,7 +222,7 @@ export default {
<div v-for="(item, index) in NoRoom" :key="index">
<div class="card mb-2">
<div class="card-body">
<p class="text-start mt-4">
<p class="text-start">
<MaterialButton
variant="outline"
color="success"
@ -239,20 +246,78 @@ export default {
:class="{
'bg-red': item?.status == 'unavailable',
'bg-green': item?.status == 'free',
'bg-warning': item?.status == 'waiting',
'bg-warning2': item?.status == 'waiting',
'bg-return': item?.status == 'return',
'bg-special': item?.status == 'special',
}"
:style="{ width: `110px` }"
:style="{ width: `115px`, height: `170px` }"
>
<div class="card-body">
<p class="card-title">
<a
style="cursor: pointer"
@click="gotodetail(item?.dataIndex, item?.status)"
class="text-white"
>{{ item?.title }}</a
<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',
}"
>
</p>
<a>{{ item?.title }}</a>
</p>
<p
v-if="item?.status == 'free'"
class="card-title bgg-green"
style="font-size: 16px"
>
{{ "ว่าง" }}
</p>
<p
v-if="item?.status == 'unavailable'"
class="card-title bgg-red"
style="font-size: 16px"
>
{{ "ไม่ว่าง" }}
</p>
<p
v-if="item?.status == 'waiting'"
class="card-title bgg-warning2"
style="font-size: 16px"
>
{{ "ชำรุด" }}
</p>
<p
v-if="item?.status == 'return'"
class="card-title bgg-return"
style="font-size: 16px"
>
{{ "รอคืนห้อง" }}
</p>
<p class="card-title" style="font-size: 14px">
{{ item?.firstName }}
</p>
<p class="card-title" style="font-size: 14px">
{{ item?.laststName }}
</p>
<div>
<span
v-if="item?.status !== 'special'"
style="text-align: right; font-size: small"
>{{ item?.Affiliation }}</span
>
<span
v-if="item?.status == 'special'"
class="text-red"
style="text-align: right; font-size: small"
>{{ "กรณีพิเศษ" }}</span
>
</div>
</a>
</div>
</div>
</div>
@ -299,24 +364,95 @@ export default {
</div>
</div>
</div>
<!-- Modal -->
<div
class="modal fade"
id="Edituser"
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 class="mb-3">
<label for="exampleFormControlTextarea1" class="form-label"
>อคณะกรรมการ</label
>
<textarea
class="form-control"
id="exampleFormControlTextarea1"
rows="3"
placeholder="กรอกชื่อ"
></textarea>
</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>
</section>
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
border: 2px solid #567b57 !important;
color: #000;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
border: 2px solid #d24c4a !important;
color: #000;
}
.bg-warning {
background: #fb8c00 !important;
color: #fff;
.bg-warning2 {
border: 2px solid #fb8c00 !important;
color: #000;
}
.bg-return {
background: #ffca28 !important;
color: #fff;
border: 2px solid #ffca28 !important;
color: #000;
}
.bg-special {
border: 2px solid #edc7c7 !important;
color: #000;
}
.bgg-green {
background-color: #567b57 !important;
color: #fff !important;
}
.bgg-red {
background-color: #d24c4a !important;
color: #fff !important;
}
.bgg-warning2 {
background-color: #fb8c00 !important;
color: #fff !important;
}
.bgg-return {
background-color: #ffca28 !important;
color: #fff !important;
}
.bgg-special {
background-color: #edc7c7 !important;
color: #fff !important;
}
.text-red {
color: #d24c4a !important;
}
ol.breadcrumb {
padding: 1rem !important;

View File

@ -101,6 +101,30 @@ const landingColumns = [
status: false,
},
];
const userlist = [
{
dataIndex: "1",
firstName: "สมชาย",
lastName: "แสงทอง",
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.", //
old: "32",
birthday: "04/03/2534",
idcard: "134044411441122",
phone: "0325647846",
},
{
dataIndex: "2",
firstName: "สมชัย",
lastName: "แสงสุข",
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.", //
old: "32",
birthday: "14/07/2534",
idcard: "134044411441178",
phone: "0325647845",
},
];
export default {
components: {
MaterialInput,
@ -112,6 +136,7 @@ export default {
listRoom,
NoRoom,
vueMkHeader,
userlist,
};
},
@ -132,11 +157,49 @@ export default {
{ label: "พฤศจิกายน", value: "11" },
{ label: "ธันวาคม", value: "12" },
],
optionsUser: [
{ label: "มานพ", value: "มานพ" },
{ label: "วิชัย", value: "วิชัย" },
{ label: "ธนาพร", value: "ธนาพร" },
{ label: "มนตรี", value: "มนตรี" },
],
optionsRoomtype: [
{ label: "ช๑", value: "ช๑" },
{ label: "ช๒", value: "ช๒" },
{ label: "ช๓", value: "ช๓" },
],
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",
selectedMonth: "ตุลาคม",
firstName: "สมชาย",
lastName: "0237",
@ -205,151 +268,790 @@ 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">
<div class="row g-0">
<div class="col-md-4">
<img
width="300"
src="../../assets/img/team-4.jpg"
class="img-fluid rounded-start"
alt="..."
/>
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">แกไขรายละเอยดหอง</h5>
<h4>ดการหองพ</h4>
<div class="row pt-4 min-vh-45">
<div class="col-lg-3">
<div
class="nav flex-column nav-pills me-3"
id="v-pills-tab"
role="tablist"
aria-orientation="vertical"
>
<button
class="nav-link active"
id="v-pills-home-tab"
data-bs-toggle="pill"
data-bs-target="#v-pills-home"
type="button"
role="tab"
aria-controls="v-pills-home"
aria-selected="true"
>
แกไขรายละเอยดหองพ
</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
class="nav-link"
id="v-pills-messages-tab"
data-bs-toggle="pill"
data-bs-target="#v-pills-messages"
type="button"
role="tab"
aria-controls="v-pills-messages"
aria-selected="false"
>
นหองพ
</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">
<div class="tab-content" id="v-pills-tabContent">
<div
class="tab-pane fade show active"
id="v-pills-home"
role="tabpanel"
aria-labelledby="v-pills-home-tab"
>
<div class="p-4">
<div>
<h5>แกไขรายละเอยด อง 2</h5>
<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="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="มิเตอร์ไฟ"
type="text"
placeholder="มิเตอร์ไฟ"
/>
</div>
<div class="mb-3">
<label>ประเภทหองพ</label>
<v-select
:options="optionsRoomtype"
v-model="selectedRoomtype"
></v-select>
</div>
<div class="row">
<div class="col-6">
<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="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="มิเตอร์ไฟ"
type="text"
placeholder="มิเตอร์ไฟ"
/>
</div>
<div class="mb-3">
<label>ประเภทหองพ</label>
<v-select
:options="optionsRoomtype"
v-model="selectedRoomtype"
></v-select>
</div>
<div class="mb-3">
<MaterialInput
:value="Roomconditions"
@input="(event) => (Roomconditions = event.target.value)"
class="input-group-static"
label="สภาพห้อง"
type="text"
placeholder="สภาพห้อง"
/>
</div>
<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="option1"
/>
<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="option2"
/>
<label class="form-check-label" for="inlineRadio2"
>ไมชำร</label
>
</div>
</div>
<!-- <div class="col-4">
<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="old"
@input="(event) => (old = event.target.value)"
class="input-group-static"
label="ค่าบำรุงลิฟท์"
type="number"
placeholder="ค่าบำรุงลิฟท์"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="insurance"
@input="(event) => (insurance = 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 class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
class="input-group-static"
label="สภาพห้อง"
type="text"
placeholder="สภาพห้อง"
/>
</div>
</div> -->
</div>
<div class="text-center" style="margin-right: 100px">
<div class="text-center">
<MaterialButton variant="gradient" color="success"
>นท</MaterialButton
>
</div>
</div>
</div>
<div
class="tab-pane fade"
id="v-pills-profile"
role="tabpanel"
aria-labelledby="v-pills-profile-tab"
>
<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"
/>
<MaterialButton
variant="gradient"
color="success"
data-bs-toggle="modal"
data-bs-target="#seleteUserBackdrop"
>เพมผเชาลงค</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>
<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.birthday }}</td>
<td>{{ item.old }}</td>
<td>{{ item.Affiliation }}</td>
<td>{{ item.rank }}</td>
<td>{{ item.idcard }}</td>
<td>{{ item.phone }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class="tab-pane fade"
id="v-pills-messages"
role="tabpanel"
aria-labelledby="v-pills-messages-tab"
>
<div>
<div
class="mb-3"
style="
display: flex;
justify-content: space-between;
align-items: center;
"
>
<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="option1"
/>
<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="option2"
/>
<label class="form-check-label" for="inlineRadio2">ไม</label>
</div>
<div style="width: 360px; margin-bottom: 10px">
<MaterialInput
name="contract"
:value="contract"
@input="(event) => (contract = event.target.value)"
class="input-group-static"
type="text"
placeholder="สาเหตุ"
/>
</div>
</div>
<div
class="mb-3"
style="
display: flex;
justify-content: space-between;
align-items: center;
"
>
<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="option1"
/>
<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="option2"
/>
<label class="form-check-label" for="inlineRadio2">ไม</label>
</div>
<div style="width: 360px; margin-bottom: 10px">
<MaterialInput
name="contract"
:value="contract"
@input="(event) => (contract = event.target.value)"
class="input-group-static"
type="text"
placeholder="สาเหตุ"
/>
</div>
</div>
<div>
<label style="padding-left: 30px"
>หลกฐานแสดงการชาระคาไฟเดอนลาส</label
>
</div>
<div
class="mb-3"
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"
name="inlineRadioOptions"
id="inlineRadio1"
value="option1"
/>
<label class="form-check-label" for="inlineRadio1"></label>
</div>
<div style="width: 250px; margin-bottom: 10px">
<MaterialInput
name="contract"
:value="contract"
@input="(event) => (contract = event.target.value)"
class="input-group-static"
type="text"
placeholder="สาเหตุ"
/>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="radio"
name="inlineRadioOptions"
id="inlineRadio2"
value="option2"
/>
<label class="form-check-label" for="inlineRadio2">ไม</label>
</div>
<div style="width: 250px; margin-bottom: 10px">
<MaterialInput
name="contract"
:value="contract"
@input="(event) => (contract = event.target.value)"
class="input-group-static"
type="text"
placeholder="สาเหตุ"
/>
</div>
</div>
<div class="pt-4 text-end">
<MaterialButton
variant="gradient"
color="success"
@click="submitForm"
html-type="submit"
>นท</MaterialButton
>
</div>
</div>
</div>
<div
class="tab-pane fade"
id="v-pills-settings"
role="tabpanel"
aria-labelledby="v-pills-settings-tab"
>
<div>
<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"
>
นทกคาใชายบานพ ตร.
</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>
</ul>
<div class="tab-content" id="myTabContent">
<div
class="tab-pane fade show active"
id="home"
role="tabpanel"
aria-labelledby="home-tab"
>
<div class="d-flex justify-content-end align-items-baseline pt-4">
<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="#staticBackdrop11"
>เพมคาใชายบานพ ตร.</MaterialButton
>
</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>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>อาคารแฟลต 1/11</td>
<td>2</td>
<td>202</td>
<td>20,000</td>
<td>8,000</td>
<td>20,000</td>
<td>8,000</td>
<td>20,000</td>
<td>10,000</td>
<td>5</td>
</tr>
</tbody>
</table>
</div>
</div>
<div
class="tab-pane fade"
id="profile"
role="tabpanel"
aria-labelledby="profile-tab"
>
<div class="d-flex justify-content-end align-items-baseline pt-4">
<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="#staticBackdrop12"
>เพมคาใชายบานพ บช.ตชด.</MaterialButton
>
</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>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>อาคารแฟลต 1/14</td>
<td>2</td>
<td>202</td>
<td>20,000</td>
<td>8,000</td>
<td>8</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- modal -->
<div
class="modal fade"
id="seleteUserBackdrop"
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="optionsUser" v-model="selectedColor"></v-select>
</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="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="staticBackdrop12"
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">
<h6 class="modal-title" id="staticBackdropLabel">
เพมคาใชายบานพ บช.ตชด. ประจำเดอนตลาคม
</h6>
<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="Maintenance"
:value="Maintenance"
@input="(event) => (Maintenance = event.target.value)"
class="input-group-static"
label="ค่าธรรมเนียม"
type="text"
placeholder="ค่าธรรมเนียม"
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Insurance"
@input="(event) => (Insurance = 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>
</section>
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
border: 2px solid #567b57 !important;
color: #000;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
border: 2px solid #d24c4a !important;
color: #000;
}
.bg-waring {
background: #d1d3d5 !important;
color: #fff;
.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;
}
.vs__actions {
cursor: pointer;

View File

@ -3,6 +3,8 @@ import MaterialInput from "@/components/MaterialInput.vue";
import MaterialButton from "@/components/MaterialButton.vue";
import vueMkHeader from "@/assets/img/bg.jpg";
import Breadcrumbs from "@/examples/Breadcrumbs.vue";
import masterData from "@/assets/dataJson/masterData.json";
const listRoom = [
{ title: "ตึก 1" },
{ title: "ตึก 2" },
@ -103,6 +105,7 @@ export default {
NoRoom,
landingColumns,
vueMkHeader,
masterData
};
},
@ -185,26 +188,26 @@ export default {
>สรางผงหอง</MaterialButton
>
</div>
<div class="text-center pt-4">
<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>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>นท</td>
<td>ก1</td>
<td>3</td>
<td>20</td>
<td>ช๑</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?.type}}</td>
</tr>
</tbody>
</table>
@ -241,9 +244,9 @@ export default {
:value="Area"
@input="(event) => (Area = event.target.value)"
class="input-group-static"
label="พื้นที่"
label="อาคารบ้านพัก"
type="text"
placeholder="พื้นที่"
placeholder="อาคารบ้านพัก"
/>
</div>
<div class="mb-3">
@ -251,9 +254,9 @@ export default {
:value="Building"
@input="(event) => (Building = event.target.value)"
class="input-group-static"
label="ตึก"
label="ชื่ออาคาร"
type="text"
placeholder="ตึก"
placeholder="ชื่ออาคาร"
/>
</div>
<div class="mb-3">
@ -299,16 +302,25 @@ export default {
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
border: 2px solid #567b57 !important;
color: #000;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
border: 2px solid #d24c4a !important;
color: #000;
}
.bg-waring {
background: #d1d3d5 !important;
color: #fff;
.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 {

View File

@ -406,18 +406,7 @@ export default {
</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;

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" },
@ -29,8 +30,8 @@ const userlist = [
dataIndex: "1",
firstName: "สมชาย",
lastName: "แสงทอง",
Affiliation: "บก", //
rank: "ร้อยตรี", //
Affiliation: "ฝอ.1", //
rank: "ส.ต.ต.", //
old: "32",
birthday: "04/03/2534",
idcard: "134044411441122",
@ -40,8 +41,8 @@ const userlist = [
dataIndex: "2",
firstName: "สมชัย",
lastName: "แสงสุข",
Affiliation: "กก", //
rank: "ร้อยตรี", //
Affiliation: "ฝอ.2", //
rank: "ส.ต.ต.", //
old: "32",
birthday: "14/07/2534",
idcard: "134044411441178",
@ -61,6 +62,7 @@ export default {
NoRoom,
userlist,
vueMkHeader,
masterData
};
},
@ -75,14 +77,20 @@ export default {
{ label: "Phoenix", value: "Elixir" },
],
selectedColor: "",
firstName: "",
lastName: "",
firstName: "สมชัย",
lastName: "แสงสุข",
Affiliation: "", //
rank: "", //
idcard: "",
phone: "",
idcard: "134044411441178",
phone: "0325647845",
selectedRanks: 'ส.ต.ต.',
selectedAffiliation: 'ฝอ.2',
birthday: "14/07/2534"
};
},
created(){
console.log(this.masterData);
},
watch: {
selectedColor: function (newValue) {
// this.updateColor(newValue)
@ -154,7 +162,7 @@ export default {
>เพมสมาช</MaterialButton
>
</div>
<div class="text-center pt-4">
<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>
@ -254,25 +262,19 @@ export default {
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="สังกัด"
type="text"
placeholder="สังกัด"
/>
</div>
<label>งก</label>
<v-select
:options="masterData?.Affiliation"
v-model="selectedAffiliation"
></v-select>
</div>
<div class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
class="input-group-static"
label="ยศ"
type="text"
placeholder="ยศ"
/>
</div>
<label>ยศ</label>
<v-select
:options="masterData?.ranks"
v-model="selectedRanks"
></v-select>
</div>
<div class="mb-3">
<MaterialInput
:value="idcard"
@ -366,25 +368,19 @@ export default {
/>
</div>
<div class="mb-3">
<MaterialInput
:value="Affiliation"
@input="(event) => (Affiliation = event.target.value)"
class="input-group-static"
label="สังกัด"
type="text"
placeholder="สังกัด"
/>
</div>
<label>งก</label>
<v-select
:options="masterData?.Affiliation"
v-model="selectedAffiliation"
></v-select>
</div>
<div class="mb-3">
<MaterialInput
:value="rank"
@input="(event) => (rank = event.target.value)"
class="input-group-static"
label="ยศ"
type="text"
placeholder="ยศ"
/>
</div>
<label>ยศ</label>
<v-select
:options="masterData?.ranks"
v-model="selectedRanks"
></v-select>
</div>
<div class="mb-3">
<MaterialInput
:value="idcard"
@ -426,16 +422,25 @@ export default {
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
border: 2px solid #567b57 !important;
color: #000;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
border: 2px solid #d24c4a !important;
color: #000;
}
.bg-waring {
background: #d1d3d5 !important;
color: #fff;
.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 {

View File

@ -110,11 +110,19 @@ export default {
return {
value: { name: "Vue.js", language: "JavaScript" },
optionsBuilding: [
{ label: "ตึก 1", value: "1" },
{ label: "ตึก 2", value: "2" },
{ label: "ตึก 3", value: "3" },
{ label: "ตึก 4", value: "4" },
{ label: "ตึก 5", value: "5" },
{ 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" },
@ -124,15 +132,15 @@ export default {
{ 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" },
{ label: "ห้อง 101", value: "1" },
{ label: "ห้อง 202", value: "2" },
{ label: "ห้อง 303", value: "3" },
{ label: "ห้อง 404", value: "4" },
{ label: "ห้อง 505", value: "5" },
],
selectedBuilding: "ึก 1",
selectedBuilding: "อาคารแฟล1/11",
selectedFloor: "ชั้น 1",
selectedRoom: "ห้อง 1",
selectedRoom: "ห้อง 101",
fee: "",
Waterbill: "",
Electricitybill: "",
@ -177,11 +185,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
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ค่าสาธารณุปโภค' }]"
/>
</div>
<div>
<Breadcrumbs
:routes="[{ label: 'หน้าหลัก', route: '/' }, { label: 'ค่าสาธารณุปโภค' }]"
/>
</div>
<div>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
@ -254,14 +262,14 @@ export default {
>เพมคาใชายบานพ ตร.</MaterialButton
>
</div>
<div class="text-center pt-4">
<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>
@ -274,9 +282,9 @@ export default {
<tbody>
<tr>
<th scope="row">1</th>
<td>1</td>
<td>อาคารแฟลต 1/11</td>
<td>2</td>
<td>3</td>
<td>202</td>
<td>20,000</td>
<td>8,000</td>
<td>20,000</td>
@ -312,14 +320,14 @@ export default {
>เพมคาใชายบานพ บช.ตชด.</MaterialButton
>
</div>
<div class="text-center pt-4">
<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>
@ -328,9 +336,9 @@ export default {
<tbody>
<tr>
<th scope="row">1</th>
<td>1</td>
<td>อาคารแฟลต 1/14</td>
<td>2</td>
<td>3</td>
<td>202</td>
<td>20,000</td>
<td>8,000</td>
<td>8</td>
@ -367,17 +375,110 @@ 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>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</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>
</td>
</tr>
<tr>
<th scope="row">1</th>
<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>
</td>
</tr>
<tr>
<th scope="row">1</th>
<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>
</td>
</tr>
</tbody>
</table>
@ -415,7 +516,7 @@ export default {
<div class="modal-body">
<div>
<div class="mb-3">
<label></label>
<label>อาคาร</label>
<v-select
:options="optionsBuilding"
v-model="selectedBuilding"
@ -426,7 +527,7 @@ export default {
<v-select :options="optionsFloor" v-model="selectedFloor"></v-select>
</div>
<div class="mb-3">
<label>อง</label>
<label>เลขทอง</label>
<v-select :options="optionsRoom" v-model="selectedRoom"></v-select>
</div>
<div class="mb-3">
@ -538,7 +639,7 @@ export default {
<div class="modal-body">
<div>
<div class="mb-3">
<label></label>
<label>อาคาร</label>
<v-select
:options="optionsBuilding"
v-model="selectedBuilding"
@ -549,7 +650,7 @@ export default {
<v-select :options="optionsFloor" v-model="selectedFloor"></v-select>
</div>
<div class="mb-3">
<label>อง</label>
<label>เลขทอง</label>
<v-select :options="optionsRoom" v-model="selectedRoom"></v-select>
</div>
<div class="mb-3">
@ -686,15 +787,23 @@ export default {
</template>
<style>
.bg-green {
background: #567b57 !important;
color: #fff;
border: 2px solid #567b57 !important;
color: #000;
}
.bg-red {
background: #d24c4a !important;
color: #fff;
border: 2px solid #d24c4a !important;
color: #000;
}
.bg-waring {
background: #d1d3d5 !important;
color: #fff;
.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;
}
</style>