|
|
@@ -1150,7 +1150,11 @@ export default {
|
|
|
// 房间类型
|
|
|
checkedCestList: [],
|
|
|
// 房间信息暂存数据
|
|
|
- rouseinfoRoomList:[]
|
|
|
+ rouseinfoRoomList:[],
|
|
|
+ // 老房态数据
|
|
|
+ oldRoomStatusList: [],
|
|
|
+ // 老来源数据
|
|
|
+ oldCustomerSourceList: []
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -1250,6 +1254,9 @@ export default {
|
|
|
list.push({ label: item.itemText, value: item.id })
|
|
|
})
|
|
|
this.customerSourceList = list
|
|
|
+ this.oldCustomerSourceList = list
|
|
|
+ console.log(this.customerSourceList);
|
|
|
+ console.log(this.oldCustomerSourceList);
|
|
|
}
|
|
|
})
|
|
|
getAction('/rooms/cesRoomLayout/list', {
|
|
|
@@ -1279,6 +1286,7 @@ export default {
|
|
|
list.push({ label: item.title, value: item.value })
|
|
|
})
|
|
|
this.roomStatusList = list
|
|
|
+ this.oldRoomStatusList = list
|
|
|
}
|
|
|
})
|
|
|
this.loadData()
|
|
|
@@ -1612,7 +1620,7 @@ export default {
|
|
|
this.$message.warning(e.message)
|
|
|
return
|
|
|
}
|
|
|
- // debugger
|
|
|
+ //
|
|
|
this.$refs.ModalBillRoomForm.addList(selectRoom, e.key)
|
|
|
this.$refs.ModalBillRoomForm.title =
|
|
|
e.key == '1' ? '散客入住登记' : '团队入住登记'
|
|
|
@@ -2363,11 +2371,14 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 处理房态数据代码
|
|
|
+ // 处理房态数字
|
|
|
houseStateNumbers() {
|
|
|
- if(this.isNumber) {
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(this.isNumber) {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // console.log(this.roomStatusList);
|
|
|
+ // console.log(this.oldRoomStatusList);
|
|
|
+ this.roomStatusList = this.oldRoomStatusList
|
|
|
// 处理房态数据
|
|
|
var tempGreen = 0
|
|
|
var tempBlack = 0
|
|
|
@@ -2426,6 +2437,32 @@ export default {
|
|
|
})
|
|
|
this.roomStatusList = templist
|
|
|
},
|
|
|
+ // 处理来源数字
|
|
|
+ handleSourceFigure() {
|
|
|
+ this.roomList.forEach(item => {
|
|
|
+ item.rooms.forEach(cust => {
|
|
|
+ if (cust.livingData.livingOrder !== null) {
|
|
|
+ this.screeningQuantity(cust.livingData.livingOrder.customerSource)
|
|
|
+ }
|
|
|
+ if (cust.bookingData.bookingOrder !== null) {
|
|
|
+ this.screeningQuantity(cust.bookingData.bookingOrder.customerSource)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ console.log(this.customerSourceList);
|
|
|
+ this.customerSourceList.forEach(item => {
|
|
|
+ // if(this.isNumber) {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ if ('figure' in item) {
|
|
|
+ let tempindex = this.customerSourceList.findIndex(index => index == item)
|
|
|
+ this.customerSourceList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|
|
|
+ } else {
|
|
|
+ let tempindex = this.customerSourceList.findIndex(index => index == item)
|
|
|
+ this.customerSourceList.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
modalBillRoomFormOk(e) {
|
|
|
this.loadData()
|
|
|
console.log('e', e)
|
|
|
@@ -2490,29 +2527,11 @@ export default {
|
|
|
// 处理房态
|
|
|
this.houseStateNumbers()
|
|
|
// 处理来源
|
|
|
- this.roomList.forEach(item => {
|
|
|
- item.rooms.forEach(cust => {
|
|
|
- if (cust.livingData.livingOrder !== null) {
|
|
|
- this.screeningQuantity(cust.livingData.livingOrder.customerSource)
|
|
|
- }
|
|
|
- if (cust.bookingData.bookingOrder !== null) {
|
|
|
- this.screeningQuantity(cust.bookingData.bookingOrder.customerSource)
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- this.customerSourceList.forEach(item => {
|
|
|
- if(this.isNumber) {
|
|
|
- return
|
|
|
- }
|
|
|
- if ('figure' in item) {
|
|
|
- let tempindex = this.customerSourceList.findIndex(index => index == item)
|
|
|
- this.customerSourceList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
|
|
|
- } else {
|
|
|
- let tempindex = this.customerSourceList.findIndex(index => index == item)
|
|
|
- this.customerSourceList.splice(tempindex,1,{label: item.label + 0,value: item.value})
|
|
|
- }
|
|
|
- })
|
|
|
console.log(this.customerSourceList);
|
|
|
+ console.log(this.oldCustomerSourceList);
|
|
|
+ this.customerSourceList = this.oldCustomerSourceList
|
|
|
+
|
|
|
+ this.handleSourceFigure()
|
|
|
|
|
|
// 处理房型
|
|
|
this.roomList.forEach(item => {
|