Commit 4ddcb840 authored by 吴春's avatar 吴春

道旅酒店信息

parent c49493e8
This diff is collapsed.
......@@ -336,9 +336,8 @@
.items-end {
align-items: flex-end;
}
.el-card__body,
.el-main {
padding: 0px !important;
/deep/ .el-card__body, .el-main {
padding: 10px !important;
}
.d-pr8 {
padding-right: 8px;
......@@ -388,6 +387,7 @@
class="bg-white q-py-lg8 column q-mb-md"
style="max-width: 1366px; min-width: 375px; margin: auto;width:1300px"
>
<template v-if="sureMsg&&sureMsg.BookingID&&sureMsg.BookingID.length>0">
<div class="row q-px-lg q-py-lg8 row justify-between">
<div
class="row no-wrap items-center q-mt-xs q-pt-sm text-red text-weight-bold"
......@@ -411,7 +411,7 @@
</div>
</div>
<div style="display: flex;">
<div style="display: flex;" >
<div
v-if="
roomRateDetails.RatePlanList &&
......@@ -448,14 +448,6 @@
</span>
</div>
</div>
<div
v-else
class="col q-pa-lg text-center"
style="width:50%;display: flex;"
>
暂无数据
</div>
<div class="col row items-end q-pl-lg" style="width:50%;display: flex;">
<div class="column">
<div class="text-green-6 fz20 text-weight-bold q-pb-sm q-mb-md">
......@@ -491,6 +483,8 @@
</div>
</div>
</div>
</template>
<template v-else><div style="text-align:center;">暂无数据</div></template>
</div>
<div
......@@ -514,11 +508,9 @@
roomRateDetails.RatePlanList &&
roomRateDetails.RatePlanList.length > 0
"
v-for="(item, index) in roomRateDetails.RatePlanList"
:key="index"
v-loading="loading"
>
{{ getRoomType(item.BedType) }}
{{ getRoomType(roomRateDetails.RatePlanList[0].BedType) }}
</span>
</div>
<div class="q-pt-xs col q-px-lg q-mb-md">
......@@ -630,7 +622,7 @@
<el-card
flatv
:key="sindex"
class="q-px-sm q-pt-sm q-pb-md8 d-pr8"
class=" d-pr8 card__body"
v-for="(subItem, sindex) in item.PriceList"
>
<span class="text-grey-9">
......@@ -677,10 +669,10 @@
<div class="row q-px-lg q-py-lg8 row justify-between" style="width: 100%; display: block;">
<el-form label-position="left" label-width="80px" class="iis_info_box clearfix"
ref="sureMsg" :rules="rules" :model="sureMsg">
ref="sureMsg" :rules="rules" :model="sureMsg" >
<el-row>
<el-col :gutter="35" style="width:26%;">
<el-form-item label="预订人" prop="guestLastName">
<el-form-item label="预订人" prop="guestLastName" >
<el-input v-model="sureMsg.guestLastName" placeholder="姓(英文)"></el-input>
</el-form-item>
......@@ -715,17 +707,22 @@
</el-col>
</el-row>
<template v-if="sureMsg.GuestList && sureMsg.GuestList.length > 0" v-for="(item, subIndex) in sureMsg.GuestList" >
<div v-if="item.GuestInfo && item.GuestInfo.length > 0" v-for="(itemguest, numberOfAdultsIndex) in item.GuestInfo" :key="numberOfAdultsIndex">
<el-row>
<el-col :gutter="35" style="width:26%;">
<el-form-item :label='numberOfAdultsIndex==0?"房间"+(subIndex + 1):"" ' prop="LastName">
<el-form-item label-width="0px" v-if="sureMsg.GuestList && sureMsg.GuestList.length > 0">
<template v-for="(item, subIndex) in sureMsg.GuestList" >
<div v-for="(itemguest, numberOfAdultsIndex) in item.GuestInfo" :key="subIndex">
<el-row style="margin-bottom:22px">
<el-col :gutter="35" style="width:26%;margin-right:24px;">
<el-form-item :label="numberOfAdultsIndex==0?'房间'+(subIndex + 1):''"
:prop="`GuestList[${subIndex}].GuestInfo[${numberOfAdultsIndex}].LastName`"
:rules="rules.LastName" :style="numberOfAdultsIndex>0?'margin-left: 80px;':''">
<el-input v-model="itemguest.LastName" placeholder="姓(英文)"></el-input>
</el-form-item>
</el-col>
<el-col :gutter="35" style="width:25%;margin-right:24px;">
<el-form-item label="" prop="FirstName">
<el-form-item label="" :prop="`GuestList[${subIndex}].GuestInfo[${numberOfAdultsIndex}].FirstName`"
:rules="rules.FirstName" >
<el-input v-model="itemguest.FirstName" placeholder="名(英文)"></el-input>
</el-form-item>
</el-col>
......@@ -738,17 +735,20 @@
</el-row>
</div>
</template>
</el-form-item>
<el-row>
<el-col :gutter="35">
<div class="row col-12 text-red q-mb-md">
<div
v-if="
<div class="row col-12 text-red q-mb-md" v-if="
roomRateDetails.CancellationPolicyList &&
roomRateDetails.CancellationPolicyList.length > 0
"
">
<div
v-for="(item, index) in roomRateDetails.CancellationPolicyList"
:key="index"
>
......@@ -766,7 +766,7 @@
class="col row q-mb-md"
style="max-width: 1366px; min-width: 375px; margin: auto;width:1300px"
>
<el-button type="primary" style="width:100%;" @click="submitForm('sureMsg')">下单</el-button>
<el-button type="primary" :disabled="submDisabled" style="width:100%;" @click="submitForm('sureMsg')" :loading="submLoading">下单</el-button>
</div>
</div>
......@@ -804,6 +804,7 @@ export default {
numberOfAdults: 0,
numberOfChildren: 0,
submLoading: false,
submDisabled:false,
loading: false,
dateRange: "", //当前日期
dateRange2: "", //当前日期
......@@ -811,6 +812,11 @@ export default {
DanWei: "",
HotelRoomTypes: [], //散客房间类型
dataList: {},
GuestInfo:{
LastName: '',
FirstName: '',
Age: '',
},
//确认MSG参数
sureMsg: {
EmployeeIdStr: "",
......@@ -896,17 +902,16 @@ export default {
message: "请输入电话",
trigger: "blur",
}],
// LastName: [{
// required: true,
// message: "请输入姓(英文)",
// trigger: "blur",
// }],
// FirstName: [{
// required: true,
// message: "请输入名(英文)",
// trigger: "blur",
// }],
LastName: [{
required: true,
message: "请输入姓(英文)",
trigger: "blur",
}],
FirstName: [{
required: true,
message: "请输入名(英文)",
trigger: "blur",
}],
},
......@@ -924,8 +929,12 @@ export default {
this.sureMsg.CheckInDate = this.params.CheckInDate;
this.sureMsg.EmployeeIdStr =this.getLocalStorage().EmployeeId+"";
this.sureMsg.totalRoomCount = this.params.searchroomGroup.length;
this.sureMsg.RoomCount = this.params.searchroomGroup.length;
this.sureMsg.CheckOutDate = this.params.CheckOutDate;
if(this.roomRateDetails&&this.roomRateDetails.RatePlanList&&this.roomRateDetails.RatePlanList.length>0){
this.sureMsg.roomType = this.roomRateDetails.RatePlanList[0].BedType;
}
//判断选择的人数与入住人数
let Count1 = 0;
this.sureMsg.GuestList.forEach(item => {
......@@ -960,7 +969,6 @@ export default {
}
})
},
//通过日期得到周几
getWeek() {
let CheckInDate = new Date(this.params.CheckInDate).getDay();
......@@ -1026,9 +1034,8 @@ export default {
this.sureMsg.checkInTime = res.data.data.PriceDetails.CheckInDate;
this.sureMsg.HotelName = this.roomRateDetails.HotelName;
this.sureMsg.TotalPrice = this.roomRateDetails.TotalPrice;
this.sureMsg.RoomCount = this.roomRateDetails.RatePlanList[0].RoomOccupancy.RoomNum;
this.DanWei =
res.data.data.PriceDetails.HotelList[0].RatePlanList[0].Currency;
this.sureMsg.RoomCount = this.$route.query.room;
this.DanWei = res.data.data.PriceDetails.HotelList[0].RatePlanList[0].Currency;
if (
Object.prototype.toString.call(this.dataList.HotelList) ==
"[object Object]"
......@@ -1040,6 +1047,12 @@ export default {
this.TotalChildCount = 0;
let rateGrouoLen = 0;
}
if(this.roomRateDetails&&this.roomRateDetails.RatePlanList&&this.roomRateDetails.RatePlanList.length>0){
this.submDisabled=false;
}
else{
this.submDisabled=true;
}
},
null
);
......@@ -1128,6 +1141,9 @@ export default {
if (this.$route.query.Address) {
this.Address = this.$route.query.Address;
}
if (this.$route.query.room) {
this.params.RoomCount = this.$route.query.room;
}
if (this.params.searchroomGroup && this.params.searchroomGroup != null) {
this.sureMsg.GuestList = [];
......@@ -1151,6 +1167,7 @@ export default {
GuestInfo: guestInfoList
};
this.sureMsg.GuestList.push(obj);
console.log(" this.sureMsg.GuestList", this.sureMsg.GuestList);
});
}
},
......
......@@ -171,7 +171,7 @@
<li>
<li v-if="ActionMenuCode.indexOf('ThirdHotelOrder')!=-1">
<span>
<em>{{$t('sm.company')}}</em>
<el-select v-model="msg.RB_Branch_Id" :placeholder="$t('rule.company')" @change="getDepartmentMsg.RB_Branch_Id = msg.RB_Branch_Id, getDepartment(),msg.RB_Department_Id = 0,msg.CreateBy = 0">
......@@ -184,7 +184,7 @@
</el-select>
</span>
</li>
<li>
<li v-if="ActionMenuCode.indexOf('ThirdHotelOrder')!=-1">
<span>
<em>{{$t('admin.admin_Department')}}</em>
<el-select v-model="msg.RB_Department_Id" :placeholder="$t('rule.qxzbmen')" @change="employeeMsg.DepartmentId = msg.RB_Department_Id,employeeMsg.BranchId=msg.RB_Branch_Id, getEmployee(), msg.CreateBy=0">
......@@ -197,7 +197,7 @@
</el-select>
</span>
</li>
<li>
<li v-if="ActionMenuCode.indexOf('ThirdHotelOrder')!=-1">
<span>
<em>{{$t('active.cl_addPp')}}</em>
<el-select filterable v-model='msg.CreateBy'>
......@@ -494,6 +494,8 @@
export default {
data() {
return {
//当前登录用户功能权限
ActionMenuCode: "",
msg: {
pageIndex:1,
pageSize:10,
......@@ -746,6 +748,7 @@ export default {
getList() {
//获取现有线路列表
this.loading = true;
console.log(" this.msg", this.msg);
this.apipost(
"sellorder_post_GetAllJapanHotelOrderList",
this.msg,
......@@ -902,9 +905,16 @@ export default {
this.msg.HotelName=this.$route.query.teamTCID;
}
let userInfo=this.getLocalStorage();
this.ActionMenuCode = userInfo.ActionMenuCode;
this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团
this.getDepartmentMsg.RB_Branch_Id=userInfo.RB_Branch_id; //公司
this.EmployeeId=userInfo.EmployeeId //员工
if(this.ActionMenuCode.indexOf('ThirdHotelOrder')==-1){
console.log("我没有权限",this.ActionMenuCode);
this.msg.CreateBy=userInfo.EmployeeId;
this.msg.RB_Branch_Id=userInfo.RB_Branch_id;
this.msg.RB_Department_Id=userInfo.RB_Department_Id;
}
this.getCompanyList()
this.getThirdOrderSourceEnumEnumList();
this.getDepartment()
......
......@@ -474,7 +474,7 @@ export default {
getdidaBedType() {
this.apipost(
"dmc_post_GetDidaBedTypeBaseInfo",
this.hotelMsg,
{},
res => {
this.loading = false;
if (res.data.resultCode == 1) {
......
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