|
@@ -226,7 +226,6 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
- // console.log(this.homestayId)
|
|
|
|
this.getHomestayId()
|
|
this.getHomestayId()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -244,7 +243,6 @@
|
|
addTime() {
|
|
addTime() {
|
|
this.fromData.homestayId = uni.getStorageSync('homestayId')
|
|
this.fromData.homestayId = uni.getStorageSync('homestayId')
|
|
this.$api.post('/merchant/hotel/room/state/batchDefineRoomPrice', this.fromData).then(res => {
|
|
this.$api.post('/merchant/hotel/room/state/batchDefineRoomPrice', this.fromData).then(res => {
|
|
- console.log(res.data);
|
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
this.$showToast('定价成功')
|
|
this.$showToast('定价成功')
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -262,26 +260,20 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
confirmOne(e) {
|
|
confirmOne(e) {
|
|
- console.log('1111', e);
|
|
|
|
this.showOne = false
|
|
this.showOne = false
|
|
if (this.typeIndex == 1) {
|
|
if (this.typeIndex == 1) {
|
|
this.valueTimeOne = e[0]
|
|
this.valueTimeOne = e[0]
|
|
- console.log(this.valueTimeOne);
|
|
|
|
} else if (this.typeIndex == 2) {
|
|
} else if (this.typeIndex == 2) {
|
|
this.valueTimeOne = e[0]
|
|
this.valueTimeOne = e[0]
|
|
- console.log(this.valueTimeOne);
|
|
|
|
}
|
|
}
|
|
this.fromData.rentDateStart = e[0]
|
|
this.fromData.rentDateStart = e[0]
|
|
},
|
|
},
|
|
confirmTwo(e) {
|
|
confirmTwo(e) {
|
|
- console.log('22222', e);
|
|
|
|
this.showTwo = false
|
|
this.showTwo = false
|
|
if (this.typeIndex == 1) {
|
|
if (this.typeIndex == 1) {
|
|
this.valueTimeTwo = e[0]
|
|
this.valueTimeTwo = e[0]
|
|
- console.log(this.valueTimeTwo);
|
|
|
|
} else if (this.typeIndex == 2) {
|
|
} else if (this.typeIndex == 2) {
|
|
this.valueTimeTwo = e[0]
|
|
this.valueTimeTwo = e[0]
|
|
- console.log(this.valueTimeTwo);
|
|
|
|
}
|
|
}
|
|
this.fromData.rentDateEnd = e[0]
|
|
this.fromData.rentDateEnd = e[0]
|
|
},
|
|
},
|
|
@@ -291,7 +283,6 @@
|
|
|
|
|
|
},
|
|
},
|
|
selectType(type) {
|
|
selectType(type) {
|
|
- console.log(type);
|
|
|
|
this.typeIndex = type;
|
|
this.typeIndex = type;
|
|
},
|
|
},
|
|
|
|
|
|
@@ -302,7 +293,6 @@
|
|
isPutaway: 0,
|
|
isPutaway: 0,
|
|
idList: this.fromData.houseBaseIdList
|
|
idList: this.fromData.houseBaseIdList
|
|
}
|
|
}
|
|
- console.log(this.selectedTags);
|
|
|
|
this.$api.post('/merchant/hotel/room/state/updPutawayState', obj).then(res => {
|
|
this.$api.post('/merchant/hotel/room/state/updPutawayState', obj).then(res => {
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
this.$showToast('下架成功')
|
|
this.$showToast('下架成功')
|
|
@@ -327,7 +317,6 @@
|
|
idList: this.fromData.houseBaseIdList
|
|
idList: this.fromData.houseBaseIdList
|
|
}
|
|
}
|
|
this.$api.post('/merchant/hotel/room/state/updPutawayState', obj).then(res => {
|
|
this.$api.post('/merchant/hotel/room/state/updPutawayState', obj).then(res => {
|
|
- console.log(res);
|
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
this.$showToast('上架成功')
|
|
this.$showToast('上架成功')
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -340,24 +329,13 @@
|
|
} else this.$showToast(res.data.msg)
|
|
} else this.$showToast(res.data.msg)
|
|
})
|
|
})
|
|
} else this.$showToast('请选择房型')
|
|
} else this.$showToast('请选择房型')
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
selectPerson(e, i) {
|
|
selectPerson(e, i) {
|
|
- console.log(e, i);
|
|
|
|
if (this.selectedTags.includes(e)) {
|
|
if (this.selectedTags.includes(e)) {
|
|
this.selectedTags = this.selectedTags.filter(t => t !== e);
|
|
this.selectedTags = this.selectedTags.filter(t => t !== e);
|
|
this.ids.splice(i, 1)
|
|
this.ids.splice(i, 1)
|
|
- console.log('1111');
|
|
|
|
} else {
|
|
} else {
|
|
- console.log('2222');
|
|
|
|
this.selectedTags.push(e);
|
|
this.selectedTags.push(e);
|
|
this.fromData.houseBaseIdList.push(e.houseBaseId)
|
|
this.fromData.houseBaseIdList.push(e.houseBaseId)
|
|
// this.from = {
|
|
// this.from = {
|
|
@@ -372,7 +350,6 @@
|
|
},
|
|
},
|
|
open() {},
|
|
open() {},
|
|
Pricing() {
|
|
Pricing() {
|
|
- console.log('11111111');
|
|
|
|
if (this.fromData.houseBaseIdList.length != 0) {
|
|
if (this.fromData.houseBaseIdList.length != 0) {
|
|
this.showPricing = true
|
|
this.showPricing = true
|
|
} else this.$showToast('请选择房型')
|
|
} else this.$showToast('请选择房型')
|
|
@@ -387,12 +364,9 @@
|
|
this.$api.get(`/merchant/hotel/mine/getHouseBaseList/${this.homestayId}`, {
|
|
this.$api.get(`/merchant/hotel/mine/getHouseBaseList/${this.homestayId}`, {
|
|
homestayId: this.homestayId
|
|
homestayId: this.homestayId
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- // console.log(res)
|
|
|
|
this.roomType = res.data.data
|
|
this.roomType = res.data.data
|
|
|
|
|
|
// let roomSymbleName=this.roomType.name
|
|
// let roomSymbleName=this.roomType.name
|
|
- // console.log(roomSymbleName)
|
|
|
|
- // console.log(this.roomType)
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 新增房型
|
|
// 新增房型
|
|
@@ -406,7 +380,6 @@
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: `/pages/my/houseList?houseBaseId=${houseBaseId}`
|
|
url: `/pages/my/houseList?houseBaseId=${houseBaseId}`
|
|
})
|
|
})
|
|
- console.log(houseBaseId)
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|