Commit 4684967b authored by 黄奎's avatar 黄奎

11

parent af4ec97b
...@@ -1295,7 +1295,6 @@ ...@@ -1295,7 +1295,6 @@
this.apipost('dmc_post_GetDidaHotelDetails', this.hotelMsg, res => { this.apipost('dmc_post_GetDidaHotelDetails', this.hotelMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempObj = res.data.data; var tempObj = res.data.data;
console.log("tempObj", tempObj);
this.DidaHotelDetails = tempObj; this.DidaHotelDetails = tempObj;
this.hotelMapUrl = `http://api.weboss.hk/baidu_map/api.php?prop1=` + this.DidaHotelDetails this.hotelMapUrl = `http://api.weboss.hk/baidu_map/api.php?prop1=` + this.DidaHotelDetails
.Name_CN + `&prop2=` + this.DidaHotelDetails.Address_CN + `&prop3=` + this.DidaHotelDetails .Name_CN + `&prop2=` + this.DidaHotelDetails.Address_CN + `&prop3=` + this.DidaHotelDetails
...@@ -1337,17 +1336,7 @@ ...@@ -1337,17 +1336,7 @@
var tempData = res.data.data; var tempData = res.data.data;
this.DidaHotelRoomDetails = tempData; this.DidaHotelRoomDetails = tempData;
this.qRoomTypeList = tempData.qRoomTypeList; this.qRoomTypeList = tempData.qRoomTypeList;
var tempMealArray = tempData.qMealTypeList; this.qMealTypeList = tempData.qMealTypeList;
if (tempMealArray && tempMealArray.length > 0) {
tempMealArray.forEach(qitem => {
var MTypeName = that.getMealtype(qitem.MealType);
if (qitem.MealAmount > 0) {
MTypeName += qitem.MealAmount + "份";
}
qitem.MTypeName = MTypeName
});
}
this.qMealTypeList = tempMealArray;
} }
}, null) }, null)
}, },
......
...@@ -525,7 +525,8 @@ ...@@ -525,7 +525,8 @@
<span class="text-grey-6 q-pr-lg">{{$t('objFill.ruzhurenshu')}}</span> <span class="text-grey-6 q-pr-lg">{{$t('objFill.ruzhurenshu')}}</span>
<span class="text-grey-9"> <span class="text-grey-9">
<span>{{$t('salesModule.Adult')}} {{ auditNum }} {{$t('hotel.hotel_people')}} </span> <span>{{$t('salesModule.Adult')}} {{ auditNum }} {{$t('hotel.hotel_people')}} </span>
<span class="q-pl-lg" v-if="childNum > 0"> {{$t('sm.ertong')}}{{ childNum }} {{$t('hotel.hotel_people')}} </span> <span class="q-pl-lg" v-if="childNum > 0"> {{$t('sm.ertong')}}{{ childNum }}
{{$t('hotel.hotel_people')}} </span>
<span class="q-pl-lg" v-if="isBaoChild"> {{$t('objFill.v101.hote.bunengbet')}}</span> <span class="q-pl-lg" v-if="isBaoChild"> {{$t('objFill.v101.hote.bunengbet')}}</span>
</span> </span>
</div> </div>
...@@ -534,21 +535,20 @@ ...@@ -534,21 +535,20 @@
<div style="padding-bottom: 8px;"> <div style="padding-bottom: 8px;">
<div style=" display: flex;"> <div style=" display: flex;">
<template v-if="roomRateDetails.RatePlanList && roomRateDetails.RatePlanList.length > 0"> <template v-if="roomRateDetails.RatePlanList && roomRateDetails.RatePlanList.length > 0">
<div style="width:50%;" <div style="width:50%;" v-for="(item, index) in roomRateDetails.RatePlanList" :key="`rd_rp_`+index">
v-for="(item, index) in roomRateDetails.RatePlanList" :key="`rd_rp_`+index"> <div class="q-pt-xs col q-px-lg q-mb-md8">
<div class="q-pt-xs col q-px-lg q-mb-md8"> <span class="text-grey-6 q-pr-lg"> {{$t('objFill.fangjianshul')}}</span>
<span class="text-grey-6 q-pr-lg"> {{$t('objFill.fangjianshul')}}</span> <span class="text-grey-9"> {{ item.RoomOccupancy.RoomNum }} </span>
<span class="text-grey-9"> {{ item.RoomOccupancy.RoomNum }} </span> <span class="text-grey-9"><i class="text-grey-13 q-mr-xs el-icon-warning-outline text-orange-6"
<span class="text-grey-9"><i class="text-grey-13 q-mr-xs el-icon-warning-outline text-orange-6" name="place" size="xs"></i>
name="place" size="xs"></i> {{$t('objFill.jinsheng')}}
{{$t('objFill.jinsheng')}} <span class="text-orange text-orange-6">{{
<span class="text-orange text-orange-6">{{
item.InventoryCount item.InventoryCount
}}</span> }}</span>
{{$t('hotel.hotel_room')}} {{$t('hotel.hotel_room')}}
</span> </span>
</div>
</div> </div>
</div>
</template> </template>
<div class="q-pt-xs col q-px-lg q-mb-md8" style="width:50%;"> <div class="q-pt-xs col q-px-lg q-mb-md8" style="width:50%;">
<div> <div>
...@@ -608,7 +608,8 @@ ...@@ -608,7 +608,8 @@
style="width:100%;background:#e1f5fe!important;font-weight:700;border-radius:4px;height:53px;padding-left:10px; align-items: center;"> style="width:100%;background:#e1f5fe!important;font-weight:700;border-radius:4px;height:53px;padding-left:10px; align-items: center;">
<span style="float: left; padding-top: 16px; display: block;">{{$t('objFill.v101.hote.ruzhuxx')}}</span> <span style="float: left; padding-top: 16px; display: block;">{{$t('objFill.v101.hote.ruzhuxx')}}</span>
<span style="float: right; padding-top: 16px; padding-right:16px; display: block;" class="text-orange-6"> <span style="float: right; padding-top: 16px; padding-right:16px; display: block;" class="text-orange-6">
<i class="text-grey-13 q-mr-xs el-icon-warning-outline" name="place" size="xs"></i>{{$t('objFill.v101.hote.suotxmxyzjyz')}}</span> <i class="text-grey-13 q-mr-xs el-icon-warning-outline" name="place"
size="xs"></i>{{$t('objFill.v101.hote.suotxmxyzjyz')}}</span>
</div> </div>
</div> </div>
<div class="row q-px-lg q-py-lg8 row justify-between" style="width: 100%; display: block;"> <div class="row q-px-lg q-py-lg8 row justify-between" style="width: 100%; display: block;">
...@@ -664,7 +665,8 @@ ...@@ -664,7 +665,8 @@
</el-col> </el-col>
<el-col :gutter="35" style="width:30%;"> <el-col :gutter="35" style="width:30%;">
<el-form-item label=""> <el-form-item label="">
<el-input type="number" v-model="itemguest.Age" :min="0" :max="12" :placeholder="$t('objFill.v101.hote.niannetbt')"> <el-input type="number" v-model="itemguest.Age" :min="0" :max="12"
:placeholder="$t('objFill.v101.hote.niannetbt')">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -679,15 +681,17 @@ ...@@ -679,15 +681,17 @@
roomRateDetails.CancellationPolicyList.length > 0 roomRateDetails.CancellationPolicyList.length > 0
"> ">
<div style="width:100%;" v-for="(itemCancella, index1) in roomRateDetails.CancellationPolicyList"> <div style="width:100%;" v-for="(itemCancella, index1) in roomRateDetails.CancellationPolicyList">
<p v-if="index1==0">{{ getformatDateStr(itemCancella.FromDate) }}{{$t('objFill.v101.hote.zhiqmfqx')}}</p> <p v-if="index1==0">{{ getformatDateStr(itemCancella.FromDate) }}{{$t('objFill.v101.hote.zhiqmfqx')}}
</p>
<div v-if="itemCancella.Amount==roomRateDetails.TotalPrice"> <div v-if="itemCancella.Amount==roomRateDetails.TotalPrice">
<p>{{ getformatDateStr(itemCancella.FromDate) }}{{$t('objFill.v101.hote.qibkqxqxsqe')}}</p> <p>{{ getformatDateStr(itemCancella.FromDate) }}{{$t('objFill.v101.hote.qibkqxqxsqe')}}</p>
</div> </div>
<div v-else> <div v-else>
<p>{{ getformatDateStr(itemCancella.FromDate) }} <p>{{ getformatDateStr(itemCancella.FromDate) }}
<span v-if="index1!=(roomRateDetails.CancellationPolicyList.length-1)">- <span v-if="index1!=(roomRateDetails.CancellationPolicyList.length-1)">-
{{ getformatDateStr(roomRateDetails.CancellationPolicyList[index1+1].FromDate) }} {{$t('objFill.v101.hote.zhijian')}}</span> {{ getformatDateStr(roomRateDetails.CancellationPolicyList[index1+1].FromDate) }}
{{$t('objFill.v101.hote.quxiaosf')}}{{DanWei}}{{getPrice(itemCancella.Amount)}};</p> {{$t('objFill.v101.hote.zhijian')}}</span>
{{$t('objFill.v101.hote.quxiaosf')}}{{DanWei}}{{getPrice(itemCancella.Amount)}};</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -846,8 +850,6 @@ ...@@ -846,8 +850,6 @@
trigger: "blur", trigger: "blur",
}], }],
}, },
}; };
}, },
methods: { methods: {
...@@ -902,12 +904,9 @@ ...@@ -902,12 +904,9 @@
}, },
null null
); );
} }
}) })
}, },
//获取道旅餐食类型 //获取道旅餐食类型
getdidaMealType() { getdidaMealType() {
this.apipost('dmc_post_GetDidaMealType', this.hotelMsg, res => { this.apipost('dmc_post_GetDidaMealType', this.hotelMsg, res => {
...@@ -948,7 +947,6 @@ ...@@ -948,7 +947,6 @@
} }
} }
} }
}); });
return IsCancel; return IsCancel;
}, },
...@@ -956,12 +954,9 @@ ...@@ -956,12 +954,9 @@
getWeek() { getWeek() {
let CheckInDate = new Date(this.params.CheckInDate).getDay(); let CheckInDate = new Date(this.params.CheckInDate).getDay();
let CheckOutDate = new Date(this.params.CheckOutDate).getDay(); let CheckOutDate = new Date(this.params.CheckOutDate).getDay();
this.checkInWeek = this.WeekList[CheckInDate]; this.checkInWeek = this.WeekList[CheckInDate];
this.checkOutWeek = this.WeekList[CheckOutDate]; this.checkOutWeek = this.WeekList[CheckOutDate];
}, },
//通过日期得到周几 //通过日期得到周几
getWeekD(dateTime) { getWeekD(dateTime) {
let dt = new Date(dateTime); let dt = new Date(dateTime);
...@@ -970,7 +965,6 @@ ...@@ -970,7 +965,6 @@
let date = (dt.getDate() + 1).toString().padStart(2, "0"); let date = (dt.getDate() + 1).toString().padStart(2, "0");
return month + "-" + date + "(" + this.WeekList[dt.getDay()] + ")"; return month + "-" + date + "(" + this.WeekList[dt.getDay()] + ")";
}, },
//日期格式化 //日期格式化
getformatDateStr(value) { getformatDateStr(value) {
var dt = new Date(value); var dt = new Date(value);
...@@ -1006,7 +1000,6 @@ ...@@ -1006,7 +1000,6 @@
dateRangeHandler3(e) { dateRangeHandler3(e) {
if (qDateProxy3.value) qDateProxy3.value.hide(); if (qDateProxy3.value) qDateProxy3.value.hide();
}, },
initHotel() { initHotel() {
this.getWeek(); this.getWeek();
this.loading = true; this.loading = true;
...@@ -1014,6 +1007,7 @@ ...@@ -1014,6 +1007,7 @@
"dmc_post_GetDiDaPriceConfirm", "dmc_post_GetDiDaPriceConfirm",
this.params, this.params,
res => { res => {
console.log("dmc_post_GetDiDaPriceConfirm",res.data);
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data.PriceDetails; this.dataList = res.data.data.PriceDetails;
...@@ -1096,13 +1090,10 @@ ...@@ -1096,13 +1090,10 @@
created() { created() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
if (this.$route.query.StartDate) { if (this.$route.query.StartDate) {
// this.dateList.push(this.$route.query.StartDate)
this.params.CheckInDate = this.$route.query.StartDate; this.params.CheckInDate = this.$route.query.StartDate;
} }
if (this.$route.query.EndDate) { if (this.$route.query.EndDate) {
// this.dateList.push(this.$route.query.EndDate)
this.params.CheckOutDate = this.$route.query.EndDate; this.params.CheckOutDate = this.$route.query.EndDate;
} }
if (this.$route.query.auditNum) { if (this.$route.query.auditNum) {
...@@ -1113,7 +1104,6 @@ ...@@ -1113,7 +1104,6 @@
this.params.childNum = this.$route.query.childNum; this.params.childNum = this.$route.query.childNum;
} }
if (this.$route.query.searchroomGroup) { if (this.$route.query.searchroomGroup) {
//JSON.parse(JSON.stringify(this.currentEditItemData))
this.params.searchroomGroup = JSON.parse( this.params.searchroomGroup = JSON.parse(
decodeURIComponent(this.$route.query.searchroomGroup) decodeURIComponent(this.$route.query.searchroomGroup)
); );
......
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