Commit 2f8b8254 authored by 黄奎's avatar 黄奎

导游计划表修改

parent 72b91f55
<style> <style>
.GOd_Table { .GOd_Table {
width: 100%; width: 100%;
font-size: 12px; font-size: 12px;
color: #333; color: #333;
margin:20px 0 auto; margin: 20px 0 auto;
border-collapse: collapse; border-collapse: collapse;
background-color: #fff; background-color: #fff;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
} }
.GOd_Table td {
border: 1px solid #d1d1d1; .GOd_Table td {
text-align: center; border: 1px solid #d1d1d1;
height: 40px; text-align: center;
padding:5px; height: 40px;
} padding: 5px;
.GOd_Table th { }
background-color: #e6e6e6;
border: 1px solid #d1d1d1; .GOd_Table th {
height: 40px; background-color: #e6e6e6;
} border: 1px solid #d1d1d1;
.GD_comDiv { height: 40px;
width: 100%; }
height: 25px;
line-height: 25px; .GD_comDiv {
text-align: center; width: 100%;
border-bottom: 1px solid #d1d1d1; height: 25px;
} line-height: 25px;
.GOd_Table td .GD_comDiv:last-child { text-align: center;
border: none; border-bottom: 1px solid #d1d1d1;
} }
.GD_comPad{padding:0!important;}
.GOd_Table td .GD_comDiv:last-child {
border: none;
}
.GD_comPad {
padding: 0 !important;
}
</style> </style>
<template> <template>
<div v-if="isShow"> <div v-if="isShow">
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="9">导游领队运行计划表</th> <th colspan="9">导游领队运行计划表</th>
</tr> </tr>
<tr> <tr>
<th width="150">出发地</th> <th width="150">出发地</th>
<th>航班时间</th> <th>航班时间</th>
<th>集合时间</th> <th>集合时间</th>
<th width="500">出团名称</th> <th width="500">出团名称</th>
<th>天数</th> <th>天数</th>
<th>进出点</th> <th>进出点</th>
<th>出团人数</th> <th>出团人数</th>
<th>领队</th> <th>领队</th>
<th>导游</th> <th>导游</th>
</tr> </tr>
<tr v-for="item in BaseInfo"> <tr v-for="item in BaseInfo">
<td>{{item.StartCityNames}}</td> <td>{{item.StartCityNames}}</td>
<td> <td>
<span v-if="item.FlightList.length>0">{{item.FlightList[0].Departure_time}}</span> <span v-if="item.FlightList.length>0">{{item.FlightList[0].Departure_time}}</span>
</td> </td>
<td>{{item.GatherTime}}</td> <td>{{item.GatherTime}}</td>
<td style="text-align:left;">{{item.Titles}}</td> <td style="text-align:left;">{{item.Titles}}</td>
<td>{{item.DayNum}}</td> <td>{{item.DayNum}}</td>
<td>{{item.InOut}}</td> <td>{{item.InOut}}</td>
<td>{{item.TotalSeat}}+1</td> <td>{{item.TotalSeat}}+1</td>
<td>{{item.LeaderName}}</td> <td>{{item.LeaderName}}</td>
<td>{{item.GuideName}}</td> <td>{{item.GuideName}}</td>
</tr> </tr>
<tr> <tr>
<td>特殊要求</td> <td>特殊要求</td>
<td colspan="8"></td> <td colspan="8"></td>
</tr> </tr>
<tr> <tr>
<td rowspan="5"> <td rowspan="5">
部门负责人 部门负责人
</td> </td>
<td>机票负责人</td> <td>机票负责人</td>
<td>{{PrincipalList[0].CreateByName}}</td> <td>{{PrincipalList[0].CreateByName}}</td>
<td>联系电话</td> <td>联系电话</td>
<td colspan="5">{{PrincipalList[0].CreateByMobile}}</td> <td colspan="5">{{PrincipalList[0].CreateByMobile}}</td>
</tr> </tr>
<tr> <tr>
<td>订房负责人</td> <td>订房负责人</td>
<td>{{PrincipalList[0].HConfirmName}}</td> <td>{{PrincipalList[0].HConfirmName}}</td>
<td>联系电话</td> <td>联系电话</td>
<td colspan="5">{{PrincipalList[0].HConfirmMobile}}</td> <td colspan="5">{{PrincipalList[0].HConfirmMobile}}</td>
</tr> </tr>
<tr> <tr>
<td>车辆负责人</td> <td>车辆负责人</td>
<td>{{PrincipalList[0].BConfirmName}}</td> <td>{{PrincipalList[0].BConfirmName}}</td>
<td>联系电话</td> <td>联系电话</td>
<td colspan="5">{{PrincipalList[0].BConfirmMobile}}</td> <td colspan="5">{{PrincipalList[0].BConfirmMobile}}</td>
</tr> </tr>
<tr> <tr>
<td>订餐负责人</td> <td>订餐负责人</td>
<td>{{PrincipalList[0].DConfirmName}}</td> <td>{{PrincipalList[0].DConfirmName}}</td>
<td>联系电话</td> <td>联系电话</td>
<td colspan="5">{{PrincipalList[0].DConfirmMobile}}</td> <td colspan="5">{{PrincipalList[0].DConfirmMobile}}</td>
</tr> </tr>
<tr> <tr>
<td>门票负责人</td> <td>门票负责人</td>
<td>{{PrincipalList[0].TConfirmName}}</td> <td>{{PrincipalList[0].TConfirmName}}</td>
<td>联系电话</td> <td>联系电话</td>
<td colspan="5">{{PrincipalList[0].TConfirmMobile}}</td> <td colspan="5">{{PrincipalList[0].TConfirmMobile}}</td>
</tr> </tr>
</table> </table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th colspan="9">车辆使用</th> <th colspan="9">车辆使用</th>
</tr> </tr>
<tr> <tr>
<th>车配号</th> <th>车配号</th>
<th>车辆公司</th> <th>车辆公司</th>
<th>用车时间</th> <th>用车时间</th>
<th>车牌号</th> <th>车牌号</th>
<th>司机姓名</th> <th>司机姓名</th>
<th>司机电话</th> <th>司机电话</th>
<th>金额</th> <th>备注</th>
<!-- <th>付款方式</th> --> </tr>
<th>备注</th> <tr v-for="item in DMCStaticsCommon.BusList">
</tr> <td>{{item.BusCode}}</td>
<tr v-for="item in DMCStaticsCommon.BusList"> <td>{{item.BusCompany}}</td>
<td>{{item.BusCode}}</td> <td>{{item.PlanDateStr}}</td>
<td>{{item.BusCompany}}</td> <td>{{item.BusNum}}</td>
<td>{{item.PlanDateStr}}</td> <td>{{item.DriverName}}</td>
<td>{{item.BusNum}}</td> <td>{{item.DriverTel}}</td>
<td>{{item.DriverName}}</td> <td>{{item.Remarks}}</td>
<td>{{item.DriverTel}}</td> </tr>
<td>{{item.CostPrice*(Number(item.TransferNum)+1)}}</td> </table>
<!-- <td>现付</td> --> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<td>{{item.Remarks}}</td> <tr>
</tr> <th colspan="17">酒店使用</th>
</table> </tr>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <tr>
<tr> <th width="80">订房号</th>
<th colspan="17">酒店使用</th> <th width="180">酒店名称</th>
</tr> <th width="100">入住时间</th>
<tr> <th width="80">占床/不占床</th>
<th width="80">订房号</th> <th width="80">实际用房数</th>
<th width="180">酒店名称</th> <th width="80">联系电话</th>
<th width="100">入住时间</th> <th width="200">地址</th>
<th width="80">占床/不占床</th> <th width="100">备注</th>
<th width="80">实际用房数</th> </tr>
<th width="90">房间类型</th> <tbody v-for="item in DMCStaticsCommon.HotelOrderListReport">
<th width="60">房间数</th> <tr v-for="subItem in item.HotelOrderList">
<th width="80">房间预订数</th> <td>{{subItem.ReserveNo}}</td>
<th width="80">尚差房间数</th> <td style="text-align:left;">{{subItem.HotelName}}</td>
<th width="80">单价</th> <td>{{subItem.CheckInDateStr}}</td>
<th width="80">免减人数</th> <td>{{DMCStaticsCommon.HouseStatistics.NeedBed}}/{{DMCStaticsCommon.HouseStatistics.NoNeedBed}}</td>
<th width="80">金额</th> <td>{{DMCStaticsCommon.HouseStatistics.RealityRoomNum}}</td>
<th width="80">返佣</th> <td>{{subItem.Tel}}</td>
<th width="80">付款方式</th> <td style="text-align:left;">{{subItem.Address}}</td>
<th width="80">联系电话</th> <td>{{subItem.Remarks}}</td>
<th width="200">地址</th> </tr>
<th width="100">备注</th> </tbody>
</tr> </table>
<tbody v-for="item in DMCStaticsCommon.HotelOrderListReport"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr v-for="subItem in item.HotelOrderList"> <tr>
<td>{{subItem.ReserveNo}}</td> <th colspan="15">餐食使用</th>
<td style="text-align:left;">{{subItem.HotelName}}</td> </tr>
<td>{{subItem.CheckInDateStr}}</td> <tr>
<td>{{DMCStaticsCommon.HouseStatistics.NeedBed}}/{{DMCStaticsCommon.HouseStatistics.NoNeedBed}}</td> <th width="80">订餐号</th>
<td>{{DMCStaticsCommon.HouseStatistics.RealityRoomNum}}</td> <th width="80">用餐时间</th>
<td class="GD_comPad"> <th width="80">餐厅名称</th>
<div class="GD_comDiv" v-for="childItem in subItem.HouseStatistics.HouseTypeList"> <th width="50">类别</th>
{{childItem.HouseTypeName}} <th width="80">餐饮类型</th>
</div> <th width="80">总人数</th>
</td> <th width="80">联系电话</th>
<td class="GD_comPad"> <th width="200">地址</th>
<div class="GD_comDiv" v-for="childItem in subItem.HouseStatistics.HouseTypeList"> <th width="300">备注</th>
{{childItem.HouseTypeCount}} </tr>
</div> <tbody v-for="item in DMCStaticsCommon.DiningList">
</td> <tr v-for="subItem in item.DiningSummaryList">
<td class="GD_comPad"> <td>{{subItem.ReserveNo}}</td>
<div class="GD_comDiv" v-for="childItem in subItem.OrderDetailsList"> <td>{{subItem.UseTimeStr}}</td>
{{childItem.HouseTypeCount}} <td>{{subItem.DiningName}}</td>
</div> <td>{{subItem.UseDinnerTypeStr}}</td>
</td> <td>{{subItem.MealName}}</td>
<td class="GD_comPad"> <td>{{DMCStaticsCommon.HouseStatistics.RealityNum>0?(DMCStaticsCommon.HouseStatistics.RealityNum-1):0}}+1</td>
<div class="GD_comDiv" v-for="(childItem,index) in subItem.OrderDetailsList"> <td>{{subItem.Tel}}</td>
{{childItem.HouseTypeCount-subItem.HouseStatistics.HouseTypeList[index].HouseTypeCount}} <td style="text-align:left;">{{subItem.Address}}</td>
</div> <td>{{subItem.Remarks}}</td>
</td> </tr>
<td class="GD_comPad"> </tbody>
<div class="GD_comDiv" v-for="childItem in subItem.OrderDetailsList"> </table>
{{childItem.UnitPrice}} <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
</div> <tr>
</td> <th colspan="12">门票使用</th>
<td class="GD_comPad"> </tr>
<div class="GD_comDiv" v-for="childItem in subItem.OrderDetailsList"> <tr>
{{childItem.HotelDiscount}} <th>游览时间</th>
</div> <th>景点名称</th>
</td> <th>总人数</th>
<td class="GD_comPad"> <th>联系电话</th>
<div class="GD_comDiv" v-for="childItem in subItem.OrderDetailsList"> <th width="250">地址</th>
{{childItem.UnitPrice*(childItem.HouseGuestNum-childItem.HotelDiscount)}} <th width="100">备注</th>
</div> </tr>
</td> <tbody v-for="item in DMCStaticsCommon.ScenicList">
<td class="GD_comPad"> <tr v-for="subItem in item.ScenicStatisticsList">
<div class="GD_comDiv" v-for="childItem in subItem.OrderDetailsList"> <td>{{subItem.UseTimeStr}}</td>
{{childItem.RebateRatio}}% <td>{{subItem.ScenicName}}</td>
</div> <td>{{DMCStaticsCommon.HouseStatistics.RealityNum>0?(DMCStaticsCommon.HouseStatistics.RealityNum-1):0}}+1</td>
</td> <td>{{subItem.Tel}}</td>
<td> <td style="text-align:left;">{{subItem.Address}}</td>
{{subItem.PayStyleStr}} <td>{{subItem.Remarks}}</td>
</td> </tr>
<td>{{subItem.Tel}}</td> </tbody>
<td style="text-align:left;">{{subItem.Address}}</td> </table>
<td>{{subItem.Remarks}}</td> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
</tr> <tr>
</tbody> <th colspan="6">旅客名单</th>
</table> </tr>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0"> <tr>
<tr> <th>护照号</th>
<th colspan="15">餐食使用</th> <th>性别</th>
</tr> <th>客人姓名</th>
<tr> <th>出生年月日</th>
<th width="80">订餐号</th> <th>职业</th>
<th>用餐时间</th> </tr>
<th>餐厅名称</th> <tr v-for="item in guestList">
<th width="50">类别</th> <td>{{item.PassportNo}}</td>
<th>餐饮类型</th> <td>{{item.SexStr}}</td>
<th width="80">总人数</th> <td>{{item.userName}}</td>
<th>用餐人数</th> <td>{{item.Birthday}}</td>
<th>免费人数</th> <td>{{item.Duty}}</td>
<th width="80">单价</th> </tr>
<th width="80">返佣</th> </table>
<th>总金额</th> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<th>付款方式</th> <tr>
<th>联系电话</th> <th colspan="4">购物店</th>
<th width="200">地址</th> </tr>
<th width="100">备注</th> <tr>
</tr> <th>店名</th>
<tbody v-for="item in DMCStaticsCommon.DiningList"> <th>进店时间</th>
<tr v-for="subItem in item.DiningSummaryList"> <th>地址</th>
<td>{{subItem.ReserveNo}}</td> </tr>
<td>{{subItem.UseTimeStr}}</td> <tr v-for="item in shopList">
<td>{{subItem.DiningName}}</td> <td>{{item.ShopName}}</td>
<td>{{subItem.UseDinnerTypeStr}}</td> <td>{{item.StoreTimeStr}}</td>
<td>{{subItem.MealName}}</td> <td>{{item.Address}}</td>
<td>{{DMCStaticsCommon.HouseStatistics.RealityNum>0?(DMCStaticsCommon.HouseStatistics.RealityNum-1):0}}+1</td> </tr>
<td class="GD_comPad"> </table>
<div class="GD_comDiv" v-for="childItem in subItem.DiningPriceList"> <table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
{{peopleStrToWord(childItem.PeopleType)}}:{{childItem.PeopleNum}} <tr>
</div> <th colspan="2">行程内容</th>
</td> </tr>
<td class="GD_comPad"> <tr v-for="item in JourneyTitle">
<div class="GD_comDiv" v-for="childItem in subItem.DiningPriceList"> <td width="100">{{item.DayNum}}</td>
{{childItem.Discount}} <td style="text-align:left;">{{item.Title}}</td>
</div> </tr>
</td> </table>
<td class="GD_comPad"> </div>
<div class="GD_comDiv" v-for="childItem in subItem.DiningPriceList">
{{childItem.PeoplePrice}}
</div>
</td>
<td class="GD_comPad">
<div class="GD_comDiv" v-for="childItem in subItem.DiningPriceList">
{{childItem.DiscountPrice}}%
</div>
</td>
<td class="GD_comPad">
<div class="GD_comDiv" v-for="subItem in item.DiningSummaryList">
{{diningTotalPrice(subItem.DiningPriceList)}}
</div>
</td>
<td>{{subItem.PayStyleStr}}</td>
<td>{{subItem.Tel}}</td>
<td style="text-align:left;">{{subItem.Address}}</td>
<td>{{subItem.Remarks}}</td>
</tr>
</tbody>
</table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="12">门票使用</th>
</tr>
<tr>
<th>景点名称</th>
<th>游览时间</th>
<th>总人数</th>
<th>门票类别</th>
<th>免费人数</th>
<th width="80">单价</th>
<th width="80">返佣</th>
<th>总金额</th>
<th>付款方式</th>
<th>联系电话</th>
<th width="250">地址</th>
<th width="100">备注</th>
</tr>
<tbody v-for="item in DMCStaticsCommon.ScenicList">
<tr v-for="subItem in item.ScenicStatisticsList">
<td>{{subItem.ScenicName}}</td>
<td>{{subItem.UseTimeStr}}</td>
<td>{{DMCStaticsCommon.HouseStatistics.RealityNum>0?(DMCStaticsCommon.HouseStatistics.RealityNum-1):0}}+1</td>
<td class="GD_comPad">
<div class="GD_comDiv" v-for="childItem in subItem.TicketPriceList">
{{peopleStrToWord(childItem.PeopleType)}}:{{childItem.PeopleNum}}
</div>
</td>
<td class="GD_comPad">
<div class="GD_comDiv" v-for="childItem in subItem.TicketPriceList">
{{childItem.Discount}}
</div>
</td>
<td class="GD_comPad">
<div class="GD_comDiv" v-for="childItem in subItem.TicketPriceList">
{{childItem.PeoplePrice}}
</div>
</td>
<td class="GD_comPad">
<div class="GD_comDiv" v-for="childItem in subItem.TicketPriceList">
{{childItem.DiscountPrice}}%
</div>
</td>
<td>{{scenicTotalPrice(subItem.TicketPriceList)}}</td>
<td>{{subItem.PayStyleStr}}</td>
<td>{{subItem.Tel}}</td>
<td style="text-align:left;">{{subItem.Address}}</td>
<td>{{subItem.Remarks}}</td>
</tr>
</tbody>
</table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="6">旅客名单</th>
</tr>
<tr>
<th>护照号</th>
<th>性别</th>
<th>客人姓名</th>
<th>出生年月日</th>
<th>职业</th>
</tr>
<tr v-for="item in guestList">
<td>{{item.PassportNo}}</td>
<td>{{item.SexStr}}</td>
<td>{{item.userName}}</td>
<td>{{item.Birthday}}</td>
<td>{{item.Duty}}</td>
</tr>
</table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="4">购物店</th>
</tr>
<tr>
<th>店名</th>
<th>进店时间</th>
<th>地址</th>
</tr>
<tr v-for="item in shopList">
<td>{{item.ShopName}}</td>
<td>{{item.StoreTimeStr}}</td>
<td>{{item.Address}}</td>
</tr>
</table>
<table class="GOd_Table" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="2">行程内容</th>
</tr>
<tr v-for="item in JourneyTitle">
<td width="100">{{item.DayNum}}</td>
<td style="text-align:left;">{{item.Title}}</td>
</tr>
</table>
</div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
TCIDs: "", TCIDs: "",
//基本信息 //基本信息
BaseInfo:[], BaseInfo: [],
//负责人 //负责人
PrincipalList:[], PrincipalList: [],
//行程内容 //行程内容
JourneyTitle:[], JourneyTitle: [],
//旅客 //旅客
guestList:[], guestList: [],
//房餐车景点 //房餐车景点
DMCStaticsCommon:{}, DMCStaticsCommon: {},
//购物店 //购物店
shopList:[], shopList: [],
isShow:false, isShow: false,
};
},
methods: {
//根据团号获取负责人的信息
getConfirmName() {
let msg = {
TCIDs: this.TCIDs,
NewCombinationNum:'',
}; };
//更新酒店图片
this.apipost(
"dmcstatistics_post_GetExtendLeaderAllStatics",
msg,
res => {
if (res.data.resultCode == 1) {
console.log(res);
this.BaseInfo = res.data.data.BaseInfo;
this.PrincipalList = res.data.data.PrincipalList;
this.JourneyTitle = res.data.data.JourneyTitle;
this.guestList = res.data.data.guestList;
this.DMCStaticsCommon = res.data.data.DMCStaticsCommon;
this.shopList = res.data.data.shopList;
this.isShow = true;
}else{
this.Error(res.data.message);
}
},
null
);
}, },
//获取人员类型 methods: {
peopleStrToWord(str){ //根据团号获取负责人的信息
if(str=='1') getConfirmName() {
return '成人' let msg = {
if(str=='2') TCIDs: this.TCIDs,
return '儿童' NewCombinationNum: '',
if(str=='3') };
return '婴儿' //更新酒店图片
}, this.apipost(
//总金额 "dmcstatistics_post_GetExtendLeaderAllStatics",
diningTotalPrice(obj){ msg,
let totalPrice=0 res => {
obj.forEach(x=>{ if (res.data.resultCode == 1) {
totalPrice+=x.PeoplePrice*(x.PeopleNum-x.Discount)*(1-x.DiscountPrice/100) console.log(res);
this.BaseInfo = res.data.data.BaseInfo;
this.PrincipalList = res.data.data.PrincipalList;
this.JourneyTitle = res.data.data.JourneyTitle;
this.guestList = res.data.data.guestList;
this.DMCStaticsCommon = res.data.data.DMCStaticsCommon;
this.shopList = res.data.data.shopList;
this.isShow = true;
} else {
this.Error(res.data.message);
}
},
null
);
},
//获取人员类型
peopleStrToWord(str) {
if (str == '1')
return '成人'
if (str == '2')
return '儿童'
if (str == '3')
return '婴儿'
},
//总金额
diningTotalPrice(obj) {
let totalPrice = 0
obj.forEach(x => {
totalPrice += x.PeoplePrice * (x.PeopleNum - x.Discount) * (1 - x.DiscountPrice / 100)
}) })
return totalPrice return totalPrice
}, },
//景点 //景点
scenicTotalPrice(obj){ scenicTotalPrice(obj) {
let totalPrice=0 let totalPrice = 0
obj.forEach(x=>{ obj.forEach(x => {
totalPrice+=x.PeoplePrice*(x.UsePeopleNum-x.Discount)*(1-x.DiscountPrice/100) totalPrice += x.PeoplePrice * (x.UsePeopleNum - x.Discount) * (1 - x.DiscountPrice / 100)
}) })
return totalPrice return totalPrice
},
}, },
mounted() {
this.TCIDs = this.$route.query.id;
this.getConfirmName();
}
};
},
mounted() {
this.TCIDs = this.$route.query.id;
this.getConfirmName();
}
};
</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