|
|
@ -247,7 +247,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { listWaitingReleaseRooms } from "@/api/residence/checkout"; |
|
|
|
import { listWaitingReleaseRooms,listCheckoutAlert } from "@/api/residence/checkout"; |
|
|
|
import {checkInReservation} from "@/api/recs"; |
|
|
|
|
|
|
|
import * as Echarts from "echarts"; |
|
|
@ -456,6 +456,7 @@ export default { |
|
|
|
created() { |
|
|
|
this.getlistWaitingReleaseRooms(); |
|
|
|
this.getReservationList() |
|
|
|
this.getCheckoutAlertList() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
goTarget(href) { |
|
|
@ -579,9 +580,7 @@ export default { |
|
|
|
handleReservationAction(action, row) { |
|
|
|
// 处理入住预约操作逻辑 |
|
|
|
}, |
|
|
|
getReservationList() { |
|
|
|
// 获取入住预约列表逻辑 |
|
|
|
}, |
|
|
|
|
|
|
|
handleQuery() { |
|
|
|
// 处理退房提醒搜索逻辑 |
|
|
|
}, |
|
|
@ -615,6 +614,22 @@ export default { |
|
|
|
releaseItem.count = count; |
|
|
|
} |
|
|
|
}, |
|
|
|
async getCheckoutAlertList() { |
|
|
|
try { |
|
|
|
const response = await listCheckoutAlert(this.queryParams); |
|
|
|
if (response.code === 200) { |
|
|
|
this.workbenchItems = this.workbenchItems.map((item) => { |
|
|
|
if (item.id === 4) { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
count: response.total, |
|
|
|
}; |
|
|
|
} |
|
|
|
return item; |
|
|
|
}); |
|
|
|
} |
|
|
|
} catch (error) {} |
|
|
|
}, |
|
|
|
// 释放房源列表 |
|
|
|
async getlistWaitingReleaseRooms() { |
|
|
|
console.log("zhixing"); |
|
|
|