Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
896328ad
Commit
896328ad
authored
Jul 10, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆统计Bug修改
parent
9eb5e3f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
37 deletions
+46
-37
busStatistics.vue
src/components/busManagement/busStatistics.vue
+46
-37
No files found.
src/components/busManagement/busStatistics.vue
View file @
896328ad
...
...
@@ -76,10 +76,11 @@
</div>
</td>
<td>
<el-popover
width=
"750"
trigger=
"click"
popper-class=
"Bus_HotelPop"
>
<commonHotelInfo
:HotelObj=
"item.CommonReport.PriceHotelResult"
:showHotelObj=
"showHotelObj"
></commonHotelInfo>
<div
slot=
"reference"
class=
"w80"
style=
"cursor:pointer;text-decoration:underline;"
>
酒店信息
</div>
</el-popover>
<el-popover
width=
"750"
trigger=
"click"
popper-class=
"Bus_HotelPop"
>
<commonHotelInfo
:HotelObj=
"item.CommonReport.PriceHotelResult"
:showHotelObj=
"showHotelObj"
>
</commonHotelInfo>
<div
slot=
"reference"
class=
"w80"
style=
"cursor:pointer;text-decoration:underline;"
>
酒店信息
</div>
</el-popover>
</td>
<td>
<div
class=
"w120"
>
...
...
@@ -145,19 +146,22 @@
<div
class=
"w80"
>
{{
item
.
GuideName
}}
</div>
</td>
<td>
<div
class=
"w80"
>
{{
item
.
CommonReport
.
BusPlanListReport
[
0
].
BusPlanOrderList
[
0
].
MainBusTypeStr
}}
</div>
<div
class=
"w80"
>
<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
v-for=
"(x,ww) in item.CommonReport.BusPlanListReport"
style=
"vertical-align: top;"
>
<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"
>
{{
(
childItem
.
AirportPickUpStr
!=
""
?
childItem
.
AirportPickUpStr
:
""
)
}}
<span
style=
"color: #4BCA81;"
v-if=
"(childItem.AirportPickUpStr!='')"
>
√
</span>
<span
style=
"color: #E95252;"
v-else
>
X
</span>
<template
v-if=
"x.BusPlanOrderList.length>1 && x.BusPlanOrderList.length-1!=childIndex"
>
<br
/>
<br
/>
</
template
>
</p>
</template>
...
...
@@ -232,10 +236,10 @@
colspanTotal
:
0
,
isCha
:
0
,
boxHeight
:
0
,
showHotelObj
:{
showPrice
:
true
,
showPay
:
true
,
showZhan
:
true
showHotelObj
:
{
showPrice
:
true
,
showPay
:
true
,
showZhan
:
true
}
}
},
...
...
@@ -255,11 +259,13 @@
GetTotalPrice
(
obj
)
{
//车费总价
let
totalPrice
=
0
;
obj
.
forEach
(
busInfo
=>
{
busInfo
.
BusPlanOrderList
.
forEach
(
subItem
=>
{
if
(
subItem
.
CostPrice
!=
undefined
)
{
totalPrice
+=
subItem
.
CostPrice
;
}
});
if
(
busInfo
.
BusPlanOrderList
)
{
busInfo
.
BusPlanOrderList
.
forEach
(
subItem
=>
{
if
(
subItem
.
CostPrice
!=
undefined
)
{
totalPrice
+=
subItem
.
CostPrice
;
}
});
}
});
return
totalPrice
;
},
...
...
@@ -286,23 +292,27 @@
let
DayNum
=
0
;
obj
.
forEach
((
busInfo
,
index
)
=>
{
if
(
index
==
0
)
{
busInfo
.
BusPlanOrderList
.
forEach
(
subItem
=>
{
if
(
subItem
.
AirportPickUpStr
!=
""
)
{
jieji
+=
subItem
.
AirportPickUpStr
+
","
;
}
else
{
jieji
+=
"接机,"
;
}
});
if
(
busInfo
.
BusPlanOrderList
)
{
busInfo
.
BusPlanOrderList
.
forEach
(
subItem
=>
{
if
(
subItem
.
AirportPickUpStr
!=
""
)
{
jieji
+=
subItem
.
AirportPickUpStr
+
","
;
}
else
{
jieji
+=
"接机,"
;
}
});
}
}
else
if
(
index
==
(
obj
.
length
-
1
))
{
busInfo
.
BusPlanOrderList
.
forEach
(
subItem
=>
{
if
(
subItem
.
AirportPickUpStr
!=
""
)
{
songji
+=
subItem
.
AirportPickUpStr
+
","
;
}
else
{
songji
+=
"送机,"
;
}
});
if
(
busInfo
.
BusPlanOrderList
)
{
busInfo
.
BusPlanOrderList
.
forEach
(
subItem
=>
{
if
(
subItem
.
AirportPickUpStr
!=
""
)
{
songji
+=
subItem
.
AirportPickUpStr
+
","
;
}
else
{
songji
+=
"送机,"
;
}
});
}
}
else
{
DayNum
+=
1
;
}
...
...
@@ -397,7 +407,6 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
DataList
=
res
.
data
.
data
.
pageData
.
data
;
console
.
log
(
"this.datalist"
,
this
.
DataList
);
this
.
thLengthTitle
=
[];
this
.
colspanTotal
=
res
.
data
.
data
.
pageData
.
columnsCount
+
13
;
for
(
let
i
=
1
;
i
<=
res
.
data
.
data
.
pageData
.
columnsCount
;
i
++
)
{
...
...
@@ -429,13 +438,11 @@
"-"
+
myDate
.
getDate
();
this
.
msg
.
StartDate
=
nowDate
;
//this.msg.StartDate = '2019-08-12';
let
width
=
window
.
innerWidth
-
50
;
let
height
=
window
.
innerHeight
-
65
-
210
;
this
.
boxHeight
=
height
;
this
.
offsetwidth
=
width
;
// this.msg.CombinationNum = 'JVS0422OTC-NHA';
// this.msg.StartDate = "2019-04-20";
this
.
getList
();
this
.
getLineTeamList
();
},
...
...
@@ -538,8 +545,10 @@
.busStatistics_tripDetails
table
tr
._color_666
th
{
padding
:
9px
15px
;
}
.Bus_HotelPop
{
.Bus_HotelPop
{
overflow
:
auto
;
max-height
:
350px
;
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment