Commit 896328ad authored by 黄奎's avatar 黄奎

车辆统计Bug修改

parent 9eb5e3f2
...@@ -76,10 +76,11 @@ ...@@ -76,10 +76,11 @@
</div> </div>
</td> </td>
<td> <td>
<el-popover width="750" trigger="click" popper-class="Bus_HotelPop"> <el-popover width="750" trigger="click" popper-class="Bus_HotelPop">
<commonHotelInfo :HotelObj="item.CommonReport.PriceHotelResult" :showHotelObj="showHotelObj"></commonHotelInfo> <commonHotelInfo :HotelObj="item.CommonReport.PriceHotelResult" :showHotelObj="showHotelObj">
<div slot="reference" class="w80" style="cursor:pointer;text-decoration:underline;">酒店信息</div> </commonHotelInfo>
</el-popover> <div slot="reference" class="w80" style="cursor:pointer;text-decoration:underline;">酒店信息</div>
</el-popover>
</td> </td>
<td> <td>
<div class="w120"> <div class="w120">
...@@ -145,19 +146,22 @@ ...@@ -145,19 +146,22 @@
<div class="w80">{{item.GuideName}}</div> <div class="w80">{{item.GuideName}}</div>
</td> </td>
<td> <td>
<div class="w80">
<div class="w80">{{item.CommonReport.BusPlanListReport[0].BusPlanOrderList[0].MainBusTypeStr}} </div> <template v-if="item.CommonReport&&item.CommonReport.BusPlanListReport&&item.CommonReport.BusPlanListReport.length>0&&item.CommonReport.BusPlanListReport[0].BusPlanOrderList&&item.CommonReport.BusPlanListReport[0].BusPlanOrderList[0]">
{{item.CommonReport.BusPlanListReport[0].BusPlanOrderList[0].MainBusTypeStr}}
</template>
</div>
</td> </td>
<td v-for="(x,ww) in item.CommonReport.BusPlanListReport" style="vertical-align: top;"> <td v-for="(x,ww) in item.CommonReport.BusPlanListReport" style="vertical-align: top;">
<div class="w100"> <div class="w100">
<template v-for="(childItem,childIndex) in x.BusPlanOrderList"> <template v-if="x.BusPlanOrderList" v-for="(childItem,childIndex) in x.BusPlanOrderList">
<p class="pDateStyle" v-if="childIndex==0"> {{childItem.PlanDateStr}}</p> <p class="pDateStyle" v-if="childIndex==0"> {{childItem.PlanDateStr}}</p>
<p class="pDateStyle"> <p class="pDateStyle">
{{(childItem.AirportPickUpStr!=""?childItem.AirportPickUpStr:"") }} {{(childItem.AirportPickUpStr!=""?childItem.AirportPickUpStr:"") }}
<span style="color: #4BCA81;" v-if="(childItem.AirportPickUpStr!='')"></span> <span style="color: #4BCA81;" v-if="(childItem.AirportPickUpStr!='')"></span>
<span style="color: #E95252;" v-else>X</span> <span style="color: #E95252;" v-else>X</span>
<template v-if="x.BusPlanOrderList.length>1 && x.BusPlanOrderList.length-1!=childIndex"> <template v-if="x.BusPlanOrderList.length>1 && x.BusPlanOrderList.length-1!=childIndex">
<br /> <br />
</template> </template>
</p> </p>
</template> </template>
...@@ -232,10 +236,10 @@ ...@@ -232,10 +236,10 @@
colspanTotal: 0, colspanTotal: 0,
isCha: 0, isCha: 0,
boxHeight: 0, boxHeight: 0,
showHotelObj:{ showHotelObj: {
showPrice:true, showPrice: true,
showPay:true, showPay: true,
showZhan:true showZhan: true
} }
} }
}, },
...@@ -255,11 +259,13 @@ ...@@ -255,11 +259,13 @@
GetTotalPrice(obj) { //车费总价 GetTotalPrice(obj) { //车费总价
let totalPrice = 0; let totalPrice = 0;
obj.forEach(busInfo => { obj.forEach(busInfo => {
busInfo.BusPlanOrderList.forEach(subItem => { if (busInfo.BusPlanOrderList) {
if (subItem.CostPrice != undefined) { busInfo.BusPlanOrderList.forEach(subItem => {
totalPrice += subItem.CostPrice; if (subItem.CostPrice != undefined) {
} totalPrice += subItem.CostPrice;
}); }
});
}
}); });
return totalPrice; return totalPrice;
}, },
...@@ -286,23 +292,27 @@ ...@@ -286,23 +292,27 @@
let DayNum = 0; let DayNum = 0;
obj.forEach((busInfo, index) => { obj.forEach((busInfo, index) => {
if (index == 0) { if (index == 0) {
busInfo.BusPlanOrderList.forEach(subItem => { if (busInfo.BusPlanOrderList) {
if (subItem.AirportPickUpStr != "") { busInfo.BusPlanOrderList.forEach(subItem => {
jieji += subItem.AirportPickUpStr + ","; if (subItem.AirportPickUpStr != "") {
} else { jieji += subItem.AirportPickUpStr + ",";
jieji += "接机,"; } else {
} jieji += "接机,";
}
});
});
}
} else if (index == (obj.length - 1)) { } else if (index == (obj.length - 1)) {
busInfo.BusPlanOrderList.forEach(subItem => { if (busInfo.BusPlanOrderList) {
if (subItem.AirportPickUpStr != "") { busInfo.BusPlanOrderList.forEach(subItem => {
songji += subItem.AirportPickUpStr + ","; if (subItem.AirportPickUpStr != "") {
} else { songji += subItem.AirportPickUpStr + ",";
songji += "送机,"; } else {
} songji += "送机,";
}); }
});
}
} else { } else {
DayNum += 1; DayNum += 1;
} }
...@@ -397,7 +407,6 @@ ...@@ -397,7 +407,6 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
this.DataList = res.data.data.pageData.data; this.DataList = res.data.data.pageData.data;
console.log("this.datalist",this.DataList);
this.thLengthTitle = []; this.thLengthTitle = [];
this.colspanTotal = res.data.data.pageData.columnsCount + 13; this.colspanTotal = res.data.data.pageData.columnsCount + 13;
for (let i = 1; i <= res.data.data.pageData.columnsCount; i++) { for (let i = 1; i <= res.data.data.pageData.columnsCount; i++) {
...@@ -429,13 +438,11 @@ ...@@ -429,13 +438,11 @@
"-" + "-" +
myDate.getDate(); myDate.getDate();
this.msg.StartDate = nowDate; this.msg.StartDate = nowDate;
//this.msg.StartDate = '2019-08-12';
let width = window.innerWidth - 50; let width = window.innerWidth - 50;
let height = window.innerHeight - 65 - 210; let height = window.innerHeight - 65 - 210;
this.boxHeight = height; this.boxHeight = height;
this.offsetwidth = width; this.offsetwidth = width;
// this.msg.CombinationNum = 'JVS0422OTC-NHA';
// this.msg.StartDate = "2019-04-20";
this.getList(); this.getList();
this.getLineTeamList(); this.getLineTeamList();
}, },
...@@ -538,8 +545,10 @@ ...@@ -538,8 +545,10 @@
.busStatistics_tripDetails table tr._color_666 th { .busStatistics_tripDetails table tr._color_666 th {
padding: 9px 15px; padding: 9px 15px;
} }
.Bus_HotelPop{
.Bus_HotelPop {
overflow: auto; overflow: auto;
max-height: 350px; max-height: 350px;
} }
</style> </style>
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