|
@@ -19,22 +19,22 @@
|
|
|
<div style="width: 80%" class="course-week">
|
|
<div style="width: 80%" class="course-week">
|
|
|
<div style="display: flex; flex-direction: column">
|
|
<div style="display: flex; flex-direction: column">
|
|
|
<div style="display: flex; gap: 5px; flex-flow: wrap">
|
|
<div style="display: flex; gap: 5px; flex-flow: wrap">
|
|
|
- <a-dropdown :disabled="scheduleBtnDis">
|
|
|
|
|
- <a-menu slot="overlay" @click="scheduleClick">
|
|
|
|
|
- <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 :disabled="checkInBtnDis">
|
|
|
|
|
- <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 :disabled="scheduleBtnDis">-->
|
|
|
|
|
+ <!-- <a-menu slot="overlay" @click="scheduleClick">-->
|
|
|
|
|
+ <!-- <a-menu-item key="1"> 散客预定 </a-menu-item>-->
|
|
|
|
|
+ <!-- <a-menu-item key="2"> 团队预定</a-menu-item>-->
|
|
|
|
|
+ <!-- </a-menu>-->
|
|
|
|
|
+ <a-button type="danger" @click="scheduleClick"> 预定 </a-button>
|
|
|
|
|
+ <!-- </a-dropdown>-->
|
|
|
|
|
+ <!-- <a-dropdown :disabled="checkInBtnDis">-->
|
|
|
|
|
+ <!-- <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" @click="handleMenuClick">
|
|
|
|
|
+ 入住
|
|
|
|
|
+ </a-button>
|
|
|
|
|
+ <!-- </a-dropdown>-->
|
|
|
<a-button
|
|
<a-button
|
|
|
style="margin-bottom: 10px"
|
|
style="margin-bottom: 10px"
|
|
|
@click="handleClean"
|
|
@click="handleClean"
|
|
@@ -173,6 +173,7 @@
|
|
|
{{ roomLive.livingData.livingOrder.relTag }}
|
|
{{ roomLive.livingData.livingOrder.relTag }}
|
|
|
</div>
|
|
</div>
|
|
|
<a-popover
|
|
<a-popover
|
|
|
|
|
+ v-model="roomLive.popoverShow"
|
|
|
placement="rightTop"
|
|
placement="rightTop"
|
|
|
:mouseLeaveDelay="0"
|
|
:mouseLeaveDelay="0"
|
|
|
overlayClassName="popoverWidth"
|
|
overlayClassName="popoverWidth"
|
|
@@ -219,7 +220,7 @@
|
|
|
</p>
|
|
</p>
|
|
|
<p>注:{{ roomLive.livingData.livingOrder.remark }}</p>
|
|
<p>注:{{ roomLive.livingData.livingOrder.remark }}</p>
|
|
|
<p v-if="roomLive.bookingData.releBookingRooms != null && roomLive.bookingData.releBookingRooms.length > 1">关联房:{{ releBookingRoom(roomLive.bookingData.releBookingRooms) }}</p>
|
|
<p v-if="roomLive.bookingData.releBookingRooms != null && roomLive.bookingData.releBookingRooms.length > 1">关联房:{{ releBookingRoom(roomLive.bookingData.releBookingRooms) }}</p>
|
|
|
- <p>对客服务:{{ roomLive.livingData.livingOrder.ddisturb ? " 免打扰" : '' }} {{ roomLive.livingData.livingOrder.dquery ? " 免查询" : '' }}</p>
|
|
|
|
|
|
|
+ <p>对客服务:{{ roomLive.livingData.livingOrder.ddisturb ? " 免打扰" : '' }} {{ roomLive.livingData.livingOrder.dquery ? " 免查询" : '' }}</p>
|
|
|
</template>
|
|
</template>
|
|
|
<template
|
|
<template
|
|
|
slot="title"
|
|
slot="title"
|
|
@@ -453,9 +454,9 @@
|
|
|
<a-tag
|
|
<a-tag
|
|
|
color="blue"
|
|
color="blue"
|
|
|
v-if="roomLive.livingData &&
|
|
v-if="roomLive.livingData &&
|
|
|
- roomLive.livingData.livingOrder &&
|
|
|
|
|
- roomLive.livingData.livingOrder.shouKuan -
|
|
|
|
|
- roomLive.livingData.livingOrder.xiaoFei <0">
|
|
|
|
|
|
|
+ roomLive.livingData.livingOrder &&
|
|
|
|
|
+ roomLive.livingData.livingOrder.shouKuan -
|
|
|
|
|
+ roomLive.livingData.livingOrder.xiaoFei <0">
|
|
|
欠
|
|
欠
|
|
|
</a-tag>
|
|
</a-tag>
|
|
|
<a-tag
|
|
<a-tag
|
|
@@ -464,45 +465,41 @@
|
|
|
借
|
|
借
|
|
|
</a-tag>
|
|
</a-tag>
|
|
|
<a-tag
|
|
<a-tag
|
|
|
- color="blue"
|
|
|
|
|
- v-if="roomLive.livingData &&
|
|
|
|
|
- roomLive.livingData.livingOrder &&
|
|
|
|
|
- roomLive.livingData.livingOrder.dueOutTime.substr(0,10) === moment(new Date()).format('YYYY-MM-DD')">
|
|
|
|
|
|
|
+ color="blue"
|
|
|
|
|
+ v-if="roomLive.livingData &&
|
|
|
|
|
+ roomLive.livingData.livingOrder &&
|
|
|
|
|
+ roomLive.livingData.livingOrder.dueOutTime.substr(0,10) === moment(new Date()).format('YYYY-MM-DD')">
|
|
|
离
|
|
离
|
|
|
</a-tag>
|
|
</a-tag>
|
|
|
<a-tag
|
|
<a-tag
|
|
|
- color="blue"
|
|
|
|
|
- v-if="roomLive.isExamine">
|
|
|
|
|
|
|
+ color="blue"
|
|
|
|
|
+ v-if="roomLive.isExamine">
|
|
|
查
|
|
查
|
|
|
</a-tag>
|
|
</a-tag>
|
|
|
<a-tag
|
|
<a-tag
|
|
|
color="blue"
|
|
color="blue"
|
|
|
- v-if="
|
|
|
|
|
- roomLive.livingData &&
|
|
|
|
|
- roomLive.livingData.livingOrder &&
|
|
|
|
|
- roomLive.livingData.livingOrder.livingType == 2
|
|
|
|
|
|
|
+ v-if="roomLive.livingData && roomLive.livingData.livingOrder &&
|
|
|
|
|
+ roomLive.livingData.livingOrder.livingType == 2
|
|
|
"
|
|
"
|
|
|
- >钟</a-tag
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ >钟</a-tag>
|
|
|
<a-tag
|
|
<a-tag
|
|
|
color="blue"
|
|
color="blue"
|
|
|
- v-if="
|
|
|
|
|
- roomLive.livingData &&
|
|
|
|
|
- roomLive.livingData.livingOrder &&
|
|
|
|
|
- roomLive.livingData.livingOrder.isTeam
|
|
|
|
|
|
|
+ v-if="roomLive.livingData && roomLive.livingData.livingOrder &&
|
|
|
|
|
+ roomLive.livingData.livingOrder.livingType == 5
|
|
|
"
|
|
"
|
|
|
- >团</a-tag
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ >长</a-tag>
|
|
|
<a-tag
|
|
<a-tag
|
|
|
color="blue"
|
|
color="blue"
|
|
|
- v-if="
|
|
|
|
|
- roomLive.livingData &&
|
|
|
|
|
- roomLive.livingData.livingOrder &&
|
|
|
|
|
- roomLive.livingData.livingOrder.dueOutTime ==
|
|
|
|
|
- currentDate
|
|
|
|
|
|
|
+ v-if=" roomLive.livingData &&
|
|
|
|
|
+ roomLive.livingData.livingOrder &&
|
|
|
|
|
+ roomLive.livingData.livingOrder.isTeam
|
|
|
"
|
|
"
|
|
|
- >离</a-tag
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ >团</a-tag >
|
|
|
|
|
+ <a-tag
|
|
|
|
|
+ color="blue"
|
|
|
|
|
+ v-if=" roomLive.livingData && roomLive.livingData.livingOrder &&
|
|
|
|
|
+ roomLive.livingData.livingOrder.dueOutTime == currentDate"
|
|
|
|
|
+ >离</a-tag >
|
|
|
<a-tag color="blue">{{
|
|
<a-tag color="blue">{{
|
|
|
getCustomerSourceList(
|
|
getCustomerSourceList(
|
|
|
roomLive.livingData.livingOrder.customerSource,
|
|
roomLive.livingData.livingOrder.customerSource,
|
|
@@ -572,13 +569,8 @@
|
|
|
}}</span
|
|
}}</span
|
|
|
>
|
|
>
|
|
|
</div> -->
|
|
</div> -->
|
|
|
- <a-tag
|
|
|
|
|
- v-if="
|
|
|
|
|
- roomLive.bookingData &&
|
|
|
|
|
- roomLive.bookingData.bookingOrder
|
|
|
|
|
- "
|
|
|
|
|
- >订</a-tag
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <a-tag v-if="roomLive.bookingData &&roomLive.bookingData.bookingOrder">订</a-tag>
|
|
|
|
|
+ <a-tag v-if="roomLive.bookingData &&roomLive.bookingData.bookingOrder && roomLive.roomInfo.lastRoomStatus == 2">脏</a-tag>
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
|
<!--右键弹出标签-->
|
|
<!--右键弹出标签-->
|
|
@@ -652,8 +644,8 @@
|
|
|
</template>
|
|
</template>
|
|
|
<a-menu-item
|
|
<a-menu-item
|
|
|
key="31"
|
|
key="31"
|
|
|
- v-if="roomLive.roomInfo.roomStatus === 2 || roomLive.roomInfo.roomStatus === 4"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ v-if="roomLive.roomInfo.roomStatus === 2 || roomLive.roomInfo.roomStatus === 4
|
|
|
|
|
+ || (roomLive.roomInfo.roomStatus === 7 && roomLive.roomInfo.lastRoomStatus === 2)">
|
|
|
置干净
|
|
置干净
|
|
|
</a-menu-item>
|
|
</a-menu-item>
|
|
|
<a-menu-item
|
|
<a-menu-item
|
|
@@ -1108,7 +1100,7 @@ export default {
|
|
|
// 叫醒房间
|
|
// 叫醒房间
|
|
|
rouseRoomList: [],
|
|
rouseRoomList: [],
|
|
|
// 房间信息筛选暂时
|
|
// 房间信息筛选暂时
|
|
|
- roomInformationScreening:[
|
|
|
|
|
|
|
+ roomInformationScreening: [
|
|
|
{
|
|
{
|
|
|
label: '欠费',
|
|
label: '欠费',
|
|
|
value: '1'
|
|
value: '1'
|
|
@@ -1132,10 +1124,10 @@ export default {
|
|
|
{
|
|
{
|
|
|
label: '不足',
|
|
label: '不足',
|
|
|
value: '6'
|
|
value: '6'
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
// 老房间信息筛选暂时
|
|
// 老房间信息筛选暂时
|
|
|
- oldRoomInformationScreening:[
|
|
|
|
|
|
|
+ oldRoomInformationScreening: [
|
|
|
{
|
|
{
|
|
|
label: '欠费',
|
|
label: '欠费',
|
|
|
value: '1'
|
|
value: '1'
|
|
@@ -1159,10 +1151,10 @@ export default {
|
|
|
{
|
|
{
|
|
|
label: '不足',
|
|
label: '不足',
|
|
|
value: '6'
|
|
value: '6'
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
// 对客服务筛选
|
|
// 对客服务筛选
|
|
|
- customerServiceScreening:[
|
|
|
|
|
|
|
+ customerServiceScreening: [
|
|
|
{
|
|
{
|
|
|
label: '生日',
|
|
label: '生日',
|
|
|
value: '1'
|
|
value: '1'
|
|
@@ -1182,10 +1174,10 @@ export default {
|
|
|
{
|
|
{
|
|
|
label: '保密房',
|
|
label: '保密房',
|
|
|
value: '5'
|
|
value: '5'
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
// 老对客服务筛选
|
|
// 老对客服务筛选
|
|
|
- oldCustomerServiceScreening:[
|
|
|
|
|
|
|
+ oldCustomerServiceScreening: [
|
|
|
{
|
|
{
|
|
|
label: '生日',
|
|
label: '生日',
|
|
|
value: '1'
|
|
value: '1'
|
|
@@ -1205,7 +1197,7 @@ export default {
|
|
|
{
|
|
{
|
|
|
label: '保密房',
|
|
label: '保密房',
|
|
|
value: '5'
|
|
value: '5'
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
startDate: '',
|
|
startDate: '',
|
|
|
endDate: '',
|
|
endDate: '',
|
|
@@ -1225,13 +1217,13 @@ export default {
|
|
|
kzfLiving: false,
|
|
kzfLiving: false,
|
|
|
roomCard: false,
|
|
roomCard: false,
|
|
|
roomClear: false,
|
|
roomClear: false,
|
|
|
- CustomerSourceScreening:[],
|
|
|
|
|
|
|
+ CustomerSourceScreening: [],
|
|
|
// 房间类型
|
|
// 房间类型
|
|
|
checkedCestList: [],
|
|
checkedCestList: [],
|
|
|
// 房间信息暂存数据
|
|
// 房间信息暂存数据
|
|
|
- rouseinfoRoomList:[],
|
|
|
|
|
|
|
+ rouseinfoRoomList: [],
|
|
|
// 需要查房或正在查房的房间
|
|
// 需要查房或正在查房的房间
|
|
|
- needExamineRoomIds:[],
|
|
|
|
|
|
|
+ needExamineRoomIds: [],
|
|
|
// 老房态数据
|
|
// 老房态数据
|
|
|
oldRoomStatusList: [],
|
|
oldRoomStatusList: [],
|
|
|
// 老来源数据
|
|
// 老来源数据
|
|
@@ -1245,7 +1237,7 @@ export default {
|
|
|
// console.log('activeKey', key)
|
|
// console.log('activeKey', key)
|
|
|
},
|
|
},
|
|
|
'$route'(to, from) {
|
|
'$route'(to, from) {
|
|
|
- if (to.path == '/room/dynamic/fangtai'){
|
|
|
|
|
|
|
+ if (to.path == '/room/dynamic/fangtai') {
|
|
|
this.loadData()
|
|
this.loadData()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1332,19 +1324,19 @@ export default {
|
|
|
hotelId: _info.id,
|
|
hotelId: _info.id,
|
|
|
dictId: '1639538915239743490'
|
|
dictId: '1639538915239743490'
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
- console.log(res);
|
|
|
|
|
|
|
+ console.log(res)
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
let list = []
|
|
let list = []
|
|
|
res.result.records.forEach((item) => {
|
|
res.result.records.forEach((item) => {
|
|
|
list.push({ label: item.itemText, value: item.id })
|
|
list.push({ label: item.itemText, value: item.id })
|
|
|
})
|
|
})
|
|
|
- console.log(list);
|
|
|
|
|
|
|
+ console.log(list)
|
|
|
this.customerSourceList = this.customerSourceList.concat(list)
|
|
this.customerSourceList = this.customerSourceList.concat(list)
|
|
|
this.oldCustomerSourceList = this.oldCustomerSourceList.concat(list)
|
|
this.oldCustomerSourceList = this.oldCustomerSourceList.concat(list)
|
|
|
// this.customerSourceList = list
|
|
// this.customerSourceList = list
|
|
|
// this.oldCustomerSourceList = list
|
|
// this.oldCustomerSourceList = list
|
|
|
- console.log(this.customerSourceList);
|
|
|
|
|
- console.log(this.oldCustomerSourceList);
|
|
|
|
|
|
|
+ console.log(this.customerSourceList)
|
|
|
|
|
+ console.log(this.oldCustomerSourceList)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
getAction('/rooms/cesRoomLayout/list', {
|
|
getAction('/rooms/cesRoomLayout/list', {
|
|
@@ -1411,10 +1403,10 @@ export default {
|
|
|
// }
|
|
// }
|
|
|
if ('figure' in item) {
|
|
if ('figure' in item) {
|
|
|
let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
|
- this.cesRoomLayoutList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|
|
|
|
|
|
|
+ this.cesRoomLayoutList.splice(tempindex, 1, { label: item.label + item.figure, value: item.value })
|
|
|
} else {
|
|
} else {
|
|
|
let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
|
- this.cesRoomLayoutList.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
|
|
|
|
|
+ this.cesRoomLayoutList.splice(tempindex, 1, { label: item.label + 0, value: item.value })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -1424,27 +1416,27 @@ export default {
|
|
|
if (item.value == val) {
|
|
if (item.value == val) {
|
|
|
let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
|
if (item.label.substr(-1) == '1') {
|
|
if (item.label.substr(-1) == '1') {
|
|
|
- this.cesRoomLayoutList.splice(tempindex,1,{label: item.label,value: item.value})
|
|
|
|
|
- } else if ('figure' in item){
|
|
|
|
|
- this.cesRoomLayoutList.splice(tempindex,1,{label: item.label, figure:item.figure + 1, value: item.value})
|
|
|
|
|
|
|
+ this.cesRoomLayoutList.splice(tempindex, 1, { label: item.label, value: item.value })
|
|
|
|
|
+ } else if ('figure' in item) {
|
|
|
|
|
+ this.cesRoomLayoutList.splice(tempindex, 1, { label: item.label, figure: item.figure + 1, value: item.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.cesRoomLayoutList.splice(tempindex,1,{label: item.label, figure:1, value: item.value})
|
|
|
|
|
|
|
+ this.cesRoomLayoutList.splice(tempindex, 1, { label: item.label, figure: 1, value: item.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 处理筛选条件数据-对客服务
|
|
// 处理筛选条件数据-对客服务
|
|
|
- customerServiceProcessing(val,rouse) {
|
|
|
|
|
|
|
+ customerServiceProcessing(val, rouse) {
|
|
|
this.customerServiceScreening.forEach(ids => {
|
|
this.customerServiceScreening.forEach(ids => {
|
|
|
// 处理叫醒
|
|
// 处理叫醒
|
|
|
if (ids.value == '2' && rouse == true) {
|
|
if (ids.value == '2' && rouse == true) {
|
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == ids)
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == ids)
|
|
|
if (ids.label.substr(-1) == '1') {
|
|
if (ids.label.substr(-1) == '1') {
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label,value: ids.value})
|
|
|
|
|
- } else if ('figure' in ids){
|
|
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label, figure:ids.figure + 1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, value: ids.value })
|
|
|
|
|
+ } else if ('figure' in ids) {
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, figure: ids.figure + 1, value: ids.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label, figure:1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, figure: 1, value: ids.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// console.log(ids);
|
|
// console.log(ids);
|
|
@@ -1452,50 +1444,49 @@ export default {
|
|
|
if (ids.value == '3' && val.ddisturb == true) {
|
|
if (ids.value == '3' && val.ddisturb == true) {
|
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == ids)
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == ids)
|
|
|
if (ids.label.substr(-1) == '1') {
|
|
if (ids.label.substr(-1) == '1') {
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label,value: ids.value})
|
|
|
|
|
- } else if ('figure' in ids){
|
|
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label, figure:ids.figure + 1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, value: ids.value })
|
|
|
|
|
+ } else if ('figure' in ids) {
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, figure: ids.figure + 1, value: ids.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label, figure:1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, figure: 1, value: ids.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 处理免查询
|
|
// 处理免查询
|
|
|
if (ids.value == '4' && val.dquery == true) {
|
|
if (ids.value == '4' && val.dquery == true) {
|
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == ids)
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == ids)
|
|
|
if (ids.label.substr(-1) == '1') {
|
|
if (ids.label.substr(-1) == '1') {
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label,value: ids.value})
|
|
|
|
|
- } else if ('figure' in ids){
|
|
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label, figure:ids.figure + 1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, value: ids.value })
|
|
|
|
|
+ } else if ('figure' in ids) {
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, figure: ids.figure + 1, value: ids.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label, figure:1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, figure: 1, value: ids.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 处理保密房
|
|
// 处理保密房
|
|
|
if (ids.value == '5' && val.secrecy == true) {
|
|
if (ids.value == '5' && val.secrecy == true) {
|
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == ids)
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == ids)
|
|
|
if (ids.label.substr(-1) == '1') {
|
|
if (ids.label.substr(-1) == '1') {
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label,value: ids.value})
|
|
|
|
|
- } else if ('figure' in ids){
|
|
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label, figure:ids.figure + 1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, value: ids.value })
|
|
|
|
|
+ } else if ('figure' in ids) {
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, figure: ids.figure + 1, value: ids.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: ids.label, figure:1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: ids.label, figure: 1, value: ids.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 处理筛选条件数据-房间信息
|
|
// 处理筛选条件数据-房间信息
|
|
|
- roomInformationFiltering(val,rouse) {
|
|
|
|
|
- console.log(this.roomInformationScreening)
|
|
|
|
|
|
|
+ roomInformationFiltering(val, rouse) {
|
|
|
this.roomInformationScreening.forEach(ids => {
|
|
this.roomInformationScreening.forEach(ids => {
|
|
|
// 处理租借
|
|
// 处理租借
|
|
|
if (ids.value == '5' && rouse == true) {
|
|
if (ids.value == '5' && rouse == true) {
|
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == ids)
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == ids)
|
|
|
if (ids.label.substr(-1) == '1') {
|
|
if (ids.label.substr(-1) == '1') {
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label,value: ids.value})
|
|
|
|
|
- } else if ('figure' in ids){
|
|
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label, figure:ids.figure + 1, value: ids.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, value: ids.value })
|
|
|
|
|
+ } else if ('figure' in ids) {
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, figure: ids.figure + 1, value: ids.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label, figure:1, value: ids.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, figure: 1, value: ids.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// console.log(ids);
|
|
// console.log(ids);
|
|
@@ -1503,33 +1494,33 @@ export default {
|
|
|
if (ids.value == '3' && val.isStayOver == true) {
|
|
if (ids.value == '3' && val.isStayOver == true) {
|
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == ids)
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == ids)
|
|
|
if (ids.label.substr(-1) == '1') {
|
|
if (ids.label.substr(-1) == '1') {
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label,value: ids.value})
|
|
|
|
|
- } else if ('figure' in ids){
|
|
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label, figure:ids.figure + 1, value: ids.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, value: ids.value })
|
|
|
|
|
+ } else if ('figure' in ids) {
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, figure: ids.figure + 1, value: ids.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label, figure:1, value: ids.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, figure: 1, value: ids.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 处理换房
|
|
// 处理换房
|
|
|
if (ids.value == '4' && val.isChangeRoom == true) {
|
|
if (ids.value == '4' && val.isChangeRoom == true) {
|
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == ids)
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == ids)
|
|
|
if (ids.label.substr(-1) == '1') {
|
|
if (ids.label.substr(-1) == '1') {
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label,value: ids.value})
|
|
|
|
|
- } else if ('figure' in ids){
|
|
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label, figure:ids.figure + 1, value: ids.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, value: ids.value })
|
|
|
|
|
+ } else if ('figure' in ids) {
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, figure: ids.figure + 1, value: ids.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label, figure:1, value: ids.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, figure: 1, value: ids.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 处理保密房
|
|
// 处理保密房
|
|
|
if (ids.value == '1' && val.shouKuan - val.xiaoFei < 0) {
|
|
if (ids.value == '1' && val.shouKuan - val.xiaoFei < 0) {
|
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == ids)
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == ids)
|
|
|
if (ids.label.substr(-1) == '1') {
|
|
if (ids.label.substr(-1) == '1') {
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label,value: ids.value})
|
|
|
|
|
- } else if ('figure' in ids){
|
|
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label, figure:ids.figure + 1, value: ids.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, value: ids.value })
|
|
|
|
|
+ } else if ('figure' in ids) {
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, figure: ids.figure + 1, value: ids.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: ids.label, figure:1, value: ids.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: ids.label, figure: 1, value: ids.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -1541,14 +1532,14 @@ export default {
|
|
|
let tempindex = this.customerSourceList.findIndex(index => index == ids)
|
|
let tempindex = this.customerSourceList.findIndex(index => index == ids)
|
|
|
// console.log(!('figure' in ids));
|
|
// console.log(!('figure' in ids));
|
|
|
if (ids.label.substr(-1) == '1') {
|
|
if (ids.label.substr(-1) == '1') {
|
|
|
- this.customerSourceList.splice(tempindex,1,{label: ids.label,value: ids.value})
|
|
|
|
|
- } else if ('figure' in ids){
|
|
|
|
|
- this.customerSourceList.splice(tempindex,1,{label: ids.label, figure:ids.figure + 1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerSourceList.splice(tempindex, 1, { label: ids.label, value: ids.value })
|
|
|
|
|
+ } else if ('figure' in ids) {
|
|
|
|
|
+ this.customerSourceList.splice(tempindex, 1, { label: ids.label, figure: ids.figure + 1, value: ids.value })
|
|
|
} else {
|
|
} else {
|
|
|
- this.customerSourceList.splice(tempindex,1,{label: ids.label, figure:1, value: ids.value})
|
|
|
|
|
|
|
+ this.customerSourceList.splice(tempindex, 1, { label: ids.label, figure: 1, value: ids.value })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- },)
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
handleContextMenu(event) {
|
|
handleContextMenu(event) {
|
|
|
event.preventDefault()
|
|
event.preventDefault()
|
|
@@ -1708,8 +1699,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
this.$refs.ModalScheduleRoom.addList(selectRoom, e.key)
|
|
this.$refs.ModalScheduleRoom.addList(selectRoom, e.key)
|
|
|
- this.$refs.ModalScheduleRoom.title =
|
|
|
|
|
- e.key == '1' ? '散客预定登记' : '团队预定登记'
|
|
|
|
|
|
|
+ this.$refs.ModalScheduleRoom.title = '散客预定登记'
|
|
|
this.$refs.ModalScheduleRoom.disableSubmit = false
|
|
this.$refs.ModalScheduleRoom.disableSubmit = false
|
|
|
},
|
|
},
|
|
|
handleMenuClick(e) {
|
|
handleMenuClick(e) {
|
|
@@ -1732,9 +1722,9 @@ export default {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
//
|
|
//
|
|
|
- this.$refs.ModalBillRoomForm.addList(selectRoom, e.key)
|
|
|
|
|
- this.$refs.ModalBillRoomForm.title =
|
|
|
|
|
- e.key == '1' ? '散客入住登记' : '团队入住记'
|
|
|
|
|
|
|
+ // this.$refs.ModalBillRoomForm.addList(selectRoom, e.key)
|
|
|
|
|
+ this.$refs.ModalBillRoomForm.addList(selectRoom, 1)
|
|
|
|
|
+ this.$refs.ModalBillRoomForm.title = '散客入住记'
|
|
|
this.$refs.ModalBillRoomForm.disableSubmit = false
|
|
this.$refs.ModalBillRoomForm.disableSubmit = false
|
|
|
},
|
|
},
|
|
|
roomItemClick(roomLive) {
|
|
roomItemClick(roomLive) {
|
|
@@ -1813,6 +1803,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
handleBillInfo(roomLive) {
|
|
handleBillInfo(roomLive) {
|
|
|
// console.log('handleBillInfo', roomLive)
|
|
// console.log('handleBillInfo', roomLive)
|
|
|
|
|
+ roomLive.popoverShow = false
|
|
|
if (this.timeId) {
|
|
if (this.timeId) {
|
|
|
clearTimeout(this.timeId)
|
|
clearTimeout(this.timeId)
|
|
|
}
|
|
}
|
|
@@ -1974,7 +1965,7 @@ export default {
|
|
|
}, [])
|
|
}, [])
|
|
|
// 筛选出对应服务的房间
|
|
// 筛选出对应服务的房间
|
|
|
this.checkedStateList.forEach(item => {
|
|
this.checkedStateList.forEach(item => {
|
|
|
- console.log(item);
|
|
|
|
|
|
|
+ console.log(item)
|
|
|
list = list.reduce((acc, curr) => {
|
|
list = list.reduce((acc, curr) => {
|
|
|
// if(item == '3') {
|
|
// if(item == '3') {
|
|
|
const rooms = curr.rooms.filter(room => {
|
|
const rooms = curr.rooms.filter(room => {
|
|
@@ -2029,18 +2020,18 @@ export default {
|
|
|
},
|
|
},
|
|
|
roomStatusChange(e) {
|
|
roomStatusChange(e) {
|
|
|
// console.log("e", e);
|
|
// console.log("e", e);
|
|
|
- var list = this.oldRoomList;
|
|
|
|
|
|
|
+ var list = this.oldRoomList
|
|
|
if (this.checkedRoomStatusList.length > 0) {
|
|
if (this.checkedRoomStatusList.length > 0) {
|
|
|
list = this.oldRoomList.reduce((acc, curr) => {
|
|
list = this.oldRoomList.reduce((acc, curr) => {
|
|
|
const rooms = curr.rooms.filter((room) =>
|
|
const rooms = curr.rooms.filter((room) =>
|
|
|
this.checkedRoomStatusList.includes(room.roomInfo.roomStatus.toString())
|
|
this.checkedRoomStatusList.includes(room.roomInfo.roomStatus.toString())
|
|
|
- );
|
|
|
|
|
- acc.push({ ...curr, rooms });
|
|
|
|
|
- return acc;
|
|
|
|
|
- }, []);
|
|
|
|
|
|
|
+ )
|
|
|
|
|
+ acc.push({ ...curr, rooms })
|
|
|
|
|
+ return acc
|
|
|
|
|
+ }, [])
|
|
|
}
|
|
}
|
|
|
// console.log("list2", list);
|
|
// console.log("list2", list);
|
|
|
- this.roomList = list;
|
|
|
|
|
|
|
+ this.roomList = list
|
|
|
},
|
|
},
|
|
|
collapseClick(row, value) {
|
|
collapseClick(row, value) {
|
|
|
this.$set(row, 'collapse', value)
|
|
this.$set(row, 'collapse', value)
|
|
@@ -2197,7 +2188,9 @@ export default {
|
|
|
if (row.bookingData && row.bookingData.bookingOrder) {
|
|
if (row.bookingData && row.bookingData.bookingOrder) {
|
|
|
this.$confirm({
|
|
this.$confirm({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
|
- content: '此房间已被:' + row.bookingData.bookingCustomer.name + ',电话:' + row.bookingData.bookingCustomer.phone + ' 预定,是否预定转入住?',
|
|
|
|
|
|
|
+ okText: '预定单入住',
|
|
|
|
|
+ cancelText: '非预订单入住',
|
|
|
|
|
+ content: '房间已被:' + row.bookingData.bookingCustomer.name + ',电话:' + row.bookingData.bookingCustomer.phone + ' 预定,是否预定转入住?',
|
|
|
onOk: function () {
|
|
onOk: function () {
|
|
|
that.$router.push({
|
|
that.$router.push({
|
|
|
name: 'room-scheduledetail',
|
|
name: 'room-scheduledetail',
|
|
@@ -2447,8 +2440,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
} else if (e.key == 97) {
|
|
} else if (e.key == 97) {
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
that.$message.success('设置成功')
|
|
that.$message.success('设置成功')
|
|
|
} else if (e.key == 96) {
|
|
} else if (e.key == 96) {
|
|
|
let obj = {
|
|
let obj = {
|
|
@@ -2530,25 +2521,25 @@ export default {
|
|
|
})
|
|
})
|
|
|
let templist = this.roomStatusList.map(item => {
|
|
let templist = this.roomStatusList.map(item => {
|
|
|
if (item.value == '1') {
|
|
if (item.value == '1') {
|
|
|
- return {label:item.label + tempGreen,value: item.value}
|
|
|
|
|
|
|
+ return { label: item.label + tempGreen, value: item.value }
|
|
|
}
|
|
}
|
|
|
if (item.value == '2') {
|
|
if (item.value == '2') {
|
|
|
- return {label:item.label + tempBlack,value: item.value}
|
|
|
|
|
|
|
+ return { label: item.label + tempBlack, value: item.value }
|
|
|
}
|
|
}
|
|
|
if (item.value == '3') {
|
|
if (item.value == '3') {
|
|
|
- return {label:item.label + tempRed,value: item.value}
|
|
|
|
|
|
|
+ return { label: item.label + tempRed, value: item.value }
|
|
|
}
|
|
}
|
|
|
if (item.value == '4') {
|
|
if (item.value == '4') {
|
|
|
- return {label:item.label + temppurple,value: item.value}
|
|
|
|
|
|
|
+ return { label: item.label + temppurple, value: item.value }
|
|
|
}
|
|
}
|
|
|
if (item.value == '5') {
|
|
if (item.value == '5') {
|
|
|
- return {label:item.label + tempDarkGreeb,value: item.value}
|
|
|
|
|
|
|
+ return { label: item.label + tempDarkGreeb, value: item.value }
|
|
|
}
|
|
}
|
|
|
if (item.value == '6') {
|
|
if (item.value == '6') {
|
|
|
- return {label:item.label + tempGray,value: item.value}
|
|
|
|
|
|
|
+ return { label: item.label + tempGray, value: item.value }
|
|
|
}
|
|
}
|
|
|
if (item.value == '7') {
|
|
if (item.value == '7') {
|
|
|
- return {label:item.label + tempYellow,value: item.value}
|
|
|
|
|
|
|
+ return { label: item.label + tempYellow, value: item.value }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
this.roomStatusList = templist
|
|
this.roomStatusList = templist
|
|
@@ -2565,17 +2556,17 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
- console.log(this.customerSourceList);
|
|
|
|
|
|
|
+ console.log(this.customerSourceList)
|
|
|
this.customerSourceList.forEach(item => {
|
|
this.customerSourceList.forEach(item => {
|
|
|
// if(this.isNumber) {
|
|
// if(this.isNumber) {
|
|
|
// return
|
|
// return
|
|
|
// }
|
|
// }
|
|
|
if ('figure' in item) {
|
|
if ('figure' in item) {
|
|
|
let tempindex = this.customerSourceList.findIndex(index => index == item)
|
|
let tempindex = this.customerSourceList.findIndex(index => index == item)
|
|
|
- this.customerSourceList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|
|
|
|
|
|
|
+ this.customerSourceList.splice(tempindex, 1, { label: item.label + item.figure, value: item.value })
|
|
|
} else {
|
|
} else {
|
|
|
let tempindex = this.customerSourceList.findIndex(index => index == item)
|
|
let tempindex = this.customerSourceList.findIndex(index => index == item)
|
|
|
- this.customerSourceList.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
|
|
|
|
|
+ this.customerSourceList.splice(tempindex, 1, { label: item.label + 0, value: item.value })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -2633,7 +2624,7 @@ export default {
|
|
|
this.checkInBtnDis = false
|
|
this.checkInBtnDis = false
|
|
|
this.scheduleBtnDis = false
|
|
this.scheduleBtnDis = false
|
|
|
await getAction('/rooms/cesRooms/realtime-rooms', {}).then((res) => {
|
|
await getAction('/rooms/cesRooms/realtime-rooms', {}).then((res) => {
|
|
|
- console.log(res);
|
|
|
|
|
|
|
+ console.log(res)
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
res.result.forEach((row) => {
|
|
res.result.forEach((row) => {
|
|
|
this.$set(row, 'collapse', 1)
|
|
this.$set(row, 'collapse', 1)
|
|
@@ -2643,36 +2634,34 @@ export default {
|
|
|
// 处理房态
|
|
// 处理房态
|
|
|
this.houseStateNumbers()
|
|
this.houseStateNumbers()
|
|
|
// 处理来源
|
|
// 处理来源
|
|
|
- this.customerSourceList = Object.assign([], this.oldCustomerSourceList);
|
|
|
|
|
|
|
+ this.customerSourceList = Object.assign([], this.oldCustomerSourceList)
|
|
|
this.handleSourceFigure()
|
|
this.handleSourceFigure()
|
|
|
// 处理房型
|
|
// 处理房型
|
|
|
- this.cesRoomLayoutList = Object.assign([], this.oldCesRoomLayoutList);
|
|
|
|
|
|
|
+ this.cesRoomLayoutList = Object.assign([], this.oldCesRoomLayoutList)
|
|
|
this.treatmentRoomType()
|
|
this.treatmentRoomType()
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- await getAction("/fw/fwLivingJx/getJxRooms", {}).then((res) => {
|
|
|
|
|
- console.log(res);
|
|
|
|
|
|
|
+ await getAction('/fw/fwLivingJx/getJxRooms', {}).then((res) => {
|
|
|
|
|
+ console.log(res)
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
- this.rouseRoomList = res.result;
|
|
|
|
|
|
|
+ this.rouseRoomList = res.result
|
|
|
}
|
|
}
|
|
|
var temproomlist = this.oldRoomList
|
|
var temproomlist = this.oldRoomList
|
|
|
- this.customerServiceScreening = Object.assign([], this.oldCustomerServiceScreening);
|
|
|
|
|
|
|
+ this.customerServiceScreening = Object.assign([], this.oldCustomerServiceScreening)
|
|
|
// 这里处理对客服务中的叫醒数据
|
|
// 这里处理对客服务中的叫醒数据
|
|
|
this.rouseRoomList.forEach(item => {
|
|
this.rouseRoomList.forEach(item => {
|
|
|
- temproomlist.forEach((cust,custindex) => {
|
|
|
|
|
|
|
+ temproomlist.forEach((cust, custindex) => {
|
|
|
cust.rooms.forEach(index => {
|
|
cust.rooms.forEach(index => {
|
|
|
if (index.roomInfo.id == item.id) {
|
|
if (index.roomInfo.id == item.id) {
|
|
|
let tempindex = cust.rooms.findIndex(room => room == index)
|
|
let tempindex = cust.rooms.findIndex(room => room == index)
|
|
|
let temproom = true
|
|
let temproom = true
|
|
|
- cust.rooms.splice(tempindex,1,{...index,temproom:temproom})
|
|
|
|
|
|
|
+ cust.rooms.splice(tempindex, 1, { ...index, temproom: temproom })
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
this.roomList = temproomlist
|
|
this.roomList = temproomlist
|
|
|
- console.log(this.roomList);
|
|
|
|
|
|
|
+ console.log(this.roomList)
|
|
|
// 处理对客服务数字
|
|
// 处理对客服务数字
|
|
|
this.roomList.forEach(item => {
|
|
this.roomList.forEach(item => {
|
|
|
item.rooms.forEach(cust => {
|
|
item.rooms.forEach(cust => {
|
|
@@ -2685,43 +2674,43 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
- console.log(111);
|
|
|
|
|
|
|
+ console.log(111)
|
|
|
this.customerServiceScreening.forEach(item => {
|
|
this.customerServiceScreening.forEach(item => {
|
|
|
// if(this.isNumber) {
|
|
// if(this.isNumber) {
|
|
|
// return
|
|
// return
|
|
|
// }
|
|
// }
|
|
|
if ('figure' in item) {
|
|
if ('figure' in item) {
|
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == item)
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == item)
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: item.label + item.figure, value: item.value })
|
|
|
} else {
|
|
} else {
|
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == item)
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == item)
|
|
|
- this.customerServiceScreening.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
|
|
|
|
|
+ this.customerServiceScreening.splice(tempindex, 1, { label: item.label + 0, value: item.value })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- console.log(this.customerServiceScreening);
|
|
|
|
|
- });
|
|
|
|
|
- await getAction("/order/cesOrderLeaseGoods/getLeaseRoom", {}).then((res) => {
|
|
|
|
|
- console.log(res);
|
|
|
|
|
|
|
+ console.log(this.customerServiceScreening)
|
|
|
|
|
+ })
|
|
|
|
|
+ await getAction('/order/cesOrderLeaseGoods/getLeaseRoom', {}).then((res) => {
|
|
|
|
|
+ console.log(res)
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
res.result.forEach((row) => {
|
|
res.result.forEach((row) => {
|
|
|
- this.$set(row, "collapse", 1);
|
|
|
|
|
- });
|
|
|
|
|
- this.rouseinfoRoomList = res.result;
|
|
|
|
|
|
|
+ this.$set(row, 'collapse', 1)
|
|
|
|
|
+ })
|
|
|
|
|
+ this.rouseinfoRoomList = res.result
|
|
|
}
|
|
}
|
|
|
let templeaseroomlist = this.oldRoomList
|
|
let templeaseroomlist = this.oldRoomList
|
|
|
- this.roomInformationScreening = Object.assign([], this.oldRoomInformationScreening);
|
|
|
|
|
|
|
+ this.roomInformationScreening = Object.assign([], this.oldRoomInformationScreening)
|
|
|
// 这里处理对房间信息中的租借
|
|
// 这里处理对房间信息中的租借
|
|
|
this.rouseinfoRoomList.forEach(item => {
|
|
this.rouseinfoRoomList.forEach(item => {
|
|
|
- templeaseroomlist.forEach((cust,custindex) => {
|
|
|
|
|
|
|
+ templeaseroomlist.forEach((cust, custindex) => {
|
|
|
let find = cust.rooms.find(room => room.roomInfo.id === item.id)
|
|
let find = cust.rooms.find(room => room.roomInfo.id === item.id)
|
|
|
- if (find != null){
|
|
|
|
|
|
|
+ if (find != null) {
|
|
|
this.$set(find, 'tempinfo', true)
|
|
this.$set(find, 'tempinfo', true)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
// 可能有问题
|
|
// 可能有问题
|
|
|
this.roomList = templeaseroomlist
|
|
this.roomList = templeaseroomlist
|
|
|
- console.log(this.roomList);
|
|
|
|
|
|
|
+ console.log(this.roomList)
|
|
|
// 处理房间信息数字
|
|
// 处理房间信息数字
|
|
|
this.roomList.forEach(item => {
|
|
this.roomList.forEach(item => {
|
|
|
item.rooms.forEach(cust => {
|
|
item.rooms.forEach(cust => {
|
|
@@ -2740,25 +2729,25 @@ export default {
|
|
|
// }
|
|
// }
|
|
|
if ('figure' in item) {
|
|
if ('figure' in item) {
|
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == item)
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == item)
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: item.label + item.figure, value: item.value })
|
|
|
} else {
|
|
} else {
|
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == item)
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == item)
|
|
|
- this.roomInformationScreening.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
|
|
|
|
|
+ this.roomInformationScreening.splice(tempindex, 1, { label: item.label + 0, value: item.value })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
await getAction('/fw/fwRoomExamine/getExamineRoom', {}).then((res) => {
|
|
await getAction('/fw/fwRoomExamine/getExamineRoom', {}).then((res) => {
|
|
|
- console.log(res);
|
|
|
|
|
|
|
+ console.log(res)
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
- this.needExamineRoomIds = res.result;
|
|
|
|
|
|
|
+ this.needExamineRoomIds = res.result
|
|
|
}
|
|
}
|
|
|
let templeaseroomlist = this.oldRoomList
|
|
let templeaseroomlist = this.oldRoomList
|
|
|
// this.roomInformationScreening = Object.assign([], this.oldRoomInformationScreening);
|
|
// this.roomInformationScreening = Object.assign([], this.oldRoomInformationScreening);
|
|
|
// 这里处理对房间信息中的租借
|
|
// 这里处理对房间信息中的租借
|
|
|
this.needExamineRoomIds.forEach(item => {
|
|
this.needExamineRoomIds.forEach(item => {
|
|
|
- templeaseroomlist.forEach((cust,custindex) => {
|
|
|
|
|
|
|
+ templeaseroomlist.forEach((cust, custindex) => {
|
|
|
let find = cust.rooms.find(room => room.roomInfo.id === item)
|
|
let find = cust.rooms.find(room => room.roomInfo.id === item)
|
|
|
- if (find != null){
|
|
|
|
|
|
|
+ if (find != null) {
|
|
|
this.$set(find, 'isExamine', true)
|
|
this.$set(find, 'isExamine', true)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -2790,7 +2779,7 @@ export default {
|
|
|
// this.roomInformationScreening.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
// this.roomInformationScreening.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
|
// }
|
|
// }
|
|
|
// })
|
|
// })
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
getAction('/business/busOtherEmptyDirtyRoom/queryByHotelId', {}).then(
|
|
getAction('/business/busOtherEmptyDirtyRoom/queryByHotelId', {}).then(
|
|
|
(res) => {
|
|
(res) => {
|