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

导游计划表修改

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