|
|
@@ -5,33 +5,73 @@
|
|
|
<a-tab-pane key="2" tab="大床房"> </a-tab-pane>
|
|
|
<a-tab-pane key="3" tab="麻将房"> </a-tab-pane>
|
|
|
</a-tabs>
|
|
|
- <div style="display: flex">
|
|
|
+ <div style="display: flex; height: calc(100vh - 240px)">
|
|
|
<div class="course-week">
|
|
|
- <div class="week-top">
|
|
|
- <!-- <div class="week-btn-wrap">
|
|
|
- <span @click="getLastWeek">上周</span>
|
|
|
- <span @click="getCurWeek">本周</span>
|
|
|
- <span @click="getNextWeek">下周</span>
|
|
|
- </div>
|
|
|
- <span class="w-today-date"> {{ todayDate }}</span> -->
|
|
|
- <div class="w-choose-status">
|
|
|
- <div v-for="sta in cardStatus">
|
|
|
- <span class="square" :style="{ background: sta.color }"></span>
|
|
|
- <span class="title">{{ sta.title }}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="w-choose-status">
|
|
|
- <a-input-search
|
|
|
- style="width: 300px; margin-left: 8px"
|
|
|
- placeholder="房间号/姓名/手机号/身份证号"
|
|
|
- enter-button="搜索"
|
|
|
- v-model="keyWord"
|
|
|
+ <div style="display: flex; flex-direction: column">
|
|
|
+ <div style="display: flex; gap: 5px">
|
|
|
+ <a-dropdown>
|
|
|
+ <a-menu slot="overlay" @click="handleMenuClick">
|
|
|
+ <a-menu-item key="1"> 散客预定 </a-menu-item>
|
|
|
+ <a-menu-item key="2"> 团队预定</a-menu-item>
|
|
|
+ </a-menu>
|
|
|
+ <a-button type="danger"> 预定 <a-icon type="down" /> </a-button>
|
|
|
+ </a-dropdown>
|
|
|
+ <a-dropdown>
|
|
|
+ <a-menu slot="overlay" @click="handleMenuClick">
|
|
|
+ <a-menu-item key="1"> 散客入住 </a-menu-item>
|
|
|
+ <a-menu-item key="2"> 团队入住</a-menu-item>
|
|
|
+ </a-menu>
|
|
|
+ <a-button type="danger">
|
|
|
+ 入住 <a-icon type="down" />
|
|
|
+ </a-button> </a-dropdown
|
|
|
+ ><a-button
|
|
|
+ style="margin-bottom: 10px"
|
|
|
+ @click="handleAdd"
|
|
|
+ type="danger"
|
|
|
+ >置干净</a-button
|
|
|
+ ><a-button
|
|
|
+ style="margin-bottom: 10px"
|
|
|
+ @click="handleAdd"
|
|
|
+ type="danger"
|
|
|
+ >置脏</a-button
|
|
|
+ ><a-button
|
|
|
+ style="margin-bottom: 10px"
|
|
|
+ @click="handleAdd"
|
|
|
type="danger"
|
|
|
- @search="handleAdd"
|
|
|
- />
|
|
|
+ >置维修</a-button
|
|
|
+ ><a-button
|
|
|
+ style="margin-bottom: 10px"
|
|
|
+ @click="handleAdd"
|
|
|
+ type="danger"
|
|
|
+ >锁房</a-button
|
|
|
+ ><a-button
|
|
|
+ style="margin-bottom: 10px"
|
|
|
+ @click="handleAdd"
|
|
|
+ type="danger"
|
|
|
+ >联房</a-button
|
|
|
+ ><a-button
|
|
|
+ style="margin-bottom: 10px"
|
|
|
+ @click="handleAdd"
|
|
|
+ type="danger"
|
|
|
+ >批量制卡</a-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="week-top">
|
|
|
+ <div class="w-choose-status">
|
|
|
+ <div v-for="sta in cardStatus">
|
|
|
+ <span class="square" :style="{ background: sta.color }"></span>
|
|
|
+ <span class="title">{{ sta.title }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="w-choose-status">
|
|
|
+ 批量操作<a-switch
|
|
|
+ v-model="multipleRoom"
|
|
|
+ @change="multipleRoomChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="week-table">
|
|
|
+ <div class="week-table" style="overflow: hidden auto">
|
|
|
<div id="components-grid-demo-playground" class="w-time-period-list">
|
|
|
<template v-for="(i, iIndex) in planList2">
|
|
|
<!--循环时段,看时段有多少个-->
|
|
|
@@ -67,12 +107,28 @@
|
|
|
v-for="(roomLive, roomLiveIndex) in period.schedule"
|
|
|
:key="`i${iIndex}-period${cIndex}roomLive${roomLiveIndex}`"
|
|
|
:span="3"
|
|
|
+ @click.stop="roomItemClick(roomLive)"
|
|
|
+ @dblclick.stop="handleBillInfo(roomLive)"
|
|
|
>
|
|
|
+ <!-- <div class="post-mark"></div> -->
|
|
|
+
|
|
|
<div
|
|
|
+ class="room-item"
|
|
|
:style="{
|
|
|
background: cardStatus[roomLive.detail.status].color,
|
|
|
}"
|
|
|
>
|
|
|
+ <div
|
|
|
+ class="select-cell"
|
|
|
+ v-if="roomLive.detail.check == 1"
|
|
|
+ >
|
|
|
+ <a-icon
|
|
|
+ type="check-circle"
|
|
|
+ theme="twoTone"
|
|
|
+ two-tone-color="#52c41a"
|
|
|
+ style="font-size: 40px"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<a-popover placement="rightTop">
|
|
|
<template
|
|
|
slot="content"
|
|
|
@@ -205,10 +261,17 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="width: 1%"></div>
|
|
|
- <div style="width: 19%">
|
|
|
- <a-button style="margin-bottom: 10px" @click="handleAdd" type="danger"
|
|
|
- >批量制卡</a-button
|
|
|
- >
|
|
|
+ <div style="width: 19%; overflow: hidden auto">
|
|
|
+ <div>
|
|
|
+ <a-input-search
|
|
|
+ style="width: 100%; margin-bottom: 8px"
|
|
|
+ placeholder="房间号/姓名/手机号/身份证号"
|
|
|
+ enter-button="搜索"
|
|
|
+ v-model="keyWord"
|
|
|
+ type="danger"
|
|
|
+ @search="handleAdd"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<p style="font-size: 16px; font-weight: 600; color: rgb(0, 186, 173)">
|
|
|
按楼层
|
|
|
</p>
|
|
|
@@ -310,6 +373,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<upkeep-room-modal ref="modalForm" @ok="modalFormOk"></upkeep-room-modal>
|
|
|
+ <bill-room-info-modal
|
|
|
+ ref="ModalBillRoomInfo"
|
|
|
+ @ok="modalFormOk"
|
|
|
+ ></bill-room-info-modal>
|
|
|
+ <bill-room-form-modal
|
|
|
+ ref="ModalBillRoomForm"
|
|
|
+ @ok="modalFormOk"
|
|
|
+ ></bill-room-form-modal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
|
@@ -319,6 +390,8 @@ import "@/assets/less/TableExpand.less";
|
|
|
// import { JeecgListMixin } from "@/mixins/JeecgListMixin";
|
|
|
import { httpAction, getAction } from "@/api/manage";
|
|
|
import UpkeepRoomModal from "./modules/upkeep/UpkeepRoomModal.vue";
|
|
|
+import BillRoomInfoModal from "./modules/checkIn/BillRoomInfoModal.vue";
|
|
|
+import BillRoomFormModal from "./modules/checkIn/BillRoomFormModal.vue";
|
|
|
import { TreeSelect } from "ant-design-vue";
|
|
|
const SHOW_PARENT = TreeSelect.SHOW_PARENT;
|
|
|
const treeData = [
|
|
|
@@ -358,280 +431,182 @@ const treeData = [
|
|
|
],
|
|
|
},
|
|
|
];
|
|
|
+
|
|
|
+const planList = [
|
|
|
+ {
|
|
|
+ timePeriod: "1层",
|
|
|
+ count: 12,
|
|
|
+ checkInCount: 5,
|
|
|
+ vacantCount: 7,
|
|
|
+ collapse: 1,
|
|
|
+ schedule: [
|
|
|
+ {
|
|
|
+ id: "1-1001",
|
|
|
+ roomNo: "1001",
|
|
|
+ detail: {
|
|
|
+ status: 0,
|
|
|
+ roomType: "高级商务大床房",
|
|
|
+ occupant: "张三",
|
|
|
+ day: 1,
|
|
|
+ date: "03-20",
|
|
|
+ amout: 300,
|
|
|
+ payAmount: 500,
|
|
|
+ balance: 200,
|
|
|
+ isGroup: 1,
|
|
|
+ remark: "靠马路,噪音大",
|
|
|
+ roomStatusName: "空净",
|
|
|
+ startDate: "2023-03-20 18:00",
|
|
|
+ endDate: "2023-03-21 18:00",
|
|
|
+ source: 1,
|
|
|
+ check: 0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ timePeriod: "2层",
|
|
|
+ count: 12,
|
|
|
+ checkInCount: 5,
|
|
|
+ vacantCount: 7,
|
|
|
+ collapse: 1,
|
|
|
+ schedule: [
|
|
|
+ {
|
|
|
+ id: "2-2001",
|
|
|
+ roomNo: "2001",
|
|
|
+ detail: {
|
|
|
+ status: 1,
|
|
|
+ roomType: "高级商务大床房",
|
|
|
+ occupant: "张三",
|
|
|
+ day: 1,
|
|
|
+ date: "03-20",
|
|
|
+ amout: 300,
|
|
|
+ payAmount: 500,
|
|
|
+ balance: 200,
|
|
|
+ isGroup: 1,
|
|
|
+ remark: "靠马路,噪音大",
|
|
|
+ roomStatusName: "空净",
|
|
|
+ startDate: "2023-03-20 18:00",
|
|
|
+ endDate: "2023-03-21 18:00",
|
|
|
+ source: 1,
|
|
|
+ check: 0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ timePeriod: "3层",
|
|
|
+ count: 0,
|
|
|
+ checkInCount: 0,
|
|
|
+ vacantCount: 0,
|
|
|
+ collapse: 1,
|
|
|
+ schedule: [
|
|
|
+ {
|
|
|
+ id: "3-3001",
|
|
|
+ roomNo: "3001",
|
|
|
+ detail: {
|
|
|
+ status: 1,
|
|
|
+ roomType: "高级商务大床房",
|
|
|
+ occupant: "张三",
|
|
|
+ day: 1,
|
|
|
+ date: "03-20",
|
|
|
+ amout: 300,
|
|
|
+ payAmount: 500,
|
|
|
+ balance: 200,
|
|
|
+ isGroup: 1,
|
|
|
+ remark: "靠马路,噪音大",
|
|
|
+ roomStatusName: "空净",
|
|
|
+ startDate: "2023-03-20 18:00",
|
|
|
+ endDate: "2023-03-21 18:00",
|
|
|
+ source: 1,
|
|
|
+ check: 0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+for (let i = 2; i < 25; i++) {
|
|
|
+ planList[0].schedule.push({
|
|
|
+ id: "1-100" + i,
|
|
|
+ roomNo: 1000 + i,
|
|
|
+ detail: {
|
|
|
+ status: i == 5 ? 1 : 0,
|
|
|
+ roomType: "高级商务大床房",
|
|
|
+ occupant: "张三",
|
|
|
+ day: 1,
|
|
|
+ date: "03-20",
|
|
|
+ amout: 300,
|
|
|
+ payAmount: 500,
|
|
|
+ balance: 200,
|
|
|
+ isGroup: 1,
|
|
|
+ remark: "靠马路,噪音大",
|
|
|
+ roomStatusName: "空净",
|
|
|
+ startDate: "2023-03-20 18:00",
|
|
|
+ endDate: "2023-03-21 18:00",
|
|
|
+ source: 1,
|
|
|
+ check: 0,
|
|
|
+ },
|
|
|
+ });
|
|
|
+}
|
|
|
+for (let i = 2; i < 25; i++) {
|
|
|
+ planList[1].schedule.push({
|
|
|
+ id: "2-100" + i,
|
|
|
+ roomNo: 2000 + i,
|
|
|
+ detail: {
|
|
|
+ status: i == 7 ? 1 : 0,
|
|
|
+ roomType: "高级商务大床房",
|
|
|
+ occupant: "张三",
|
|
|
+ day: 1,
|
|
|
+ date: "03-20",
|
|
|
+ amout: 300,
|
|
|
+ payAmount: 500,
|
|
|
+ balance: 200,
|
|
|
+ isGroup: 1,
|
|
|
+ remark: "靠马路,噪音大",
|
|
|
+ roomStatusName: "空净",
|
|
|
+ startDate: "2023-03-20 18:00",
|
|
|
+ endDate: "2023-03-21 18:00",
|
|
|
+ source: 1,
|
|
|
+ check: 0,
|
|
|
+ },
|
|
|
+ });
|
|
|
+}
|
|
|
+for (let i = 2; i < 25; i++) {
|
|
|
+ planList[2].schedule.push({
|
|
|
+ id: "3-100" + i,
|
|
|
+ roomNo: 2000 + i,
|
|
|
+ detail: {
|
|
|
+ status: i == 12 ? 1 : 0,
|
|
|
+ roomType: "高级商务大床房",
|
|
|
+ occupant: "张三",
|
|
|
+ day: 1,
|
|
|
+ date: "03-20",
|
|
|
+ amout: 300,
|
|
|
+ payAmount: 500,
|
|
|
+ balance: 200,
|
|
|
+ isGroup: 1,
|
|
|
+ remark: "靠马路,噪音大",
|
|
|
+ roomStatusName: "空净",
|
|
|
+ startDate: "2023-03-20 18:00",
|
|
|
+ endDate: "2023-03-21 18:00",
|
|
|
+ source: 1,
|
|
|
+ check: 0,
|
|
|
+ },
|
|
|
+ });
|
|
|
+}
|
|
|
export default {
|
|
|
name: "BusMeetingRoomList",
|
|
|
// mixins: [JeecgListMixin, mixinDevice],
|
|
|
components: {
|
|
|
UpkeepRoomModal,
|
|
|
+ BillRoomInfoModal,
|
|
|
+ BillRoomFormModal,
|
|
|
},
|
|
|
data() {
|
|
|
- const planList = [
|
|
|
- {
|
|
|
- timePeriod: "1层",
|
|
|
- count: 12,
|
|
|
- checkInCount: 5,
|
|
|
- vacantCount: 7,
|
|
|
- collapse: 1,
|
|
|
- schedule: [
|
|
|
- {
|
|
|
- roomNo: "1001",
|
|
|
- detail: {
|
|
|
- status: 0,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1002",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1003",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1004",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1005",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1006",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1007",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1008",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1009",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1010",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "1011",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- remark: "靠马路,噪音大",
|
|
|
- roomStatusName: "空净",
|
|
|
- startDate: "2023-03-20 18:00",
|
|
|
- endDate: "2023-03-21 18:00",
|
|
|
- source: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- timePeriod: "2层",
|
|
|
- count: 12,
|
|
|
- checkInCount: 5,
|
|
|
- vacantCount: 7,
|
|
|
- collapse: 1,
|
|
|
- schedule: [
|
|
|
- {
|
|
|
- roomNo: "2001",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- roomNo: "2002",
|
|
|
- detail: {
|
|
|
- status: 1,
|
|
|
- roomType: "高级商务大床房",
|
|
|
- occupant: "张三",
|
|
|
- day: 1,
|
|
|
- date: "03-20",
|
|
|
- amout: 300,
|
|
|
- payAmount: 500,
|
|
|
- balance: 200,
|
|
|
- isGroup: 1,
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- timePeriod: "3层",
|
|
|
- count: 0,
|
|
|
- checkInCount: 0,
|
|
|
- vacantCount: 0,
|
|
|
- collapse: 1,
|
|
|
- schedule: [],
|
|
|
- },
|
|
|
- ];
|
|
|
return {
|
|
|
- keyWord:'',
|
|
|
+ timeId: null,
|
|
|
+ multipleRoom: false,
|
|
|
+ keyWord: "",
|
|
|
value: ["0-0-0"],
|
|
|
treeData,
|
|
|
SHOW_PARENT,
|
|
|
@@ -702,7 +677,89 @@ export default {
|
|
|
// 禁用右键
|
|
|
// document.oncontextmenu = new Function("event.returnValue=false");
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ // this.handleBillInfo();
|
|
|
+ // this.handleCheckInAdd()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ handleMenuClick(e) {
|
|
|
+ console.log("click", e);
|
|
|
+ var selectRoom = [];
|
|
|
+ this.planList2.forEach((t) => {
|
|
|
+ t.child.forEach((c) => {
|
|
|
+ c.schedule.forEach((s) => {
|
|
|
+ if (s.detail.check === 1) {
|
|
|
+ selectRoom.push(s);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+ if (selectRoom.length === 0) {
|
|
|
+ this.$message.warning("请先选择房间");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.$refs.ModalBillRoomForm.addList(selectRoom);
|
|
|
+ this.$refs.ModalBillRoomForm.title = "入住登记";
|
|
|
+ this.$refs.ModalBillRoomForm.disableSubmit = false;
|
|
|
+ },
|
|
|
+ roomItemClick(roomLive) {
|
|
|
+ // 清除上一次的定时器
|
|
|
+ if (this.timeId) {
|
|
|
+ clearTimeout(this.timeId);
|
|
|
+ }
|
|
|
+ this.timeId = setTimeout(() => {
|
|
|
+ if (!this.multipleRoom && roomLive.detail.check === 0) {
|
|
|
+ this.planList2.forEach((item) => {
|
|
|
+ item.child.forEach((c) => {
|
|
|
+ c.schedule.forEach((s) => {
|
|
|
+ if (s.detail.check === 1) {
|
|
|
+ s.detail.check = 0;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (roomLive.detail.check === 0) {
|
|
|
+ roomLive.detail.check = 1;
|
|
|
+ } else {
|
|
|
+ roomLive.detail.check = 0;
|
|
|
+ }
|
|
|
+ // 清除定时器
|
|
|
+ clearTimeout(this.timeId);
|
|
|
+ }, 100);
|
|
|
+ },
|
|
|
+ handleBillInfo(roomLive) {
|
|
|
+ console.log("handleBillInfo");
|
|
|
+ if (this.timeId) {
|
|
|
+ clearTimeout(this.timeId);
|
|
|
+ }
|
|
|
+ if (roomLive.detail.status === 0) {
|
|
|
+ this.handleCheckInAdd(roomLive);
|
|
|
+ } else {
|
|
|
+ this.$refs.ModalBillRoomInfo.add();
|
|
|
+ this.$refs.ModalBillRoomInfo.title = "账单";
|
|
|
+ this.$refs.ModalBillRoomInfo.disableSubmit = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleCheckInAdd(roomLive) {
|
|
|
+ if (this.timeId) {
|
|
|
+ clearTimeout(this.timeId);
|
|
|
+ }
|
|
|
+ this.$refs.ModalBillRoomForm.add(roomLive);
|
|
|
+ this.$refs.ModalBillRoomForm.title = "入住登记";
|
|
|
+ this.$refs.ModalBillRoomForm.disableSubmit = false;
|
|
|
+ },
|
|
|
+ multipleRoomChange() {
|
|
|
+ this.planList2.forEach((item) => {
|
|
|
+ item.child.forEach((c) => {
|
|
|
+ c.schedule.forEach((s) => {
|
|
|
+ if (s.detail.check === 1) {
|
|
|
+ s.detail.check = 0;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
onChange() {},
|
|
|
tabsClick() {},
|
|
|
collapseClick(row, value) {
|
|
|
@@ -756,8 +813,34 @@ li {
|
|
|
/* border: 1px solid #ddd; */
|
|
|
/* padding: 1%; */
|
|
|
box-sizing: border-box;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
+.post-mark {
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
+.select-cell {
|
|
|
+ position: absolute;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ z-index: 10;
|
|
|
+ -webkit-box-sizing: border-box;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: rgba(102, 102, 102, 0.5);
|
|
|
+ -webkit-user-select: none;
|
|
|
+ -moz-user-select: none;
|
|
|
+ -ms-user-select: none;
|
|
|
+ user-select: none;
|
|
|
+ border-radius: 5px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
-
|
|
|
.week-top {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
@@ -974,7 +1057,7 @@ li {
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
-#components-grid-demo-playground [class~="ant-col"] > div {
|
|
|
+#components-grid-demo-playground .room-item {
|
|
|
background: rgba(67, 207, 124, 1);
|
|
|
height: 125px;
|
|
|
/* line-height: 200px; */
|
|
|
@@ -983,6 +1066,7 @@ li {
|
|
|
padding: 2px;
|
|
|
border-radius: 5px;
|
|
|
cursor: pointer;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
#components-grid-demo-playground pre {
|
|
|
background: #f9f9f9;
|