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 {
.GOd_Table td {
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
text-align: center; text-align: center;
height: 40px; height: 40px;
padding:5px; padding: 5px;
} }
.GOd_Table th {
.GOd_Table th {
background-color: #e6e6e6; background-color: #e6e6e6;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
height: 40px; height: 40px;
} }
.GD_comDiv {
.GD_comDiv {
width: 100%; width: 100%;
height: 25px; height: 25px;
line-height: 25px; line-height: 25px;
text-align: center; text-align: center;
border-bottom: 1px solid #d1d1d1; border-bottom: 1px solid #d1d1d1;
} }
.GOd_Table td .GD_comDiv:last-child {
.GOd_Table td .GD_comDiv:last-child {
border: none; border: none;
} }
.GD_comPad{padding:0!important;}
.GD_comPad {
padding: 0 !important;
}
</style> </style>
<template> <template>
...@@ -111,8 +119,6 @@ ...@@ -111,8 +119,6 @@
<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 DMCStaticsCommon.BusList"> <tr v-for="item in DMCStaticsCommon.BusList">
...@@ -122,8 +128,6 @@ ...@@ -122,8 +128,6 @@
<td>{{item.BusNum}}</td> <td>{{item.BusNum}}</td>
<td>{{item.DriverName}}</td> <td>{{item.DriverName}}</td>
<td>{{item.DriverTel}}</td> <td>{{item.DriverTel}}</td>
<td>{{item.CostPrice*(Number(item.TransferNum)+1)}}</td>
<!-- <td>现付</td> -->
<td>{{item.Remarks}}</td> <td>{{item.Remarks}}</td>
</tr> </tr>
</table> </table>
...@@ -137,15 +141,6 @@ ...@@ -137,15 +141,6 @@
<th width="100">入住时间</th> <th width="100">入住时间</th>
<th width="80">占床/不占床</th> <th width="80">占床/不占床</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="80">联系电话</th>
<th width="200">地址</th> <th width="200">地址</th>
<th width="100">备注</th> <th width="100">备注</th>
...@@ -157,49 +152,6 @@ ...@@ -157,49 +152,6 @@
<td>{{subItem.CheckInDateStr}}</td> <td>{{subItem.CheckInDateStr}}</td>
<td>{{DMCStaticsCommon.HouseStatistics.NeedBed}}/{{DMCStaticsCommon.HouseStatistics.NoNeedBed}}</td> <td>{{DMCStaticsCommon.HouseStatistics.NeedBed}}/{{DMCStaticsCommon.HouseStatistics.NoNeedBed}}</td>
<td>{{DMCStaticsCommon.HouseStatistics.RealityRoomNum}}</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>{{subItem.Tel}}</td>
<td style="text-align:left;">{{subItem.Address}}</td> <td style="text-align:left;">{{subItem.Address}}</td>
<td>{{subItem.Remarks}}</td> <td>{{subItem.Remarks}}</td>
...@@ -212,20 +164,14 @@ ...@@ -212,20 +164,14 @@
</tr> </tr>
<tr> <tr>
<th width="80">订餐号</th> <th width="80">订餐号</th>
<th>用餐时间</th> <th width="80">用餐时间</th>
<th>餐厅名称</th> <th width="80">餐厅名称</th>
<th width="50">类别</th> <th width="50">类别</th>
<th>餐饮类型</th> <th width="80">餐饮类型</th>
<th width="80">总人数</th> <th width="80">总人数</th>
<th>用餐人数</th> <th width="80">联系电话</th>
<th>免费人数</th>
<th width="80">单价</th>
<th width="80">返佣</th>
<th>总金额</th>
<th>付款方式</th>
<th>联系电话</th>
<th width="200">地址</th> <th width="200">地址</th>
<th width="100">备注</th> <th width="300">备注</th>
</tr> </tr>
<tbody v-for="item in DMCStaticsCommon.DiningList"> <tbody v-for="item in DMCStaticsCommon.DiningList">
<tr v-for="subItem in item.DiningSummaryList"> <tr v-for="subItem in item.DiningSummaryList">
...@@ -235,32 +181,6 @@ ...@@ -235,32 +181,6 @@
<td>{{subItem.UseDinnerTypeStr}}</td> <td>{{subItem.UseDinnerTypeStr}}</td>
<td>{{subItem.MealName}}</td> <td>{{subItem.MealName}}</td>
<td>{{DMCStaticsCommon.HouseStatistics.RealityNum>0?(DMCStaticsCommon.HouseStatistics.RealityNum-1):0}}+1</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>{{subItem.Tel}}</td>
<td style="text-align:left;">{{subItem.Address}}</td> <td style="text-align:left;">{{subItem.Address}}</td>
<td>{{subItem.Remarks}}</td> <td>{{subItem.Remarks}}</td>
...@@ -272,46 +192,18 @@ ...@@ -272,46 +192,18 @@
<th colspan="12">门票使用</th> <th colspan="12">门票使用</th>
</tr> </tr>
<tr> <tr>
<th>景点名称</th>
<th>游览时间</th> <th>游览时间</th>
<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>联系电话</th>
<th width="250">地址</th> <th width="250">地址</th>
<th width="100">备注</th> <th width="100">备注</th>
</tr> </tr>
<tbody v-for="item in DMCStaticsCommon.ScenicList"> <tbody v-for="item in DMCStaticsCommon.ScenicList">
<tr v-for="subItem in item.ScenicStatisticsList"> <tr v-for="subItem in item.ScenicStatisticsList">
<td>{{subItem.ScenicName}}</td>
<td>{{subItem.UseTimeStr}}</td> <td>{{subItem.UseTimeStr}}</td>
<td>{{subItem.ScenicName}}</td>
<td>{{DMCStaticsCommon.HouseStatistics.RealityNum>0?(DMCStaticsCommon.HouseStatistics.RealityNum-1):0}}+1</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>{{subItem.Tel}}</td>
<td style="text-align:left;">{{subItem.Address}}</td> <td style="text-align:left;">{{subItem.Address}}</td>
<td>{{subItem.Remarks}}</td> <td>{{subItem.Remarks}}</td>
...@@ -364,23 +256,23 @@ ...@@ -364,23 +256,23 @@
</div> </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: { methods: {
...@@ -388,7 +280,7 @@ export default { ...@@ -388,7 +280,7 @@ export default {
getConfirmName() { getConfirmName() {
let msg = { let msg = {
TCIDs: this.TCIDs, TCIDs: this.TCIDs,
NewCombinationNum:'', NewCombinationNum: '',
}; };
//更新酒店图片 //更新酒店图片
this.apipost( this.apipost(
...@@ -404,7 +296,7 @@ export default { ...@@ -404,7 +296,7 @@ export default {
this.DMCStaticsCommon = res.data.data.DMCStaticsCommon; this.DMCStaticsCommon = res.data.data.DMCStaticsCommon;
this.shopList = res.data.data.shopList; this.shopList = res.data.data.shopList;
this.isShow = true; this.isShow = true;
}else{ } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
...@@ -412,27 +304,27 @@ export default { ...@@ -412,27 +304,27 @@ export default {
); );
}, },
//获取人员类型 //获取人员类型
peopleStrToWord(str){ peopleStrToWord(str) {
if(str=='1') if (str == '1')
return '成人' return '成人'
if(str=='2') if (str == '2')
return '儿童' return '儿童'
if(str=='3') if (str == '3')
return '婴儿' return '婴儿'
}, },
//总金额 //总金额
diningTotalPrice(obj){ diningTotalPrice(obj) {
let totalPrice=0 let totalPrice = 0
obj.forEach(x=>{ obj.forEach(x => {
totalPrice+=x.PeoplePrice*(x.PeopleNum-x.Discount)*(1-x.DiscountPrice/100) 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
}, },
...@@ -442,5 +334,6 @@ export default { ...@@ -442,5 +334,6 @@ export default {
this.TCIDs = this.$route.query.id; this.TCIDs = this.$route.query.id;
this.getConfirmName(); 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