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