|
|
@@ -177,6 +177,13 @@
|
|
|
}}/晚 余额:0
|
|
|
<!-- {{ roomLive.detail.balance }} -->
|
|
|
</p>
|
|
|
+ <p>
|
|
|
+ 来源:{{
|
|
|
+ getCustomerSourceList(
|
|
|
+ roomLive.livingData.livingOrder.customerSource
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </p>
|
|
|
<p>注:{{ roomLive.livingData.livingOrder.remark }}</p>
|
|
|
</template>
|
|
|
<template
|
|
|
@@ -306,6 +313,15 @@
|
|
|
roomLive.livingData.livingCustomers
|
|
|
.customerName
|
|
|
}}
|
|
|
+ <a-tag
|
|
|
+ color="pink"
|
|
|
+ v-if="
|
|
|
+ roomLive.livingData.livingOrder
|
|
|
+ .vipCustomerId
|
|
|
+ "
|
|
|
+ >
|
|
|
+ vip
|
|
|
+ </a-tag>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div>
|
|
|
@@ -341,14 +357,37 @@
|
|
|
}}/付0/余0</span
|
|
|
>
|
|
|
</div>
|
|
|
- <!-- <a-tag
|
|
|
+ <a-tag color="blue">欠</a-tag>
|
|
|
+ <a-tag color="blue"
|
|
|
v-if="
|
|
|
- roomLive.bookingData &&
|
|
|
- roomLive.bookingData.bookingOrder
|
|
|
+ roomLive.livingData &&
|
|
|
+ roomLive.livingData.livingOrder &&
|
|
|
+ roomLive.livingData.livingOrder.livingType == 2
|
|
|
"
|
|
|
- >订</a-tag
|
|
|
- > -->
|
|
|
- <!-- <a-tag v-if="roomLive.detail.isGroup">团</a-tag> -->
|
|
|
+ >钟</a-tag
|
|
|
+ >
|
|
|
+ <a-tag color="blue"
|
|
|
+ v-if="
|
|
|
+ roomLive.livingData &&
|
|
|
+ roomLive.livingData.livingOrder &&
|
|
|
+ roomLive.livingData.livingOrder.isTeam
|
|
|
+ "
|
|
|
+ >团</a-tag
|
|
|
+ ><a-tag color="blue"
|
|
|
+ v-if="
|
|
|
+ roomLive.livingData &&
|
|
|
+ roomLive.livingData.livingOrder &&
|
|
|
+ roomLive.livingData.livingOrder.dueOutTime ==
|
|
|
+ currentDate
|
|
|
+ "
|
|
|
+ >离</a-tag
|
|
|
+ >
|
|
|
+ <a-tag color="blue">{{
|
|
|
+ getCustomerSourceList(
|
|
|
+ roomLive.livingData.livingOrder.customerSource,
|
|
|
+ true
|
|
|
+ )
|
|
|
+ }}</a-tag>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div>
|
|
|
@@ -557,207 +596,8 @@ import forwardfangtai from "./forwardfangtai";
|
|
|
import guestorders from "./guestorders";
|
|
|
import leasegoods from "./leasegoods";
|
|
|
import { TreeSelect } from "ant-design-vue";
|
|
|
+import moment from "moment";
|
|
|
const SHOW_PARENT = TreeSelect.SHOW_PARENT;
|
|
|
-const treeData = [
|
|
|
- {
|
|
|
- title: "1栋",
|
|
|
- value: "0-0",
|
|
|
- key: "0-0",
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: "1层",
|
|
|
- value: "0-0-0",
|
|
|
- key: "0-0-0",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "2栋",
|
|
|
- value: "0-1",
|
|
|
- key: "0-1",
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: "1层",
|
|
|
- value: "0-1-0",
|
|
|
- key: "0-1-0",
|
|
|
- // disabled: true,
|
|
|
- },
|
|
|
- {
|
|
|
- title: "1层",
|
|
|
- value: "0-1-1",
|
|
|
- key: "0-1-1",
|
|
|
- },
|
|
|
- {
|
|
|
- title: "1层",
|
|
|
- value: "0-1-2",
|
|
|
- key: "0-1-2",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
-];
|
|
|
-
|
|
|
-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",
|
|
|
@@ -776,12 +616,12 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ currentDate: moment(new Date()).format("YYYY-MM-DD"),
|
|
|
activeKey: "1",
|
|
|
timeId: null,
|
|
|
multipleRoom: false,
|
|
|
keyWord: "",
|
|
|
checkedroomBuildingFloorList: [],
|
|
|
- treeData,
|
|
|
SHOW_PARENT,
|
|
|
cardStatus: {
|
|
|
0: {
|
|
|
@@ -831,12 +671,6 @@ export default {
|
|
|
color: "rgba(128, 128, 128, 1)",
|
|
|
},
|
|
|
},
|
|
|
- planList2: [
|
|
|
- {
|
|
|
- meetingRoomName: "A栋",
|
|
|
- child: planList,
|
|
|
- },
|
|
|
- ],
|
|
|
startDate: "",
|
|
|
endDate: "",
|
|
|
customerSourceList: [],
|
|
|
@@ -920,6 +754,14 @@ export default {
|
|
|
// this.$refs.ModalEditScheduleRoom.disableSubmit = false;
|
|
|
},
|
|
|
methods: {
|
|
|
+ moment,
|
|
|
+ getCustomerSourceList(customerSource, first) {
|
|
|
+ var find = this.customerSourceList.find((t) => t.value == customerSource);
|
|
|
+ if (find) {
|
|
|
+ return first ? find.label.substr(0, 1) : find.label;
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ },
|
|
|
checkInCount(rooms) {
|
|
|
return rooms.filter((t) => t.livingData && t.livingData.livingOrder)
|
|
|
.length;
|