|
@ -226,7 +226,7 @@ |
|
|
top="5vh" |
|
|
top="5vh" |
|
|
append-to-body |
|
|
append-to-body |
|
|
> |
|
|
> |
|
|
<CommonReminder @close="reservationVisible = !reservationVisible"/> |
|
|
<CommonReminder @close="reservationVisible = !reservationVisible" /> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<!-- 释放房源提醒弹框 --> |
|
|
<!-- 释放房源提醒弹框 --> |
|
|
<el-dialog |
|
|
<el-dialog |
|
@ -248,6 +248,7 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { listWaitingReleaseRooms } from "@/api/residence/checkout"; |
|
|
import { listWaitingReleaseRooms } from "@/api/residence/checkout"; |
|
|
|
|
|
import {checkInReservation} from "@/api/recs"; |
|
|
|
|
|
|
|
|
import * as Echarts from "echarts"; |
|
|
import * as Echarts from "echarts"; |
|
|
import CommonTitle from "./components/CommonTitle.vue"; |
|
|
import CommonTitle from "./components/CommonTitle.vue"; |
|
@ -273,13 +274,13 @@ export default { |
|
|
id: 1, |
|
|
id: 1, |
|
|
label: "入住办理", |
|
|
label: "入住办理", |
|
|
icon: require("../assets/images/antFill-phone.png"), |
|
|
icon: require("../assets/images/antFill-phone.png"), |
|
|
color: "#fbd5d5", |
|
|
color: "#FBD5D5", |
|
|
url: "/residence/check_in", |
|
|
url: "/residence/check_in", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
id: 2, |
|
|
id: 2, |
|
|
label: "退房办理", |
|
|
label: "退房办理", |
|
|
icon: require("../assets/images/antFill-phone.png"), |
|
|
icon: require("../assets/images/credit-card.png"), |
|
|
color: "#c2e2f9", |
|
|
color: "#c2e2f9", |
|
|
url: "/residence/check_out", |
|
|
url: "/residence/check_out", |
|
|
}, |
|
|
}, |
|
@ -287,7 +288,7 @@ export default { |
|
|
id: 3, |
|
|
id: 3, |
|
|
label: "入住预约", |
|
|
label: "入住预约", |
|
|
icon: require("../assets/images/antFill-phone.png"), |
|
|
icon: require("../assets/images/antFill-phone.png"), |
|
|
color: "#fbedc8", |
|
|
color: "#FBEDC8", |
|
|
}, |
|
|
}, |
|
|
// { |
|
|
// { |
|
|
// label: "看房预约", |
|
|
// label: "看房预约", |
|
@ -298,22 +299,41 @@ export default { |
|
|
id: 4, |
|
|
id: 4, |
|
|
label: "退房提醒", |
|
|
label: "退房提醒", |
|
|
icon: require("../assets/images/antFill-phone.png"), |
|
|
icon: require("../assets/images/antFill-phone.png"), |
|
|
color: "#fdd1d1", |
|
|
color: "#FDDDF1", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
id: 5, |
|
|
id: 5, |
|
|
label: "报修提醒", |
|
|
label: "续期提醒", |
|
|
icon: require("../assets/images/fa-gavel.png"), |
|
|
icon: require("../assets/images/fa-history.png"), |
|
|
color: "#fbedc8", |
|
|
color: "#FBEDC8", |
|
|
count: 3, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
id: 6, |
|
|
id: 6, |
|
|
label: "释放房源提醒", |
|
|
label: "释放房源提醒", |
|
|
icon: require("../assets/images/fa-gavel.png"), |
|
|
icon: require("../assets/images/home.png"), |
|
|
color: "#D2F9E2", |
|
|
color: "#D2F9E2", |
|
|
count: 0, |
|
|
count: 0, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
id: 7, |
|
|
|
|
|
label: "水电预警", |
|
|
|
|
|
icon: require("../assets/images/fa-gavel.png"), |
|
|
|
|
|
color: "#FDE7ED ", |
|
|
|
|
|
count: 0, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
id: 8, |
|
|
|
|
|
label: "报修", |
|
|
|
|
|
icon: require("../assets/images/fa-gavel.png"), |
|
|
|
|
|
color: "#FBEDC8", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
id: 9, |
|
|
|
|
|
label: "报事", |
|
|
|
|
|
icon: require("../assets/images/fa-gavel.png"), |
|
|
|
|
|
color: "#CFFFDC", |
|
|
|
|
|
count: 0, |
|
|
|
|
|
}, |
|
|
], |
|
|
], |
|
|
rightIcon: require("../assets/images/circle-right.png"), |
|
|
rightIcon: require("../assets/images/circle-right.png"), |
|
|
statistics: [ |
|
|
statistics: [ |
|
@ -435,7 +455,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getlistWaitingReleaseRooms(); |
|
|
this.getlistWaitingReleaseRooms(); |
|
|
|
|
|
this.getReservationList() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
goTarget(href) { |
|
|
goTarget(href) { |
|
@ -595,10 +615,11 @@ export default { |
|
|
releaseItem.count = count; |
|
|
releaseItem.count = count; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async getlistWaitingReleaseRooms() { |
|
|
// 释放房源列表 |
|
|
console.log('zhixing'); |
|
|
async getlistWaitingReleaseRooms() { |
|
|
|
|
|
console.log("zhixing"); |
|
|
const response =await listWaitingReleaseRooms(this.queryParams); |
|
|
|
|
|
|
|
|
const response = await listWaitingReleaseRooms(this.queryParams); |
|
|
if (response.code === 200) { |
|
|
if (response.code === 200) { |
|
|
this.workbenchItems = this.workbenchItems.map((item) => { |
|
|
this.workbenchItems = this.workbenchItems.map((item) => { |
|
|
if (item.id === 6) { |
|
|
if (item.id === 6) { |
|
@ -609,9 +630,24 @@ export default { |
|
|
} |
|
|
} |
|
|
return item; |
|
|
return item; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 入住预约列表 |
|
|
|
|
|
async getReservationList() { |
|
|
|
|
|
const response = await checkInReservation(this.reservationQueryParams); |
|
|
|
|
|
if (response.code === 200) { |
|
|
|
|
|
this.workbenchItems = this.workbenchItems.map((item) => { |
|
|
|
|
|
if (item.id === 3) { |
|
|
|
|
|
return { |
|
|
|
|
|
...item, |
|
|
|
|
|
count: response.total, |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
return item; |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|