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

道旅酒店信息

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