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,
border: 1px solid #dcdcdc; .PT_teamTable th {
padding: 5px; border: 1px solid #dcdcdc;
height: 30px; padding: 5px;
} height: 30px;
.PT_teamTable tr th { }
background: #eee;
height: 30px; .PT_teamTable tr th {
border: 1px solid #dcdcdc; background: #eee;
} height: 30px;
.PT_teamTable tr td{background: #fff;} border: 1px solid #dcdcdc;
.travelpassengerlist{font-size: 12px; background: #dcdcdc;} }
.travelpassengerlist tr th {
height: 30px; .PT_teamTable tr td {
} background: #fff;
.travelpassengerlist tr td{background: #fff; text-align: center;} }
/*拒签人员*/
.travelpassengerlist .redTr td{ .travelpassengerlist {
font-size: 12px;
background: #dcdcdc;
}
.travelpassengerlist tr th {
height: 30px;
}
.travelpassengerlist tr td {
background: #fff;
text-align: center;
}
/*拒签人员*/
.travelpassengerlist .redTr td {
color: #E95252; color: #E95252;
} }
.leader2Btn {
color: #fff; .leader2Btn {
padding: 0 15px; color: #fff;
height: 30px; padding: 0 15px;
background: #e95252; height: 30px;
border: 1px solid #e95252; background: #e95252;
cursor: pointer; border: 1px solid #e95252;
border-radius: 15px; cursor: pointer;
} border-radius: 15px;
.PassengerList2 input.houseno{ }
border: none;
border-bottom: 1px solid #dcdcdc; .PassengerList2 input.houseno {
transition: all linear .5s; border: none;
} border-bottom: 1px solid #dcdcdc;
.PassengerList2 input.houseno:focus{ transition: all linear .5s;
border-bottom: 1px solid #e95252; }
}
.fs-12{ .PassengerList2 input.houseno:focus {
font-size: 12px; border-bottom: 1px solid #e95252;
color: #666; }
}
.color333{ .fs-12 {
color: #333; font-size: 12px;
} color: #666;
.time-box{ }
display: flex;
margin: 10px 0; .color333 {
text-align: center; color: #333;
border: 1px solid #dcdcdc; }
border-bottom: 0;
border-top: 0; .time-box {
} display: flex;
.time-box .el-col{ margin: 10px 0;
cursor: pointer; text-align: center;
padding: 10px; border: 1px solid #dcdcdc;
border-right: 1px solid #dcdcdc; border-bottom: 0;
border-bottom: 1px solid #dcdcdc; border-top: 0;
border-top: 1px solid #dcdcdc; }
display: flex;
align-items: center; .time-box .el-col {
justify-content: center; cursor: pointer;
} padding: 10px;
.time-box .el-col.active{ border-right: 1px solid #dcdcdc;
color: #e95252; border-bottom: 1px solid #dcdcdc;
border-bottom: 1px solid #e95252; border-top: 1px solid #dcdcdc;
} display: flex;
.PassengerList3 .travelpassengerlist{ align-items: center;
width: 100%; justify-content: center;
} }
.PassengerList3 .h34{
height: 34px; .time-box .el-col.active {
} color: #e95252;
border-bottom: 1px solid #e95252;
}
.PassengerList3 .travelpassengerlist {
width: 100%;
}
.PassengerList3 .h34 {
height: 34px;
}
</style> </style>
<template> <template>
...@@ -85,13 +111,14 @@ ...@@ -85,13 +111,14 @@
<li> <li>
<table class="PT_teamTable"> <table class="PT_teamTable">
<tr> <tr>
<th width="140">团号</th> <th width="140">团号</th>
<th width="60">人数</th> <th width="60">人数</th>
<th width="120">领队</th> <th width="120">领队</th>
<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,18 +141,12 @@ ...@@ -114,18 +141,12 @@
</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>
<tr style="background: #E6E6E6;"> <tr style="background: #E6E6E6;">
<th width="50">房间数</th> <th width="50">房间数</th>
<th width="50">房号</th> <th width="50">房号</th>
<th width="130">酒店及房型</th> <th width="130">酒店及房型</th>
...@@ -138,79 +159,69 @@ ...@@ -138,79 +159,69 @@
<th width="120">年龄类型</th> <th width="120">年龄类型</th>
<th width="60">方式</th> <th width="60">方式</th>
</tr> </tr>
<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" </el-option>
:label="hs" </el-select>
:value="hs"> <p v-else>{{subItem.HouseNo}}</p>
</el-option> </td>
</el-select> <td>
<p v-else>{{subItem.HouseNo}}</p> <el-select v-model="subItem.HouseType" placeholder="请选择" @change="changeRmType(subItem, subIndex)"
</td> v-if="subItem.HouseNo == 1">
<td> <el-option v-for="(hs, hsIndex) in HouseTypeList" :key="hsIndex" :label="hs.HouseName"
<el-select v-model="subItem.HouseType" placeholder="请选择" @change="changeRmType(subItem, subIndex)" v-if="subItem.HouseNo == 1"> :value="hs.HouseType">
<el-option </el-option>
v-for="(hs, hsIndex) in HouseTypeList" </el-select>
:key="hsIndex" <p v-else>{{getHouseTypeStr(subItem.HouseType)}}</p>
:label="hs.HouseName" </td>
:value="hs.HouseType"> <td>{{subItem.GuestName}}</td>
</el-option> <td>{{'占床'}}</td>
</el-select> <td>{{subItem.ESurName}}</td>
<p v-else>{{getHouseTypeStr(subItem.HouseType)}}</p> <td>{{subItem.EName}}</td>
</td> <td>{{getSexStr(subItem)}}</td>
<td>{{subItem.GuestName}}</td> <td>{{subItem.Birthday.split('T')[0]}}</td>
<td>{{'占床'}}</td> <td>{{subItem.PeopleType}}</td>
<td>{{subItem.ESurName}}</td> <td>{{subItem.GroupTypeStr}}</td>
<td>{{subItem.EName}}</td> </tr>
<td>{{getSexStr(subItem)}}</td> <tr>
<td>{{subItem.Birthday.split('T')[0]}}</td> <td style="text-align:right" colspan="11"><input type="button" value="保存" class="leader2Btn"
<td>{{subItem.PeopleType}}</td> @click="SetTravelChangeHouseService"></td>
<td>{{subItem.GroupTypeStr}}</td> </tr>
</tr> <tr v-if="item.ChangeGuest.length > 0" class="h34">
<tr> <td colspan="11"></td>
<td style="text-align:right" colspan="11"><input type="button" value="保存" class="leader2Btn" @click="SetTravelChangeHouseService"></td> </tr>
</tr> <tr v-for="(subItem, subIndex) in item.ChangeGuest" class="h34">
<tr v-if="item.ChangeGuest.length > 0" class="h34"> <td>{{subIndex+1}}</td>
<td colspan="11"></td> <td width="80">
</tr> <el-select v-model="subItem.ChangeHouseNum" placeholder="请选择" @change="changeRmType2(subItem, subIndex)">
<tr v-for="(subItem, subIndex) in item.ChangeGuest" class="h34"> <el-option v-for="(hs, hsIndex) in numberList" :key="hs" :label="hs" :value="hs">
<td>{{subIndex+1}}</td> </el-option>
<td width="80"> </el-select>
<el-select v-model="subItem.ChangeHouseNum" placeholder="请选择" @change="changeRmType2(subItem, subIndex)"> </td>
<el-option <td>
v-for="(hs, hsIndex) in numberList" <el-select v-model="subItem.ChangeHouseType" placeholder="请选择" @change="changeRmType2(subItem, subIndex)">
:key="hs" <el-option v-for="(hs, hsIndex) in HouseTypeList" :key="hsIndex" :label="hs.HouseName"
:label="hs" :value="hs.HouseType">
:value="hs"> </el-option>
</el-option> </el-select>
</el-select> </td>
</td> <td>{{subItem.GuestName}}</td>
<td> <td>{{'占床'}}</td>
<el-select v-model="subItem.ChangeHouseType" placeholder="请选择" @change="changeRmType2(subItem, subIndex)"> <td>{{subItem.ESurName}}</td>
<el-option <td>{{subItem.EName}}</td>
v-for="(hs, hsIndex) in HouseTypeList" <td>{{getSexStr(subItem)}}</td>
:key="hsIndex" <td>{{subItem.Birthday.split('T')[0]}}</td>
:label="hs.HouseName" <td>{{subItem.PeopleType}}</td>
:value="hs.HouseType"> <td>{{subItem.GroupTypeStr}}</td>
</el-option> </tr>
</el-select>
</td>
<td>{{subItem.GuestName}}</td>
<td>{{'占床'}}</td>
<td>{{subItem.ESurName}}</td>
<td>{{subItem.EName}}</td>
<td>{{getSexStr(subItem)}}</td>
<td>{{subItem.Birthday.split('T')[0]}}</td>
<td>{{subItem.PeopleType}}</td>
<td>{{subItem.GroupTypeStr}}</td>
</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,100 +231,124 @@ ...@@ -220,100 +231,124 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
//请求数据 //请求数据
msg: { msg: {
PageIndex: 1, PageIndex: 1,
PageSize: 100, PageSize: 100,
TCID: 0, TCID: 0,
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,
loading: false,
QueryMsg: {
TCID: 0, TCID: 0,
OrderId: 0, loading: false,
//团期数据 QueryMsg: {
TeamInfoData: [] TCID: 0,
}, OrderId: 0,
houseList: [], //团期数据
HouseTypeList: [], TeamInfoData: []
numberList: [],
HotelList: [],
GuestDataList: [],
editList: [],
editList2: [],
selectTime: '',
};
},
methods: {
SetTravelChangeHouseService2: function (){
if (this.editList2.length < 1) {
return this.$message.error('请修改房间类型后在保存!')
}
this.apipost(
"travelhouse_post_SetTravelChangeHouseService",
this.editList2,
res => {
if (res.data.resultCode == 1) {
this.$message.success('操作成功')
this.getList(this.selectTime)
}else{
this.$message.error('操作失败')
}
}, },
err => {} houseList: [],
); HouseTypeList: [],
numberList: [],
HotelList: [],
GuestDataList: [],
editList: [],
editList2: [],
selectTime: '',
};
}, },
SetTravelChangeHouseService: function (){ methods: {
if (this.editList.length < 1) { SetTravelChangeHouseService2: function () {
return this.$message.error('请修改房间类型后在保存!') if (this.editList2.length < 1) {
} return this.$message.error('请修改房间类型后在保存!')
this.apipost( }
"travelhouse_post_SetTravelChangeHouseService", this.apipost(
this.editList, "travelhouse_post_SetTravelChangeHouseService",
res => { this.editList2,
if (res.data.resultCode == 1) { res => {
this.$message.success('操作成功') if (res.data.resultCode == 1) {
this.getList(this.selectTime) this.$message.success('操作成功')
}else{ this.getList(this.selectTime)
this.$message.error('操作失败') } else {
this.$message.error('操作失败')
}
},
err => {}
);
},
SetTravelChangeHouseService: function () {
if (this.editList.length < 1) {
return this.$message.error('请修改房间类型后在保存!')
}
var TCID = 0;
this.editList.forEach((sItem, sIndex) => {
if (sIndex == 0) {
TCID = sItem.TCID;
} else {
sItem.TCID = TCID;
} }
}, });
err => {} //console.log("this.editList",this.editList);
); this.apipost(
}, "travelhouse_post_SetTravelChangeHouseService",
changeTime: function (index){ this.editList,
this.HotelList.map((x, i)=>{ res => {
x.active = false; if (res.data.resultCode == 1) {
}) this.$message.success('操作成功')
this.HotelList[index].active = true; this.getList(this.selectTime)
this.getList(this.HotelList[index].UseTime) } else {
}, this.$message.error('操作失败')
changeRmType2: function (obj, index) { }
let list = this.editList2 },
let msg = { err => {}
CombineNo: '', );
HouseType: obj.ChangeHouseType, },
HouseNum: obj.ChangeHouseNum, changeTime: function (index) {
OldHouseId: obj.HouseId, this.HotelList.map((x, i) => {
GuestId: obj.Id, x.active = false;
TravelDate: this.selectTime, })
HotelId: obj.HotelId, this.HotelList[index].active = true;
TCID: obj.TCID, this.getList(this.HotelList[index].UseTime)
} },
if (!list.length) { changeRmType2: function (obj, index) {
list.push(msg) let list = this.editList2
} else { let msg = {
let re = false; CombineNo: '',
for(let i = 0; i < list.length; i ++) { HouseType: obj.ChangeHouseType,
if (list[i].GuestId == obj.Id) { HouseNum: obj.ChangeHouseNum,
list[i] = { OldHouseId: obj.HouseId,
GuestId: obj.Id,
TravelDate: this.selectTime,
HotelId: obj.HotelId,
TCID: obj.TCID,
}
if (!list.length) {
list.push(msg)
} else {
let re = false;
for (let i = 0; i < list.length; i++) {
if (list[i].GuestId == obj.Id) {
list[i] = {
CombineNo: '',
HouseType: obj.ChangeHouseType,
HouseNum: obj.ChangeHouseNum,
OldHouseId: obj.HouseId,
GuestId: obj.Id,
TravelDate: this.selectTime,
HotelId: obj.HotelId,
TCID: obj.TCID,
}
re = true
break;
}
}
if (!re) {
list.push({
CombineNo: '', CombineNo: '',
HouseType: obj.ChangeHouseType, HouseType: obj.ChangeHouseType,
HouseNum: obj.ChangeHouseNum, HouseNum: obj.ChangeHouseNum,
...@@ -321,47 +356,47 @@ export default { ...@@ -321,47 +356,47 @@ export default {
GuestId: obj.Id, GuestId: obj.Id,
TravelDate: this.selectTime, TravelDate: this.selectTime,
HotelId: obj.HotelId, HotelId: obj.HotelId,
TCID: obj.TCID, TCID: list[0].TCID,
} })
re = true
break;
} }
} }
if (!re) { this.editList2 = list
list.push({ },
CombineNo: '', // 修改类型
HouseType: obj.ChangeHouseType, changeRmType: function (obj, index) {
HouseNum: obj.ChangeHouseNum, let list = this.editList
OldHouseId: obj.HouseId, let msg = {
GuestId: obj.Id, CombineNo: '',
TravelDate: this.selectTime, HouseType: obj.HouseType,
HotelId: obj.HotelId, HouseNum: obj.HouseNomber,
TCID: list[0].TCID, OldHouseId: obj.HouseId,
}) GuestId: obj.Id,
TravelDate: this.selectTime,
HotelId: obj.HotelId,
TCID: obj.TCID,
} }
} if (!list.length) {
this.editList2 = list list.push(msg)
}, } else {
// 修改类型 let re = false;
changeRmType: function (obj, index){ for (let i = 0; i < list.length; i++) {
let list = this.editList if (list[i].GuestId == obj.Id) {
let msg = { list[i] = {
CombineNo: '', CombineNo: '',
HouseType: obj.HouseType, HouseType: obj.HouseType,
HouseNum: obj.HouseNomber, HouseNum: obj.HouseNomber,
OldHouseId: obj.HouseId, OldHouseId: obj.HouseId,
GuestId: obj.Id, GuestId: obj.Id,
TravelDate: this.selectTime, TravelDate: this.selectTime,
HotelId: obj.HotelId, HotelId: obj.HotelId,
TCID: obj.TCID, TCID: obj.TCID,
} }
if (!list.length) { re = true
list.push(msg) break;
} else { }
let re = false; }
for(let i = 0; i < list.length; i ++) { if (!re) {
if (list[i].GuestId == obj.Id) { list.push({
list[i] = {
CombineNo: '', CombineNo: '',
HouseType: obj.HouseType, HouseType: obj.HouseType,
HouseNum: obj.HouseNomber, HouseNum: obj.HouseNomber,
...@@ -369,186 +404,167 @@ export default { ...@@ -369,186 +404,167 @@ export default {
GuestId: obj.Id, GuestId: obj.Id,
TravelDate: this.selectTime, TravelDate: this.selectTime,
HotelId: obj.HotelId, HotelId: obj.HotelId,
TCID: obj.TCID, TCID: list[0].TCID,
} })
re = true
break;
} }
} }
if (!re) { this.editList = list
list.push({ },
CombineNo: '', compare: function (obj1, obj2) {
HouseType: obj.HouseType,
HouseNum: obj.HouseNomber,
OldHouseId: obj.HouseId,
GuestId: obj.Id,
TravelDate: this.selectTime,
HotelId: obj.HotelId,
TCID: list[0].TCID,
})
}
}
this.editList = list
},
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) {
return -1; return -1;
} else if (val1 > val2) { } else if (val1 > val2) {
return 1; return 1;
} else { } else {
return 0; return 0;
} }
}, },
// 修改房号 // 修改房号
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
}
}
list = list.sort(this.compare)
this.GuestDataList = list;
},
//保存分房
saveOPSetGuestHouse: function (){
this.apipost(
"travel_get_OPSetGuestHouse",
this.GuestDataList,
res => {
if (res.data.resultCode == 1) {
this.$message.success('操作成功')
}else{
this.$message.error('操作失败')
} }
},
err => {}
);
},
goUrlTravelControl(name, path, id, tcmun) {
this.$router.push({
name: path,
query: {
id: id,
tcmun: tcmun,
blank: "y",
tab: name
} }
}); list = list.sort(this.compare)
}, this.GuestDataList = list;
//获取性别字符串 },
getSexStr(item) { //保存分房
var str = ""; saveOPSetGuestHouse: function () {
if (item.Sex == 1) { this.apipost(
str = "男"; "travel_get_OPSetGuestHouse",
} else { this.GuestDataList,
str = "女"; res => {
} if (res.data.resultCode == 1) {
return str; this.$message.success('操作成功')
}, } else {
//获取房间类型 this.$message.error('操作失败')
getHouseTypeStr(HouseType) { }
var str = ""; },
if (HouseType == 1) { err => {}
str = "自然单间"; );
} else if (HouseType == 2) { },
str = "标准双人间"; goUrlTravelControl(name, path, id, tcmun) {
} else if (HouseType == 3) { this.$router.push({
str = "大床房"; name: path,
} query: {
else if (HouseType == 4) { id: id,
str = "三人间"; tcmun: tcmun,
} blank: "y",
else if (HouseType== 5) { tab: name
str = "拼凑双人间";
}
else {
str = "未分配";
}
return str;
},
getHouseTypeList: function (){
this.apipost(
"travel_get_GetHouseType",
this.msg,
res => {
if (res.data.resultCode == 1) {
this.HouseTypeList = res.data.data;
} }
}, });
err => {} },
); //获取性别字符串
}, getSexStr(item) {
//获取数据 var str = "";
getList(time) { if (item.Sex == 1) {
this.selectTime = time str = "男";
let msg = { } else {
TCIDs: this.TCID, str = "女";
travelDate: time }
return str;
},
//获取房间类型
getHouseTypeStr(HouseType) {
var str = "";
if (HouseType == 1) {
str = "自然单间";
} else if (HouseType == 2) {
str = "标准双人间";
} else if (HouseType == 3) {
str = "大床房";
} else if (HouseType == 4) {
str = "三人间";
} else if (HouseType == 5) {
str = "拼凑双人间";
} else {
str = "未分配";
}
return str;
},
getHouseTypeList: function () {
this.apipost(
"travel_get_GetHouseType",
this.msg,
res => {
if (res.data.resultCode == 1) {
this.HouseTypeList = res.data.data;
}
},
err => {}
);
},
//获取数据
getList(time) {
this.selectTime = time
let msg = {
TCIDs: this.TCID,
travelDate: time
}
this.loading = true;
this.apipost(
"travelhouse_get_GetGuestByTCIDsAndDateService",
msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.GuestDataList = res.data.data
}
},
err => {}
);
},
exportExcel() {
//导出报表
let msg = {
TCID: this.msg.TCID
};
var fileName = "旅客名单.xls";
if (this.QueryMsg.TeamInfoData != null) {
fileName =
"【" + this.QueryMsg.TeamInfoData[0].TCNUM + "】旅客名单.xls";
}
this.GetLocalFile("travel_get_GetTravelGuestExport", msg, fileName);
},
//获取团期信息
getTeamInfo() {
var qmsg = {
TCIDs: this.TCID
};
this.apipost(
"travelhouse_get_GetCombineBasicAndHotelService",
qmsg,
res => {
if (res.data.resultCode == 1) {
this.QueryMsg.TeamInfoData = res.data.data.PriceList;
let HotelList = res.data.data.HotelList;
for (let i = 0; i < HotelList.length; i++) {
HotelList[i].active = false;
}
this.HotelList = HotelList;
}
},
err => {}
);
} }
this.loading = true;
this.apipost(
"travelhouse_get_GetGuestByTCIDsAndDateService",
msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
console.log(res.data.data)
this.GuestDataList = res.data.data
}
},
err => {}
);
}, },
exportExcel() { mounted() {
//导出报表 let numberList = []
let msg = { for (let i = 0; i < 99; i++) {
TCID: this.msg.TCID numberList.push(`${i+1}`)
};
var fileName = "旅客名单.xls";
if (this.QueryMsg.TeamInfoData != null) {
fileName =
"【" + this.QueryMsg.TeamInfoData[0].TCNUM + "】旅客名单.xls";
} }
this.GetLocalFile("travel_get_GetTravelGuestExport", msg, fileName); this.numberList = numberList
}, this.TCID = this.$route.query.id;
this.msg.TCID = this.TCID;
//获取团期信息 this.msg.OrderId = this.$route.query.OrderId;
getTeamInfo() { this.getTeamInfo();
var qmsg = { this.getHouseTypeList();
TCIDs: this.TCID
};
this.apipost(
"travelhouse_get_GetCombineBasicAndHotelService",
qmsg,
res => {
if (res.data.resultCode == 1) {
this.QueryMsg.TeamInfoData = res.data.data.PriceList;
let HotelList = res.data.data.HotelList;
for(let i = 0; i < HotelList.length; i++) {
HotelList[i].active = false;
}
this.HotelList = HotelList;
}
},
err => {}
);
} }
}, };
mounted() {
let numberList = [] </script>
for(let i = 0; i < 99; i++) {
numberList.push(`${i+1}`)
}
this.numberList = numberList
this.TCID = this.$route.query.id;
this.msg.TCID = this.TCID;
this.msg.OrderId = this.$route.query.OrderId;
this.getTeamInfo();
this.getHouseTypeList();
}
};
</script>
\ No newline at end of file
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