Commit 669d067e authored by 黄奎's avatar 黄奎

页面修改

parent 4d1fbec9
<style> <style>
.PassengerList2 .PT_teamTable.PT_teamTable { .PassengerList2 .PT_teamTable.PT_teamTable {
width: 500px; width: 500px;
border-collapse: collapse; border-collapse: collapse;
} }
.PT_teamTable td,
.PT_teamTable th { .PT_teamTable td,
.PT_teamTable th {
border: 1px solid #dcdcdc; border: 1px solid #dcdcdc;
padding: 5px; padding: 5px;
height: 30px; height: 30px;
} }
.PT_teamTable tr th {
.PT_teamTable tr th {
background: #eee; background: #eee;
height: 30px; height: 30px;
border: 1px solid #dcdcdc; border: 1px solid #dcdcdc;
} }
.PT_teamTable tr td{background: #fff;}
.travelpassengerlist{font-size: 12px; background: #dcdcdc;} .PT_teamTable tr td {
.travelpassengerlist tr th { background: #fff;
}
.travelpassengerlist {
font-size: 12px;
background: #dcdcdc;
}
.travelpassengerlist tr th {
height: 30px; height: 30px;
} }
.travelpassengerlist tr td{background: #fff; text-align: center;}
/*拒签人员*/ .travelpassengerlist tr td {
.travelpassengerlist .redTr td{ background: #fff;
text-align: center;
}
/*拒签人员*/
.travelpassengerlist .redTr td {
color: #E95252; color: #E95252;
} }
.leader2Btn { .leader2Btn {
color: #fff; color: #fff;
padding: 0 15px; padding: 0 15px;
...@@ -32,31 +48,37 @@ ...@@ -32,31 +48,37 @@
border: 1px solid #e95252; border: 1px solid #e95252;
cursor: pointer; cursor: pointer;
border-radius: 15px; border-radius: 15px;
} }
.PassengerList2 input.houseno{
.PassengerList2 input.houseno {
border: none; border: none;
border-bottom: 1px solid #dcdcdc; border-bottom: 1px solid #dcdcdc;
transition: all linear .5s; transition: all linear .5s;
} }
.PassengerList2 input.houseno:focus{
.PassengerList2 input.houseno:focus {
border-bottom: 1px solid #e95252; border-bottom: 1px solid #e95252;
} }
.fs-12{
.fs-12 {
font-size: 12px; font-size: 12px;
color: #666; color: #666;
} }
.color333{
.color333 {
color: #333; color: #333;
} }
.time-box{
.time-box {
display: flex; display: flex;
margin: 10px 0; margin: 10px 0;
text-align: center; text-align: center;
border: 1px solid #dcdcdc; border: 1px solid #dcdcdc;
border-bottom: 0; border-bottom: 0;
border-top: 0; border-top: 0;
} }
.time-box .el-col{
.time-box .el-col {
cursor: pointer; cursor: pointer;
padding: 10px; padding: 10px;
border-right: 1px solid #dcdcdc; border-right: 1px solid #dcdcdc;
...@@ -65,17 +87,21 @@ ...@@ -65,17 +87,21 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.time-box .el-col.active{
.time-box .el-col.active {
color: #e95252; color: #e95252;
border-bottom: 1px solid #e95252; border-bottom: 1px solid #e95252;
} }
.PassengerList3 .travelpassengerlist{
.PassengerList3 .travelpassengerlist {
width: 100%; width: 100%;
} }
.PassengerList3 .h34{
.PassengerList3 .h34 {
height: 34px; height: 34px;
} }
</style> </style>
<template> <template>
...@@ -91,7 +117,8 @@ ...@@ -91,7 +117,8 @@
<th width="120">导游</th> <th width="120">导游</th>
</tr> </tr>
<tr v-for="item in QueryMsg.TeamInfoData"> <tr v-for="item in QueryMsg.TeamInfoData">
<td><a @click="goUrlTravelControl('团控列表','TravelControlList',item.TCID,item.TCNUM)" style="cursor:pointer;color:blue;">{{item.TCNUM+`(${item.TCID})`}}</a></td> <td><a @click="goUrlTravelControl('团控列表','TravelControlList',item.TCID,item.TCNUM)"
style="cursor:pointer;color:blue;">{{item.TCNUM+`(${item.TCID})`}}</a></td>
<td>{{item.TotalSeat}}</td> <td>{{item.TotalSeat}}</td>
<td>{{item.LeaderName}}</td> <td>{{item.LeaderName}}</td>
<td>{{item.GuideName}}</td> <td>{{item.GuideName}}</td>
...@@ -114,14 +141,8 @@ ...@@ -114,14 +141,8 @@
</el-col> </el-col>
</el-row> </el-row>
<div v-loading="loading"></div> <div v-loading="loading"></div>
<table <table style="margin-bottom: 50px;" class="travelpassengerlist" border="0" cellspacing="1" cellpadding="0"
style="margin-bottom: 50px;" v-for="(item, index) in GuestDataList">
class="travelpassengerlist"
border="0"
cellspacing="1"
cellpadding="0"
v-for="(item, index) in GuestDataList" >
<tr style="background: #E6E6E6;"> <tr style="background: #E6E6E6;">
<th colspan="11">{{item.NewHotelName}}</th> <th colspan="11">{{item.NewHotelName}}</th>
</tr> </tr>
...@@ -141,22 +162,17 @@ ...@@ -141,22 +162,17 @@
<tr v-for="(subItem, subIndex) in item.GuestList" :class="{'redTr':subItem.IsLeaderOrder==1}" class="h34"> <tr v-for="(subItem, subIndex) in item.GuestList" :class="{'redTr':subItem.IsLeaderOrder==1}" class="h34">
<td>{{subIndex+1}}</td> <td>{{subIndex+1}}</td>
<td width="80"> <td width="80">
<el-select v-model="subItem.HouseNomber" placeholder="请选择" @change="changeRmType(subItem, subIndex)" v-if="subItem.HouseNo == 1"> <el-select v-model="subItem.HouseNomber" placeholder="请选择" @change="changeRmType(subItem, subIndex)"
<el-option v-if="subItem.HouseNo == 1">
v-for="(hs, hsIndex) in numberList" <el-option v-for="(hs, hsIndex) in numberList" :key="hs" :label="hs" :value="hs">
:key="hs"
:label="hs"
:value="hs">
</el-option> </el-option>
</el-select> </el-select>
<p v-else>{{subItem.HouseNo}}</p> <p v-else>{{subItem.HouseNo}}</p>
</td> </td>
<td> <td>
<el-select v-model="subItem.HouseType" placeholder="请选择" @change="changeRmType(subItem, subIndex)" v-if="subItem.HouseNo == 1"> <el-select v-model="subItem.HouseType" placeholder="请选择" @change="changeRmType(subItem, subIndex)"
<el-option v-if="subItem.HouseNo == 1">
v-for="(hs, hsIndex) in HouseTypeList" <el-option v-for="(hs, hsIndex) in HouseTypeList" :key="hsIndex" :label="hs.HouseName"
:key="hsIndex"
:label="hs.HouseName"
:value="hs.HouseType"> :value="hs.HouseType">
</el-option> </el-option>
</el-select> </el-select>
...@@ -172,7 +188,8 @@ ...@@ -172,7 +188,8 @@
<td>{{subItem.GroupTypeStr}}</td> <td>{{subItem.GroupTypeStr}}</td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" colspan="11"><input type="button" value="保存" class="leader2Btn" @click="SetTravelChangeHouseService"></td> <td style="text-align:right" colspan="11"><input type="button" value="保存" class="leader2Btn"
@click="SetTravelChangeHouseService"></td>
</tr> </tr>
<tr v-if="item.ChangeGuest.length > 0" class="h34"> <tr v-if="item.ChangeGuest.length > 0" class="h34">
<td colspan="11"></td> <td colspan="11"></td>
...@@ -181,20 +198,13 @@ ...@@ -181,20 +198,13 @@
<td>{{subIndex+1}}</td> <td>{{subIndex+1}}</td>
<td width="80"> <td width="80">
<el-select v-model="subItem.ChangeHouseNum" placeholder="请选择" @change="changeRmType2(subItem, subIndex)"> <el-select v-model="subItem.ChangeHouseNum" placeholder="请选择" @change="changeRmType2(subItem, subIndex)">
<el-option <el-option v-for="(hs, hsIndex) in numberList" :key="hs" :label="hs" :value="hs">
v-for="(hs, hsIndex) in numberList"
:key="hs"
:label="hs"
:value="hs">
</el-option> </el-option>
</el-select> </el-select>
</td> </td>
<td> <td>
<el-select v-model="subItem.ChangeHouseType" placeholder="请选择" @change="changeRmType2(subItem, subIndex)"> <el-select v-model="subItem.ChangeHouseType" placeholder="请选择" @change="changeRmType2(subItem, subIndex)">
<el-option <el-option v-for="(hs, hsIndex) in HouseTypeList" :key="hsIndex" :label="hs.HouseName"
v-for="(hs, hsIndex) in HouseTypeList"
:key="hsIndex"
:label="hs.HouseName"
:value="hs.HouseType"> :value="hs.HouseType">
</el-option> </el-option>
</el-select> </el-select>
...@@ -210,7 +220,8 @@ ...@@ -210,7 +220,8 @@
</tr> </tr>
<!-- </template> --> <!-- </template> -->
<tr v-if="item.ChangeGuest.length > 0"> <tr v-if="item.ChangeGuest.length > 0">
<td style="text-align:right" colspan="11"><input type="button" value="保存" class="leader2Btn" @click="SetTravelChangeHouseService2"></td> <td style="text-align:right" colspan="11"><input type="button" value="保存" class="leader2Btn"
@click="SetTravelChangeHouseService2"></td>
</tr> </tr>
</table> </table>
<div class="noDataNotice" v-if="GuestDataList.length < 1"> <div class="noDataNotice" v-if="GuestDataList.length < 1">
...@@ -220,7 +231,7 @@ ...@@ -220,7 +231,7 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
//请求数据 //请求数据
...@@ -231,8 +242,8 @@ export default { ...@@ -231,8 +242,8 @@ export default {
OrderId: 0, OrderId: 0,
currentPage: 1 currentPage: 1
}, },
IsHaveLeader:1,//1-有领队,0-无领队 IsHaveLeader: 1, //1-有领队,0-无领队
IsLeaderGuide:0,//1-领兼导,0-领队 IsLeaderGuide: 0, //1-领兼导,0-领队
TCID: 0, TCID: 0,
loading: false, loading: false,
QueryMsg: { QueryMsg: {
...@@ -252,7 +263,7 @@ export default { ...@@ -252,7 +263,7 @@ export default {
}; };
}, },
methods: { methods: {
SetTravelChangeHouseService2: function (){ SetTravelChangeHouseService2: function () {
if (this.editList2.length < 1) { if (this.editList2.length < 1) {
return this.$message.error('请修改房间类型后在保存!') return this.$message.error('请修改房间类型后在保存!')
} }
...@@ -263,17 +274,26 @@ export default { ...@@ -263,17 +274,26 @@ export default {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success('操作成功') this.$message.success('操作成功')
this.getList(this.selectTime) this.getList(this.selectTime)
}else{ } else {
this.$message.error('操作失败') this.$message.error('操作失败')
} }
}, },
err => {} err => {}
); );
}, },
SetTravelChangeHouseService: function (){ SetTravelChangeHouseService: function () {
if (this.editList.length < 1) { if (this.editList.length < 1) {
return this.$message.error('请修改房间类型后在保存!') return this.$message.error('请修改房间类型后在保存!')
} }
var TCID = 0;
this.editList.forEach((sItem, sIndex) => {
if (sIndex == 0) {
TCID = sItem.TCID;
} else {
sItem.TCID = TCID;
}
});
//console.log("this.editList",this.editList);
this.apipost( this.apipost(
"travelhouse_post_SetTravelChangeHouseService", "travelhouse_post_SetTravelChangeHouseService",
this.editList, this.editList,
...@@ -281,15 +301,15 @@ export default { ...@@ -281,15 +301,15 @@ export default {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success('操作成功') this.$message.success('操作成功')
this.getList(this.selectTime) this.getList(this.selectTime)
}else{ } else {
this.$message.error('操作失败') this.$message.error('操作失败')
} }
}, },
err => {} err => {}
); );
}, },
changeTime: function (index){ changeTime: function (index) {
this.HotelList.map((x, i)=>{ this.HotelList.map((x, i) => {
x.active = false; x.active = false;
}) })
this.HotelList[index].active = true; this.HotelList[index].active = true;
...@@ -311,7 +331,7 @@ export default { ...@@ -311,7 +331,7 @@ export default {
list.push(msg) list.push(msg)
} else { } else {
let re = false; let re = false;
for(let i = 0; i < list.length; i ++) { for (let i = 0; i < list.length; i++) {
if (list[i].GuestId == obj.Id) { if (list[i].GuestId == obj.Id) {
list[i] = { list[i] = {
CombineNo: '', CombineNo: '',
...@@ -343,7 +363,7 @@ export default { ...@@ -343,7 +363,7 @@ export default {
this.editList2 = list this.editList2 = list
}, },
// 修改类型 // 修改类型
changeRmType: function (obj, index){ changeRmType: function (obj, index) {
let list = this.editList let list = this.editList
let msg = { let msg = {
CombineNo: '', CombineNo: '',
...@@ -359,7 +379,7 @@ export default { ...@@ -359,7 +379,7 @@ export default {
list.push(msg) list.push(msg)
} else { } else {
let re = false; let re = false;
for(let i = 0; i < list.length; i ++) { for (let i = 0; i < list.length; i++) {
if (list[i].GuestId == obj.Id) { if (list[i].GuestId == obj.Id) {
list[i] = { list[i] = {
CombineNo: '', CombineNo: '',
...@@ -390,7 +410,7 @@ export default { ...@@ -390,7 +410,7 @@ export default {
} }
this.editList = list this.editList = list
}, },
compare:function (obj1, obj2) { compare: function (obj1, obj2) {
var val1 = Number(obj1.HouseNo); var val1 = Number(obj1.HouseNo);
var val2 = Number(obj2.HouseNo); var val2 = Number(obj2.HouseNo);
if (val1 < val2) { if (val1 < val2) {
...@@ -402,10 +422,10 @@ export default { ...@@ -402,10 +422,10 @@ export default {
} }
}, },
// 修改房号 // 修改房号
sortNumberN: function (obj, index){ sortNumberN: function (obj, index) {
let list = this.GuestDataList; let list = this.GuestDataList;
// 选择房号后循环数据把房号相同的数据房型修改成一样的 // 选择房号后循环数据把房号相同的数据房型修改成一样的
for(let i = 0 ; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
if (obj.HouseNo === list[i].HouseNo && obj.Id !== list[i].Id) { if (obj.HouseNo === list[i].HouseNo && obj.Id !== list[i].Id) {
obj.HouseType = list[i].HouseType obj.HouseType = list[i].HouseType
} }
...@@ -414,14 +434,14 @@ export default { ...@@ -414,14 +434,14 @@ export default {
this.GuestDataList = list; this.GuestDataList = list;
}, },
//保存分房 //保存分房
saveOPSetGuestHouse: function (){ saveOPSetGuestHouse: function () {
this.apipost( this.apipost(
"travel_get_OPSetGuestHouse", "travel_get_OPSetGuestHouse",
this.GuestDataList, this.GuestDataList,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success('操作成功') this.$message.success('操作成功')
}else{ } else {
this.$message.error('操作失败') this.$message.error('操作失败')
} }
}, },
...@@ -458,19 +478,16 @@ export default { ...@@ -458,19 +478,16 @@ export default {
str = "标准双人间"; str = "标准双人间";
} else if (HouseType == 3) { } else if (HouseType == 3) {
str = "大床房"; str = "大床房";
} } else if (HouseType == 4) {
else if (HouseType == 4) {
str = "三人间"; str = "三人间";
} } else if (HouseType == 5) {
else if (HouseType== 5) {
str = "拼凑双人间"; str = "拼凑双人间";
} } else {
else {
str = "未分配"; str = "未分配";
} }
return str; return str;
}, },
getHouseTypeList: function (){ getHouseTypeList: function () {
this.apipost( this.apipost(
"travel_get_GetHouseType", "travel_get_GetHouseType",
this.msg, this.msg,
...@@ -496,7 +513,6 @@ export default { ...@@ -496,7 +513,6 @@ export default {
res => { res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(res.data.data)
this.GuestDataList = res.data.data this.GuestDataList = res.data.data
} }
}, },
...@@ -515,7 +531,6 @@ export default { ...@@ -515,7 +531,6 @@ export default {
} }
this.GetLocalFile("travel_get_GetTravelGuestExport", msg, fileName); this.GetLocalFile("travel_get_GetTravelGuestExport", msg, fileName);
}, },
//获取团期信息 //获取团期信息
getTeamInfo() { getTeamInfo() {
var qmsg = { var qmsg = {
...@@ -528,7 +543,7 @@ export default { ...@@ -528,7 +543,7 @@ export default {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.QueryMsg.TeamInfoData = res.data.data.PriceList; this.QueryMsg.TeamInfoData = res.data.data.PriceList;
let HotelList = res.data.data.HotelList; let HotelList = res.data.data.HotelList;
for(let i = 0; i < HotelList.length; i++) { for (let i = 0; i < HotelList.length; i++) {
HotelList[i].active = false; HotelList[i].active = false;
} }
this.HotelList = HotelList; this.HotelList = HotelList;
...@@ -540,7 +555,7 @@ export default { ...@@ -540,7 +555,7 @@ export default {
}, },
mounted() { mounted() {
let numberList = [] let numberList = []
for(let i = 0; i < 99; i++) { for (let i = 0; i < 99; i++) {
numberList.push(`${i+1}`) numberList.push(`${i+1}`)
} }
this.numberList = numberList this.numberList = numberList
...@@ -550,5 +565,6 @@ export default { ...@@ -550,5 +565,6 @@ export default {
this.getTeamInfo(); this.getTeamInfo();
this.getHouseTypeList(); this.getHouseTypeList();
} }
}; };
</script> </script>
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