Commit 1c1583ad authored by zhengke's avatar zhengke

修改酒店

parent 265e724a
...@@ -1142,6 +1142,14 @@ export default { ...@@ -1142,6 +1142,14 @@ export default {
}, },
//获取符合条件房型 //获取符合条件房型
getSimilar(){ getSimilar(){
if(this.SimilarMsg.arrivalDate==null){
this.Error('请选择入住日期');
return
}
if(this.SimilarMsg.departureDate==null){
this.Error('请选择退房日期');
return
}
this.apipost("dmc_post_Get_GetJAPAN_RoomsList",this.SimilarMsg,res => { this.apipost("dmc_post_Get_GetJAPAN_RoomsList",this.SimilarMsg,res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if(Object.prototype.toString.call(res.data.data.roomRateDetails) == '[object Object]'){ if(Object.prototype.toString.call(res.data.data.roomRateDetails) == '[object Object]'){
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
style="width:290px;" style="width:290px;"
v-model="dateList" v-model="dateList"
type="daterange" type="daterange"
@change="getInOutDate"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="-" range-separator="-"
:picker-options="pickerOptions0" :picker-options="pickerOptions0"
...@@ -342,6 +343,14 @@ export default { ...@@ -342,6 +343,14 @@ export default {
} }
}, },
methods: { methods: {
//结束日期默认加1
getInOutDate(){
if(this.dateList){
if(this.dateList[0]==this.dateList[1]){
this.dateList[1] = moment(this.dateList[0]).add(1,'days').format('YYYY-MM-DD')
}
}
},
//查询 //查询
Search() { Search() {
if(this.dateList){ if(this.dateList){
......
...@@ -425,6 +425,7 @@ ...@@ -425,6 +425,7 @@
<el-date-picker <el-date-picker
v-model="dateList" v-model="dateList"
type="daterange" type="daterange"
@change="getInOutDate"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="-" range-separator="-"
:picker-options="pickerOptions0" :picker-options="pickerOptions0"
...@@ -906,6 +907,14 @@ export default { ...@@ -906,6 +907,14 @@ export default {
HTMap HTMap
}, },
methods: { methods: {
//结束日期默认加1
getInOutDate(){
if(this.dateList){
if(this.dateList[0]==this.dateList[1]){
this.dateList[1] = moment(this.dateList[0]).add(1,'days').format('YYYY-MM-DD')
}
}
},
CurrentChange(val) { CurrentChange(val) {
this.msg.displayFrom = val; this.msg.displayFrom = val;
this.SearchHotel(); this.SearchHotel();
......
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
</el-date-picker> </el-date-picker>
<template v-if="dataList.roomRateDetails"> <template v-if="dataList.roomRateDetails">
{{'周'+checkInWeek}}<span class="HS2_title" style="margin:0 10px;"> {{'周'+checkInWeek}}<span class="HS2_title" style="margin:0 10px;">
{{dataList.roomRateDetails.roomOptions['finalCheck-inTime']}} 之后</span> {{dataList.roomRateDetails.roomOptions['check-inStartTime']}} 之后</span>
</template> </template>
<div class="HS_Line"></div> <div class="HS_Line"></div>
<el-date-picker class="date_input" v-model="msg.departureDate" @change="getDateInfo()" style="width:130px;" prefix-icon="none" clear-icon="" <el-date-picker class="date_input" v-model="msg.departureDate" @change="getDateInfo()" style="width:130px;" prefix-icon="none" clear-icon=""
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
</el-date-picker> </el-date-picker>
<template v-if="dataList.roomRateDetails"> <template v-if="dataList.roomRateDetails">
{{'周'+checkOutWeek}}<span class="HS2_title" style="margin:0 10px;"> {{'周'+checkOutWeek}}<span class="HS2_title" style="margin:0 10px;">
{{dataList.roomRateDetails.roomOptions['finalCheck-outTime']}} 之前</span> {{dataList.roomRateDetails.roomOptions['finalCheck-inTime']}} 之前</span>
</template> </template>
</li> </li>
<!-- <li> <!-- <li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment