|
|
@@ -1105,6 +1105,33 @@ export default {
|
|
|
value: '6'
|
|
|
},
|
|
|
],
|
|
|
+ // 老房间信息筛选暂时
|
|
|
+ oldRoomInformationScreening:[
|
|
|
+ {
|
|
|
+ label: '欠费',
|
|
|
+ value: '1'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '无押金',
|
|
|
+ value: '2'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '续住',
|
|
|
+ value: '3'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '换房',
|
|
|
+ value: '4'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '租借',
|
|
|
+ value: '5'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '不足',
|
|
|
+ value: '6'
|
|
|
+ },
|
|
|
+ ],
|
|
|
// 对客服务筛选
|
|
|
customerServiceScreening:[
|
|
|
{
|
|
|
@@ -1128,6 +1155,29 @@ export default {
|
|
|
value: '5'
|
|
|
},
|
|
|
],
|
|
|
+ // 老对客服务筛选
|
|
|
+ oldCustomerServiceScreening:[
|
|
|
+ {
|
|
|
+ label: '生日',
|
|
|
+ value: '1'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '叫醒',
|
|
|
+ value: '2'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '免打扰',
|
|
|
+ value: '3'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '免查询',
|
|
|
+ value: '4'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '保密房',
|
|
|
+ value: '5'
|
|
|
+ },
|
|
|
+ ],
|
|
|
startDate: '',
|
|
|
endDate: '',
|
|
|
customerSourceList: [],
|
|
|
@@ -1154,7 +1204,9 @@ export default {
|
|
|
// 老房态数据
|
|
|
oldRoomStatusList: [],
|
|
|
// 老来源数据
|
|
|
- oldCustomerSourceList: []
|
|
|
+ oldCustomerSourceList: [],
|
|
|
+ // 老房型
|
|
|
+ oldCesRoomLayoutList: []
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -1236,25 +1288,28 @@ export default {
|
|
|
)
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
// 禁用右键
|
|
|
// document.oncontextmenu = new Function("event.returnValue=false");
|
|
|
var _info = JSON.parse(localStorage.getItem('storeInfo'))
|
|
|
// if (_info) {
|
|
|
// this.model.hotelId = _info.id;
|
|
|
// }
|
|
|
- getAction('/business/busDictItem/list', {
|
|
|
+ await getAction('/business/busDictItem/list', {
|
|
|
hotelId: _info.id,
|
|
|
dictId: '1639538915239743490'
|
|
|
}).then((res) => {
|
|
|
- // console.log(res);
|
|
|
+ console.log(res);
|
|
|
if (res.success) {
|
|
|
- var list = []
|
|
|
+ let list = []
|
|
|
res.result.records.forEach((item) => {
|
|
|
list.push({ label: item.itemText, value: item.id })
|
|
|
})
|
|
|
- this.customerSourceList = list
|
|
|
- this.oldCustomerSourceList = list
|
|
|
+ console.log(list);
|
|
|
+ this.customerSourceList = this.customerSourceList.concat(list)
|
|
|
+ this.oldCustomerSourceList = this.oldCustomerSourceList.concat(list)
|
|
|
+ // this.customerSourceList = list
|
|
|
+ // this.oldCustomerSourceList = list
|
|
|
console.log(this.customerSourceList);
|
|
|
console.log(this.oldCustomerSourceList);
|
|
|
}
|
|
|
@@ -1269,7 +1324,8 @@ export default {
|
|
|
res.result.records.forEach((item) => {
|
|
|
list.push({ label: item.name, value: item.id })
|
|
|
})
|
|
|
- this.cesRoomLayoutList = list
|
|
|
+ this.cesRoomLayoutList = this.cesRoomLayoutList.concat(list)
|
|
|
+ this.oldCesRoomLayoutList = this.oldCesRoomLayoutList.concat(list)
|
|
|
}
|
|
|
})
|
|
|
getAction('/rooms/cesRoomBuildingFloor/tree', {}).then((res) => {
|
|
|
@@ -1308,6 +1364,27 @@ export default {
|
|
|
// this.$refs.ModalEditScheduleRoom.disableSubmit = false;
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 处理房型数字
|
|
|
+ treatmentRoomType() {
|
|
|
+ // 处理房型
|
|
|
+ this.roomList.forEach(item => {
|
|
|
+ item.rooms.forEach(cust => {
|
|
|
+ this.roomTypeData(cust.layout.id)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.cesRoomLayoutList.forEach(item => {
|
|
|
+ // if(this.isNumber) {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ if ('figure' in item) {
|
|
|
+ let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
|
+ this.cesRoomLayoutList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|
|
|
+ } else {
|
|
|
+ let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
|
+ this.cesRoomLayoutList.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 处理筛选条件数据-房型
|
|
|
roomTypeData(val) {
|
|
|
this.cesRoomLayoutList.forEach(item => {
|
|
|
@@ -2347,6 +2424,7 @@ export default {
|
|
|
this.$refs.batchCardModalCopy.edit([obj])
|
|
|
}
|
|
|
},
|
|
|
+ // 修改房态
|
|
|
changeState(livingOrder, state) {
|
|
|
console.log(livingOrder)
|
|
|
let secrecy = (state === 1 ? !livingOrder.secrecy : livingOrder.secrecy)
|
|
|
@@ -2370,6 +2448,7 @@ export default {
|
|
|
this.$message.error(resp.message)
|
|
|
}
|
|
|
})
|
|
|
+ this.loadData()
|
|
|
},
|
|
|
// 处理房态数字
|
|
|
houseStateNumbers() {
|
|
|
@@ -2527,30 +2606,12 @@ export default {
|
|
|
// 处理房态
|
|
|
this.houseStateNumbers()
|
|
|
// 处理来源
|
|
|
- console.log(this.customerSourceList);
|
|
|
- console.log(this.oldCustomerSourceList);
|
|
|
- this.customerSourceList = this.oldCustomerSourceList
|
|
|
-
|
|
|
+ this.customerSourceList = Object.assign([], this.oldCustomerSourceList);
|
|
|
this.handleSourceFigure()
|
|
|
-
|
|
|
// 处理房型
|
|
|
- this.roomList.forEach(item => {
|
|
|
- item.rooms.forEach(cust => {
|
|
|
- this.roomTypeData(cust.layout.id)
|
|
|
- })
|
|
|
- })
|
|
|
- this.cesRoomLayoutList.forEach(item => {
|
|
|
- if(this.isNumber) {
|
|
|
- return
|
|
|
- }
|
|
|
- if ('figure' in item) {
|
|
|
- let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
|
- this.cesRoomLayoutList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|
|
|
- } else {
|
|
|
- let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
|
|
|
- this.cesRoomLayoutList.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
|
- }
|
|
|
- })
|
|
|
+ this.cesRoomLayoutList = Object.assign([], this.oldCesRoomLayoutList);
|
|
|
+ this.treatmentRoomType()
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
await getAction("/fw/fwLivingJx/getJxRooms", {}).then((res) => {
|
|
|
@@ -2562,6 +2623,7 @@ export default {
|
|
|
this.rouseRoomList = res.result;
|
|
|
}
|
|
|
var temproomlist = this.oldRoomList
|
|
|
+ this.customerServiceScreening = Object.assign([], this.oldCustomerServiceScreening);
|
|
|
// 这里处理对客服务中的叫醒数据
|
|
|
this.rouseRoomList.forEach(item => {
|
|
|
temproomlist.forEach((cust,custindex) => {
|
|
|
@@ -2589,10 +2651,11 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ console.log(111);
|
|
|
this.customerServiceScreening.forEach(item => {
|
|
|
- if(this.isNumber) {
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(this.isNumber) {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if ('figure' in item) {
|
|
|
let tempindex = this.customerServiceScreening.findIndex(index => index == item)
|
|
|
this.customerServiceScreening.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|
|
|
@@ -2601,6 +2664,7 @@ export default {
|
|
|
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);
|
|
|
@@ -2611,6 +2675,7 @@ export default {
|
|
|
this.rouseinfoRoomList = res.result;
|
|
|
}
|
|
|
let templeaseroomlist = this.oldRoomList
|
|
|
+ this.roomInformationScreening = Object.assign([], this.oldRoomInformationScreening);
|
|
|
// 这里处理对房间信息中的租借
|
|
|
this.rouseinfoRoomList.forEach(item => {
|
|
|
templeaseroomlist.forEach((cust,custindex) => {
|
|
|
@@ -2640,9 +2705,9 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
this.roomInformationScreening.forEach(item => {
|
|
|
- if(this.isNumber) {
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(this.isNumber) {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if ('figure' in item) {
|
|
|
let tempindex = this.roomInformationScreening.findIndex(index => index == item)
|
|
|
this.roomInformationScreening.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|