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
c40da16b
Commit
c40da16b
authored
May 31, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面提交
parent
57716961
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
210 additions
and
148 deletions
+210
-148
BusInfo.vue
src/components/busManagement/BusInfo.vue
+181
-119
busStatistics.vue
src/components/busManagement/busStatistics.vue
+29
-29
No files found.
src/components/busManagement/BusInfo.vue
View file @
c40da16b
This diff is collapsed.
Click to expand it.
src/components/busManagement/busStatistics.vue
View file @
c40da16b
...
...
@@ -138,23 +138,22 @@
<div
class=
"w80"
>
{{
item
.
GuideName
}}
</div>
</td>
<td>
<div
class=
"w80"
>
{{
item
.
CommonReport
.
BusList
[
0
].
MainBusTypeStr
}}
</div>
<div
class=
"w80"
>
{{
item
.
CommonReport
.
BusPlanListReport
[
0
].
BusPlanOrderList
[
0
].
MainBusTypeStr
}}
</div>
</td>
<td
v-for=
"(x,ww) in item.CommonReport.Bus
Lis
t"
style=
"vertical-align: top;"
>
<td
v-for=
"(x,ww) in item.CommonReport.Bus
PlanListRepor
t"
style=
"vertical-align: top;"
>
<div
class=
"w100"
>
<p
class=
"pDateStyle"
>
{{
x
.
PlanDateStr
}}
</p>
<template
v-for=
"(childItem,childIndex) in x.BusPlanOrderList"
>
<p
class=
"pDateStyle"
v-if=
"childIndex==0"
>
{{
childItem
.
PlanDateStr
}}
</p>
<p
class=
"pDateStyle"
>
<template
v-for=
"(childItem,childIndex) in x.DetailList"
>
{{
(
childItem
.
AirportPickUpStr
!=
""
?
childItem
.
AirportPickUpStr
:
""
)
+
(
childItem
.
UseTypeStr
!=
""
?
childItem
.
UseTypeStr
:
""
)
}}
<template
v-if=
"x.DetailList.length>1 && x.DetailList.length-1!=childIndex"
><br
/></
template
>
</template>
<
template
v-if=
"x.OrderState>-1"
>
<br
/>
<span
style=
"color: #4BCA81;"
v-if=
"(x.DetailList[0].AirportPickUpStr!='' ||x.DetailList[0].UseTypeStr!='')"
>
√
</span>
{{
(
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
/>
</
template
>
</p>
</template>
</div>
</td>
<td
v-for=
"is in item.isCha"
></td>
...
...
@@ -166,12 +165,12 @@
</td>
<td>
<div
class=
"w150"
>
{{GetTotalPrice(item.CommonReport.Bus
Lis
t,item.CommonReport.HouseStatistics.RealityNum)}}
{{GetTotalPrice(item.CommonReport.Bus
PlanListRepor
t,item.CommonReport.HouseStatistics.RealityNum)}}
</div>
</td>
<td>
<div
class=
"w100"
>
{{GetPeiChe(item.CommonReport.Bus
Lis
t)}}
{{GetPeiChe(item.CommonReport.Bus
PlanListRepor
t)}}
</div>
</td>
<td
:rowspan=
"2*outItem.StaticsReportList.length"
v-if=
'index==0'
>
...
...
@@ -242,10 +241,12 @@
GetTotalPrice
(
obj
)
{
//车费总价
let
totalPrice
=
0
;
obj
.
forEach
(
busInfo
=>
{
if
(
busInfo
.
CostPrice
!=
undefined
)
{
totalPrice
+=
busInfo
.
CostPrice
;
busInfo
.
BusPlanOrderList
.
forEach
(
subItem
=>
{
if
(
subItem
.
CostPrice
!=
undefined
)
{
totalPrice
+=
subItem
.
CostPrice
;
}
});
});
return
totalPrice
;
},
//获取系列列表
...
...
@@ -271,7 +272,7 @@
let
DayNum
=
0
;
obj
.
forEach
((
busInfo
,
index
)
=>
{
if
(
index
==
0
)
{
busInfo
.
Detail
List
.
forEach
(
subItem
=>
{
busInfo
.
BusPlanOrder
List
.
forEach
(
subItem
=>
{
if
(
subItem
.
AirportPickUpStr
!=
""
)
{
jieji
+=
subItem
.
AirportPickUpStr
+
","
;
}
else
{
...
...
@@ -281,7 +282,7 @@
});
}
else
if
(
index
==
(
obj
.
length
-
1
))
{
busInfo
.
Detail
List
.
forEach
(
subItem
=>
{
busInfo
.
BusPlanOrder
List
.
forEach
(
subItem
=>
{
if
(
subItem
.
AirportPickUpStr
!=
""
)
{
songji
+=
subItem
.
AirportPickUpStr
+
","
;
}
else
{
...
...
@@ -289,10 +290,8 @@
}
});
}
else
{
if
(
busInfo
.
OrderState
>
-
1
)
{
DayNum
+=
1
;
}
}
});
if
(
parseInt
(
DayNum
)
>
0
)
{
allStr
+=
jieji
.
substring
(
0
,
jieji
.
lastIndexOf
(
','
))
+
"+"
+
DayNum
+
"天"
...
...
@@ -379,7 +378,7 @@
},
getList
()
{
this
.
loading
=
true
this
.
apipost
(
'bus_Get_GetBusUniteCombinationNumService'
,
this
.
msg
,
res
=>
{
this
.
apipost
(
'bus_Get_GetBusUniteCombinationNumService
_V2
'
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
...
...
@@ -391,8 +390,9 @@
}
this
.
DataList
.
forEach
(
outItem
=>
{
outItem
.
StaticsReportList
.
forEach
(
item
=>
{
if
(
item
.
CommonReport
.
BusList
.
length
<
res
.
data
.
data
.
pageData
.
columnsCount
)
{
item
.
isCha
=
res
.
data
.
data
.
pageData
.
columnsCount
-
item
.
CommonReport
.
BusList
.
length
;
if
(
item
.
CommonReport
.
BusPlanListReport
.
length
<
res
.
data
.
data
.
pageData
.
data
.
length
)
{
item
.
isCha
=
res
.
data
.
data
.
pageData
.
columnsCount
-
item
.
CommonReport
.
BusPlanListReport
.
length
;
}
else
{
item
.
isCha
=
0
;;
}
...
...
@@ -400,7 +400,7 @@
})
this
.
$forceUpdate
();
}
else
{
this
.
$message
.
e
rror
(
res
.
data
.
message
);
this
.
E
rror
(
res
.
data
.
message
);
}
},
err
=>
{})
},
...
...
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