Commit 6d8c0be4 authored by huangyuanyuan's avatar huangyuanyuan
parents 6baa05ef 4f3c088d
...@@ -80,17 +80,17 @@ ...@@ -80,17 +80,17 @@
<el-row v-for="(list,index) in addMsg.DiscountList" :key="index"> <el-row v-for="(list,index) in addMsg.DiscountList" :key="index">
<el-col :span="6" :gutter="35"> <el-col :span="6" :gutter="35">
<el-form-item label="开始数量"> <el-form-item label="开始数量">
<el-input class='w80' type="text" v-model="list.StartNum"></el-input> <el-input class='w80' type="text" v-model="list.StartNum" @keyup.native="checkInteger(list,'StartNum')" maxlength="2"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" :gutter="35"> <el-col :span="6" :gutter="35">
<el-form-item label="结束数量"> <el-form-item label="结束数量">
<el-input class='w80' type="text" v-model="list.EndNum"></el-input> <el-input class='w80' type="text" v-model="list.EndNum" @keyup.native="checkInteger(list,'EndNum')" maxlength="2"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" :gutter="35"> <el-col :span="6" :gutter="35">
<el-form-item label="返还数量"> <el-form-item label="返还数量">
<el-input class='w80' type="text" v-model="list.DisCountNum"></el-input> <el-input class='w80' type="text" v-model="list.DisCountNum" @keyup.native="checkInteger(list,'DisCountNum')" maxlength="2"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" :gutter="35" v-if="index==0"> <el-col :span="6" :gutter="35" v-if="index==0">
...@@ -100,36 +100,7 @@ ...@@ -100,36 +100,7 @@
<el-button icon="el-icon-minus" circle @click="deleteAir(index)"> </el-button> <el-button icon="el-icon-minus" circle @click="deleteAir(index)"> </el-button>
</el-col> </el-col>
</el-row> </el-row>
<!-- <el-row :gutter="0">
<el-col :span="6">
<el-form-item label="开始数量" >
<el-input class='w80' type="text" :placeholder="$t('pub.pleaseImport')"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="结束数量" >
<el-input class='w80'type="text" :placeholder="$t('pub.pleaseImport')"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="返还数量">
<el-input class='w80' type="text" :placeholder="$t('pub.pleaseImport')"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" style='padding-top: 5px;'>
</el-col>
</el-row> -->
</div> </div>
<!--<div v-for="(item) in GetPolicy" :key="item.subCode">
<div class="common-lefttit">{{item.Content}}</div>
<span class="resource-net">
<el-input v-model="item.checked" maxlength="50" class="w300"></el-input>
</span>
</div>-->
</div> </div>
<div class="resource-imginfo"> <div class="resource-imginfo">
<div class="resourcerightTop"> <div class="resourcerightTop">
......
...@@ -187,27 +187,27 @@ ...@@ -187,27 +187,27 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="单间成本价" prop="SingleroomPrice"> <el-form-item label="单间成本价" prop="SingleroomPrice">
<el-input-number v-model="msg2.SingleroomPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg2.SingleroomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="小孩不占床成本价" prop="ChildNotBedPrice"> <el-form-item label="不占床成本价" prop="ChildNotBedPrice">
<el-input-number v-model="msg2.ChildNotBedPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg2.ChildNotBedPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="加床成本价" prop="AddBedPrice"> <el-form-item label="三人间成本价" prop="AddBedPrice">
<el-input-number v-model="msg2.AddBedPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg2.AddBedPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6" style="display:none;">
<el-form-item label="司机房成本价" prop="DriverRoomPrice"> <el-form-item label="司机房成本价" prop="DriverRoomPrice">
<el-input-number v-model="msg2.DriverRoomPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg2.DriverRoomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="导游房成本价" prop="GuideRoomPrice"> <el-form-item label="司导间成本价" prop="GuideRoomPrice">
<el-input-number v-model="msg2.GuideRoomPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg2.GuideRoomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -424,27 +424,27 @@ ...@@ -424,27 +424,27 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="单间成本价" prop="SingleroomPrice"> <el-form-item label="单间成本价" prop="SingleroomPrice">
<el-input-number v-model="msg.SingleroomPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg.SingleroomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="小孩不占床成本价" prop="ChildNotBedPrice"> <el-form-item label="不占床成本价" prop="ChildNotBedPrice">
<el-input-number v-model="msg.ChildNotBedPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg.ChildNotBedPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="加床成本价" prop="AddBedPrice"> <el-form-item label="三人间成本价" prop="AddBedPrice">
<el-input-number v-model="msg.AddBedPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg.AddBedPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6" style="display:none;">
<el-form-item label="司机房成本价" prop="DriverRoomPrice"> <el-form-item label="司机房成本价" prop="DriverRoomPrice">
<el-input-number v-model="msg.DriverRoomPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg.DriverRoomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="导游房成本价" prop="GuideRoomPrice"> <el-form-item label="司导间成本价" prop="GuideRoomPrice">
<el-input-number v-model="msg.GuideRoomPrice" :precision="2" :min="0"></el-input-number> <el-input-number v-model="msg.GuideRoomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<ul> <ul>
<li> <li>
<input v-if="IsOperation!=1" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" /> <input v-if="IsOperation!=1" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" />
<input style="display:none;" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" /> <input style="display:none;" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" />
<span v-if="IsOperation==1" style="color:red;font-size:14px;">已制单,不能在修改!</span> <span v-if="IsOperation==1" style="color:red;font-size:14px;">已制单,不能在修改!</span>
</li> </li>
</ul> </ul>
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
<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="80">城市税</th> <th width="80">城市税</th>
<th width="80">停车费</th> <th width="80">停车费</th>
...@@ -221,7 +222,7 @@ ...@@ -221,7 +222,7 @@
<!-- 返佣类型 --> <!-- 返佣类型 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6"> <td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6">
<template v-if="subItem.RebateType==1"> <template v-if="subItem.RebateType==1">
<span style="color:green">含税</span> <span style="color:green">含税</span>
</template> </template>
<template v-else> <template v-else>
<span style="color:red"> 不含税</span> <span style="color:red"> 不含税</span>
...@@ -239,6 +240,29 @@ ...@@ -239,6 +240,29 @@
:disabled="IsEditHotel==0?true:false"></el-input> % :disabled="IsEditHotel==0?true:false"></el-input> %
</template> </template>
</td> </td>
<!--返佣金额-->
<td>
<!--含税-->
<template v-if="subItem.RebateType==1">
<!--税别-->
<template v-if="subItem.TaxType==2">
{{ (childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1 + 0.08 )*( childItem.RebateRatio / 100)).toFixed(2)}}
</template>
<template v-else>
{{(childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1)*( childItem.RebateRatio / 100)).toFixed(2) }}
</template>
</template>
<!--不含税-->
<template v-else>
<!--税别-->
<template v-if="subItem.TaxType==2">
{{(childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1 + 0.08)*( childItem.RebateRatio / 100)).toFixed(2)}}
</template>
<template v-else>
{{(childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1)*( childItem.RebateRatio / 100)).toFixed(2)}}
</template>
</template>
</td>
<!-- 入汤税 --> <!-- 入汤税 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6"> <td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6">
{{subItem.InTangTax}} {{subItem.InTangTax}}
...@@ -453,8 +477,8 @@ ...@@ -453,8 +477,8 @@
IsEditHotel: 0, IsEditHotel: 0,
//0-可以操作,1-已制单,不能操作 //0-可以操作,1-已制单,不能操作
IsOperation: 1, IsOperation: 1,
LeaderName:"",//领队名称 LeaderName: "", //领队名称
GuideName:"",//导游名称 GuideName: "", //导游名称
} }
}, },
components: { components: {
...@@ -658,7 +682,7 @@ ...@@ -658,7 +682,7 @@
this.CreateByPhoto = res.data.data.CreateByPhoto; this.CreateByPhoto = res.data.data.CreateByPhoto;
this.CreateByAccount = res.data.data.CreateByAccount; this.CreateByAccount = res.data.data.CreateByAccount;
if (list != null && list.length > 0) { if (list != null && list.length > 0) {
list.forEach(item => { list.forEach((item,sIndex) => {
item.HotelOrderList.forEach(subItem => { item.HotelOrderList.forEach(subItem => {
subItem.hotelList.push({ subItem.hotelList.push({
Name: subItem.NewHotelName, Name: subItem.NewHotelName,
...@@ -678,6 +702,7 @@ ...@@ -678,6 +702,7 @@
}) })
}); });
this.list = list; this.list = list;
this.$forceUpdate(); this.$forceUpdate();
} }
} else { } else {
...@@ -693,7 +718,8 @@ ...@@ -693,7 +718,8 @@
if (obj.TaxType == 2) { if (obj.TaxType == 2) {
if (index == 4) { if (index == 4) {
if (obj.DriverGuideIsRebate == 1) { if (obj.DriverGuideIsRebate == 1) {
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 + 0.08 - item.RebateRatio / 100); totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 + 0.08 - item.RebateRatio /
100);
} else { } else {
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100); totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100);
} }
...@@ -868,8 +894,8 @@ ...@@ -868,8 +894,8 @@
}, },
}, },
mounted() { mounted() {
this.LeaderName=this.$route.query.LeaderName; this.LeaderName = this.$route.query.LeaderName;
this.GuideName=this.$route.query.GuideName; this.GuideName = this.$route.query.GuideName;
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
this.flightTotal = this.$route.query.flightTotal; this.flightTotal = this.$route.query.flightTotal;
this.GuestNum = this.$route.query.GuestNum; this.GuestNum = this.$route.query.GuestNum;
......
...@@ -132,27 +132,28 @@ ...@@ -132,27 +132,28 @@
</table> </table>
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
<tr> <tr>
<th colspan="21" class="bgwhite">酒店使用</th> <th colspan="22" class="bgwhite">酒店使用</th>
</tr> </tr>
<tr class="title"> <tr class="title">
<th width="100">使用时间</th> <th width="90">使用时间</th>
<th width="180">酒店名称</th> <th width="150">酒店名称</th>
<th width="100">占床/不占床</th> <th width="70">占床<br/>不占床</th>
<th width="80">实际用房数</th> <th width="70">实际<br/>用房数</th>
<th width="">房间类型</th> <th width="70">房间<br/>类型</th>
<th width="">房间数</th> <th width="70">房间数</th>
<th width="80">预定人数</th> <th width="60">预定<br/>人数</th>
<th width="80">免费人数</th> <th width="60">免费<br/>人数</th>
<th width="">单价/人</th> <th width="60">单价/人</th>
<th width="">金额小计</th> <th width="60">金额<br/>小计</th>
<th width="">返佣类型</th> <th width="60">返佣<br/>类型</th>
<th width="">返佣</th> <th width="60">返佣</th>
<th width="">入汤税</th> <th width="60">返佣<br/>金额</th>
<th width="">城市税</th> <th width="60">入汤税</th>
<th width="">停车费</th> <th width="60">城市税</th>
<th width="">税入/税别</th> <th width="60">停车费</th>
<th width="">总金额</th> <th width="60">税入<br/>税别</th>
<th width="">付款方式</th> <th width="60">总金额</th>
<th width="60">付款<br/>方式</th>
<th width="100">供应商</th> <th width="100">供应商</th>
<th width="100">状态</th> <th width="100">状态</th>
<th width="100">备注</th> <th width="100">备注</th>
...@@ -160,10 +161,9 @@ ...@@ -160,10 +161,9 @@
<template v-for='(outItem,outIndex) in list.HotelOrderListReport'> <template v-for='(outItem,outIndex) in list.HotelOrderListReport'>
<template v-for="(subItem,subIndex) in outItem.HotelOrderList"> <template v-for="(subItem,subIndex) in outItem.HotelOrderList">
<tr v-for="(childItem,childIndex) in subItem.OrderDetailsList"> <tr v-for="(childItem,childIndex) in subItem.OrderDetailsList">
<td v-if="childIndex==0&&subIndex==0" :rowspan="6*outItem.HotelOrderList.length">{{outItem.UseTimeStr}} <td v-if="childIndex==0&&subIndex==0" :rowspan="6*outItem.HotelOrderList.length" style="white-space:nowrap; ">{{outItem.UseTimeStr}}
</td> </td>
<td v-if="childIndex==0" :rowspan="6">{{subItem.HotelName}} <td v-if="childIndex==0" :rowspan="6" style="text-align:left; ">{{subItem.HotelName}}
<p class="cursorpointer" style="margin-top:5px;color: blue;"> <p class="cursorpointer" style="margin-top:5px;color: blue;">
<a v-if="subItem.ContractUrl" target="_blank" :href="subItem.ContractUrl">手配书</a> <a v-if="subItem.ContractUrl" target="_blank" :href="subItem.ContractUrl">手配书</a>
</p> </p>
...@@ -176,8 +176,8 @@ ...@@ -176,8 +176,8 @@
</td> </td>
<td> <td>
<span v-if="childItem.HouseType === 1">单间</span> <span v-if="childItem.HouseType === 1">单间</span>
<span v-if="childItem.HouseType === 2">标准双人</span> <span v-if="childItem.HouseType === 2">标准间</span>
<span v-if="childItem.HouseType === 3">大床</span> <span v-if="childItem.HouseType === 3">大床</span>
<span v-if="childItem.HouseType === 4">三人间</span> <span v-if="childItem.HouseType === 4">三人间</span>
<span v-if="childItem.HouseType === 5"> <span v-if="childItem.HouseType === 5">
司导间 司导间
...@@ -203,13 +203,13 @@ ...@@ -203,13 +203,13 @@
<td> <td>
{{childItem.HotelDiscount}} {{childItem.HotelDiscount}}
</td> </td>
<td> <td style="white-space:nowrap; ">
<p class="cursorpointer text-decoration" <p class="cursorpointer text-decoration"
@click="goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'roomReservationsDetails')"> @click="goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'roomReservationsDetails')">
{{subItem.PayStyle === 1 ? moneyFormat(childItem.UnitPrice) : 0}} {{subItem.PayStyle === 1 ? moneyFormat(childItem.UnitPrice) : 0}}
</p> </p>
</td> </td>
<td> <td style="white-space:nowrap; ">
{{subItem.PayStyle === 1 ? moneyFormat(childItem.UnitPrice*(childItem.BookNum-childItem.HotelDiscount)) : 0}} {{subItem.PayStyle === 1 ? moneyFormat(childItem.UnitPrice*(childItem.BookNum-childItem.HotelDiscount)) : 0}}
</td> </td>
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="6">
...@@ -223,6 +223,28 @@ ...@@ -223,6 +223,28 @@
<td> <td>
{{childItem.RebateRatio}} % {{childItem.RebateRatio}} %
</td> </td>
<td style="white-space:nowrap; ">
<!--含税-->
<template v-if="subItem.RebateType==1">
<!--税别-->
<template v-if="subItem.TaxType==2">
{{ (childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1 + 0.08 )*( childItem.RebateRatio / 100)).toFixed(2)}}
</template>
<template v-else>
{{(childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1)*( childItem.RebateRatio / 100)).toFixed(2) }}
</template>
</template>
<!--不含税-->
<template v-else>
<!--税别-->
<template v-if="subItem.TaxType==2">
{{(childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1 + 0.08)*( childItem.RebateRatio / 100)).toFixed(2)}}
</template>
<template v-else>
{{(childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1)*( childItem.RebateRatio / 100)).toFixed(2)}}
</template>
</template>
</td>
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="6">
{{subItem.InTangTax}} {{subItem.InTangTax}}
</td> </td>
...@@ -240,7 +262,7 @@ ...@@ -240,7 +262,7 @@
税别 税别
</template> </template>
</td> </td>
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="6" style="white-space:nowrap; ">
{{hotelTotalPrice(subItem)}} {{hotelTotalPrice(subItem)}}
</td> </td>
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="6">
...@@ -276,7 +298,7 @@ ...@@ -276,7 +298,7 @@
</template> </template>
<tr v-if="TotalNav.reimburseTotalPrice"> <tr v-if="TotalNav.reimburseTotalPrice">
<td>总金额</td> <td>总金额</td>
<td colspan="20"> <td colspan="21">
{{moneyFormat(TotalNav.reimburseTotalPrice.ExpendTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.ExpendTotalPrice)}}
</td> </td>
</tr> </tr>
...@@ -834,7 +856,6 @@ ...@@ -834,7 +856,6 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.list = res.data.data; this.list = res.data.data;
console.log("this.list", this.list);
this.UseCount = this.list.UseCount; this.UseCount = this.list.UseCount;
if (this.list.OtherOrderReportList.OtherList && this.list.OtherOrderReportList.OtherList.length > 0) { if (this.list.OtherOrderReportList.OtherList && this.list.OtherOrderReportList.OtherList.length > 0) {
this.list.OtherOrderReportList.OtherList.forEach(x => { this.list.OtherOrderReportList.OtherList.forEach(x => {
......
...@@ -30,116 +30,112 @@ ...@@ -30,116 +30,112 @@
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle"> <div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle">
<table border="0" cellspacing="1" cellpadding="0" class="admissionStatisticsTalbe" v-loading='loading'> <table border="0" cellspacing="1" cellpadding="0" class="admissionStatisticsTalbe" v-loading='loading'>
<tr> <tr>
<th width="50">序号</th> <th width="120">序号</th>
<th width="80">出发地</th> <th width="100">出发地</th>
<th width="80">航班时间</th> <th width="120">航班时间</th>
<th width="80">公司团号</th> <th width="140">公司团号</th>
<th width="120">机位总数/(Y/E/F)</th> <th width="120">机位总数/(Y/E/F)</th>
<th v-for='item in thLengthTitle'>{{item}}</th> <th width="120">日期</th>
<th>备注</th> <th width="250">景点</th>
<th class="w80">操作</th> <th width="100">操作</th>
</tr> </tr>
<tbody v-for="(outItem,outindex) in list" :class="{admissionStatisticsSplitTrCss:outindex%2!=0}"> <template v-for="(outItem,outindex) in DataList">
<template v-for="(item,index) in outItem.StaticsReportList"> <tbody :class="{admissionStatisticsSplitTrCss:outindex%2!=0}">
<tr> <template v-for="(item,index) in outItem.StaticsReportList">
<td :rowspan="2*outItem.StaticsReportList.length" v-if='index==0'> <template v-for="(subItem,subIndex) in item.CommonReport.ScenicList">
<div style="max-width: 100px; min-width: 50px; ">{{outindex+1}}</div> <template v-for="(thirdItem,thirdIndex) in subItem.ScenicStatisticsList">
<div v-if='outItem.StaticsReportList.length>0' class="w100">{{outItem.NewCombinationNum}}</div> <tr>
</td> <td :rowspan="outItem.rootRowspan" v-if='index==0&&subIndex==0&&thirdIndex==0'>
<td> {{outItem.NewCombinationNum}}
<div class="w80"> </td>
{{item.StartCityNames}} <td :rowspan="item.itemRowSpan" v-if='subIndex==0&&thirdIndex==0'>
</div> {{item.StartCityNames}}
</td> </td>
<td> <td :rowspan="item.itemRowSpan" v-if='subIndex==0&&thirdIndex==0'>
<div class="w80"> {{item.FlightDate}}
{{item.FlightDate}} <el-popover popper-class="admissionStatistics_tripDetails" width="550" trigger="click">
<el-popover popper-class="admissionStatistics_tripDetails" width="550" trigger="click"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr class="_color_666" style="text-align:center;">
<tr class="_color_666" style="text-align:center;"> <th width="60">{{$t('Airticket.Air_segment')}}</th>
<th width="60">{{$t('Airticket.Air_segment')}}</th> <th width="80">{{$t('system.query_flightNum')}}</th>
<th width="80">{{$t('system.query_flightNum')}}</th> <th width="150">起飞时间</th>
<th width="150">起飞时间</th> <th width="150">到达时间</th>
<th width="150">到达时间</th> <th width="100">经停城市</th>
<th width="100">经停城市</th> </tr>
</tr> <tr v-for="(ds,din) in item.FlightList" :key="din" style="text-align:center;">
<tr v-for="(ds,din) in item.FlightList" :key="din" style="text-align:center;"> <td class="_d_name _color_666">
<td class="_d_name _color_666"> <span v-if="din==0">{{$t('Airticket.Air_go')}}</span>
<span v-if="din==0">{{$t('Airticket.Air_go')}}</span> <span v-else-if="din==item.FlightList.length-1">{{$t('Airticket.Air_returnTrip')}}</span>
<span v-else-if="din==item.FlightList.length-1">{{$t('Airticket.Air_returnTrip')}}</span> <span
<span v-else-if="din>0 && din!=item.FlightList.length-1">{{$t('Airticket.Air_transit')}}</span>
v-else-if="din>0 && din!=item.FlightList.length-1">{{$t('Airticket.Air_transit')}}</span> </td>
</td> <td>
<td> <div>{{ds.Flight_number}}</div>
<div>{{ds.Flight_number}}</div> <div style="margin-top:5px;">{{ds.AlName}}</div>
<div style="margin-top:5px;">{{ds.AlName}}</div> </td>
</td> <td>
<td> <div>{{ds.FlightDate}} {{ds.Departure_time}}</div>
<div>{{ds.FlightDate}} {{ds.Departure_time}}</div> <div style="margin-top:5px;">{{ds.dName}}</div>
<div style="margin-top:5px;">{{ds.dName}}</div> </td>
</td> <td>
<td> <div>{{ds.FlightArrivalTime}} {{ds.Arrival_time}}</div>
<div>{{ds.FlightArrivalTime}} {{ds.Arrival_time}}</div> <div style="margin-top:5px;">{{ds.aName}}</div>
<div style="margin-top:5px;">{{ds.aName}}</div> </td>
</td> <td>{{ds.StopoverName}}</td>
<td>{{ds.StopoverName}}</td> </tr>
</tr> </table>
</table> <el-button slot="reference" class="normalBtn mt5"
<el-button slot="reference" class="normalBtn mt5" style='height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;'>详情
style='height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;'>详情</el-button> </el-button>
</el-popover> </el-popover>
</div> </td>
</td> <td :rowspan="item.itemRowSpan" v-if='subIndex==0&&thirdIndex==0'>
<td> <div class="w120 link">
<div class="w120 link"> <p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.TCNUMS}}({{item.TCID}})</p>
<p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.TCNUMS}}</p> </div>
</div> </td>
</td> <td :rowspan="item.itemRowSpan" v-if='subIndex==0&&thirdIndex==0'>
<td> <div class="w120 link">
<div class="w120 link"> <p @click="goUrlT('RegistrationList',item.TCIDS,'报名清单')">
<p @click="goUrlT('RegistrationList',item.TCIDS,'报名清单')"> {{item.TotalSeat}}/{{item.CommonReport.HouseStatistics.RealityYSeatNum}}/{{item.CommonReport.HouseStatistics.RealityESeatNum}}/{{item.CommonReport.HouseStatistics.RealityFSeatNum}}
{{item.TotalSeat}}/{{item.CommonReport.HouseStatistics.RealityYSeatNum}}/{{item.CommonReport.HouseStatistics.RealityESeatNum}}/{{item.CommonReport.HouseStatistics.RealityFSeatNum}} </p>
</p> </div>
</div> </td>
</td> <td :rowspan="subItem.ScenicStatisticsList.length" v-if='thirdIndex==0'>
<td v-for="x in item.CommonReport.ScenicList" style="vertical-align: top;"> {{thirdItem.UseTimeStr}}
<div style="width: 100%;"> </td>
<p class="pDateStyle" v-if="x.UseTimeStr">{{x.UseTimeStr}}</p> <td style="text-align:left;padding-left:3px;">
<p @click="goUrlR('scenicSpotList',s.ID,'景区列表')" class="pMsgStyle phoverStype" {{thirdItem.ScenicName}}
v-for="s in x.ScenicStatisticsList">{{s.ScenicName}}</p> </td>
</div> <td :rowspan="item.itemRowSpan" v-if='subIndex==0&&thirdIndex==0'>
</td> <div class="link">
<td> <div class="w80">
<div class="w200"> <p @click="goUrl('admissionStatisticsDetails',item,outItem,'门票详情')">详情</p>
{{item.Remarks}} </div>
</div> </div>
</td> </td>
<td> </tr>
<div class="link"> <tr
<div class="w80"> v-if="subIndex== item.CommonReport.ScenicList.length-1 && thirdIndex==subItem.ScenicStatisticsList.length-1">
<p @click="goUrl('admissionStatisticsDetails',item,outItem,'门票详情')">详情</p> <td colspan="7" style="text-align:left; padding-left:5px">
</div> <div class="link">
</div> <p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.Titles}}</p>
</td> <div v-show="outItem.StaticsReportList[0].DMCRemark!=''" class="colorE95252">
</tr> 地接备注:{{outItem.StaticsReportList[0].DMCRemark}}</div>
<tr> </div>
<td :colspan="colspanTotal" style="text-align: left!important;padding-left: 20px;"> </td>
<div class="link"> </tr>
<p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.Titles}}</p> </template>
<div v-show="outItem.StaticsReportList[0].DMCRemark!=''" class="colorE95252"> </template>
地接备注:{{outItem.StaticsReportList[0].DMCRemark}}</div> </template>
</div> </tbody>
</td> </template>
</tr>
</template>
</tbody>
</table> </table>
</div> </div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total></el-pagination> layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total></el-pagination>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
...@@ -158,15 +154,10 @@ ...@@ -158,15 +154,10 @@
}, },
LineList: [], LineList: [],
LineTeamList: [], LineTeamList: [],
thLengthTitle: [], DataList: [],
list: [],
colspanTotal: 0,
} }
}, },
methods: { methods: {
stringToArr(str) {
return str.split(',')
},
getLineList() { getLineList() {
this.apipost("line_post_GetAllList", {}, res => { this.apipost("line_post_GetAllList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -192,16 +183,6 @@ ...@@ -192,16 +183,6 @@
} }
); );
}, },
goUrlR(path, obj, title) {
this.$router.push({
name: path,
query: {
"ID": obj,
blank: 'y',
tab: title
}
})
},
goUrlT(path, obj, title) { goUrlT(path, obj, title) {
this.$router.push({ this.$router.push({
name: path, name: path,
...@@ -212,7 +193,7 @@ ...@@ -212,7 +193,7 @@
} }
}) })
}, },
goUrl(path, obj,outItem, title) { goUrl(path, obj, outItem, title) {
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -235,31 +216,28 @@ ...@@ -235,31 +216,28 @@
this.currentPage = 1; this.currentPage = 1;
}, },
getList() { getList() {
this.loading = true this.loading = true;
this.apipost('dmcstatistics_post_GetUniteCombinationNumService', this.msg, res => { this.apipost('dmcstatistics_post_GetUniteCombinationNumService', this.msg, res => {
this.loading = false this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count this.total = res.data.data.count;
this.list = res.data.data.pageData.data; var tempData = res.data.data.pageData.data;
this.thLengthTitle = [] tempData.forEach(outItem => {
this.colspanTotal = res.data.data.pageData.columnsCount + 6 var rootRowspan = 0; //合团跨行
for (let i = 1; i <= res.data.data.pageData.columnsCount; i++) {
this.thLengthTitle.push('第' + i + '天')
}
this.list.forEach(outItem => {
outItem.StaticsReportList.forEach(item => { outItem.StaticsReportList.forEach(item => {
if (item.CommonReport.ScenicList.length < res.data.data.pageData.columnsCount) { var itemRowSpan = 0; //景点跨行
let _cha = res.data.data.pageData.columnsCount - item.CommonReport.ScenicList.length item.CommonReport.ScenicList.forEach(thirdItem => {
let _chaArr = new Array() thirdItem.ScenicStatisticsList.forEach(lastItem => {
for (let i = 0; i < _cha; i++) { rootRowspan++;
_chaArr.push({ itemRowSpan++;
'HotelName': '' });
}) });
} item.itemRowSpan = itemRowSpan;
item.CommonReport.ScenicList = item.CommonReport.ScenicList.concat(_chaArr) });
} rootRowspan += outItem.StaticsReportList.length;
}) outItem.rootRowspan = rootRowspan;
}) });
this.DataList = tempData;
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
...@@ -278,6 +256,7 @@ ...@@ -278,6 +256,7 @@
this.getList() this.getList()
}, },
} }
</script> </script>
<style> <style>
...@@ -305,39 +284,10 @@ ...@@ -305,39 +284,10 @@
.admissionStatisticsTalbe tr td { .admissionStatisticsTalbe tr td {
font-size: 12px; font-size: 12px;
} }
.admissionStatisticsTalbe tr td .pHouseStyle {
border-bottom: 1px solid #ccc;
height: 20px;
line-height: 20px;
}
.admissionStatisticsTalbe tr td .pHouseStyle:last-child {
border-bottom: none;
}
.admissionStatisticsTalbe tr td .pDateStyle {
border-bottom: 1px solid #ccc;
height: 20px;
line-height: 20px;
margin-top: 0;
}
.admissionStatisticsTalbe tr td .pMsgStyle {
padding: 0 10px;
line-height: 20px;
}
.admissionStatisticsTalbe tr td .link p:hover { .admissionStatisticsTalbe tr td .link p:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.admissionStatisticsTalbe tr td .phoverStype:hover {
text-decoration: underline;
cursor: pointer;
}
.admissionStatistics_tripDetails { .admissionStatistics_tripDetails {
padding: 0; padding: 0;
box-shadow: 0px 1px 3px 0px #dedede; box-shadow: 0px 1px 3px 0px #dedede;
......
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