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
a2f63691
Commit
a2f63691
authored
Jul 15, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面优化
parent
4f3c088d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
144 additions
and
141 deletions
+144
-141
bookDinnerStatistics.vue
src/components/Restaurant/bookDinnerStatistics.vue
+142
-139
admissionStatistics.vue
src/components/scenicSpot/admissionStatistics.vue
+2
-2
No files found.
src/components/Restaurant/bookDinnerStatistics.vue
View file @
a2f63691
...
...
@@ -27,126 +27,132 @@
</li>
</ul>
</div>
<div
style=
"width: 100%; overflow-x: auto;padding-bottom: 10px; "
class=
"ownScrollbarStyle"
:style=
"
{height: boxHeight + 'px'}">
<div
style=
"width: 100%; overflow-x: auto;padding-bottom: 10px; "
class=
"ownScrollbarStyle"
:style=
"
{height: boxHeight + 'px'}">
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"bookDinnerStatisticsTalbe"
v-loading=
'loading'
>
<tr>
<th
width=
"
5
0"
>
序号
</th>
<th
width=
"
8
0"
>
出发地
</th>
<th
width=
"
8
0"
>
航班时间
</th>
<th
width=
"
8
0"
>
公司团号
</th>
<th
width=
"
11
0"
>
序号
</th>
<th
width=
"
10
0"
>
出发地
</th>
<th
width=
"
12
0"
>
航班时间
</th>
<th
width=
"
14
0"
>
公司团号
</th>
<th
width=
"120"
>
机位总数/已收客数
</th>
<th
v-for=
'item in thLengthTitle'
>
{{
item
}}
</th>
<th>
备注
</th>
<th>
操作
</th>
<th
width=
"120"
>
时间
</th>
<th
width=
"130"
>
餐厅名称
</th>
<th
width=
"100"
>
用餐类型
</th>
<th
width=
"100"
>
大
</th>
<th
width=
"100"
>
中
</th>
<th
width=
"100"
>
小
</th>
<th
width=
"100"
>
操作
</th>
</tr>
<tbody
v-for=
"(outItem,outindex) in list"
:class=
"
{bookDinnerStatisticsSplitTrCss:outindex%2!=0}">
<template
v-for=
"(item,index) in outItem.StaticsReportList"
>
<tr>
<td
:rowspan=
"2*outItem.StaticsReportList.length"
v-if=
'index==0'
>
<div
style=
"max-width: 100px; min-width: 50px; "
>
{{
outindex
+
1
}}
</div>
<div
v-if=
'outItem.StaticsReportList.length>0'
class=
"w100"
>
{{
outItem
.
NewCombinationNum
}}
</div>
</td>
<td>
<div
class=
"w80"
>
{{
item
.
StartCityNames
}}
</div>
</td>
<td>
<div
class=
"w120"
>
{{
item
.
FlightDate
}}
<el-popover
popper-class=
"bookDinnerStatistics_tripDetails"
width=
"550"
trigger=
"click"
>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
class=
"_color_666"
style=
"text-align:center;"
>
<th
width=
"60"
>
{{
$t
(
'Airticket.Air_segment'
)
}}
</th>
<th
width=
"80"
>
{{
$t
(
'system.query_flightNum'
)
}}
</th>
<th
width=
"150"
>
起飞时间
</th>
<th
width=
"150"
>
到达时间
</th>
<th
width=
"100"
>
经停城市
</th>
</tr>
<tr
v-for=
"(ds,din) in item.FlightList"
:key=
"din"
style=
"text-align:center;"
>
<td
class=
"_d_name _color_666"
>
<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>0 && din!=item.FlightList.length-1"
>
{{
$t
(
'Airticket.Air_transit'
)
}}
</span>
</td>
<td>
<div>
{{
ds
.
Flight_number
}}
</div>
<div
style=
"margin-top:5px;"
>
{{
ds
.
AlName
}}
</div>
</td>
<td>
<div>
{{
ds
.
FlightDate
}}
{{
ds
.
Departure_time
}}
</div>
<div
style=
"margin-top:5px;"
>
{{
ds
.
dName
}}
</div>
</td>
<td>
<div>
{{
ds
.
FlightArrivalTime
}}
{{
ds
.
Arrival_time
}}
</div>
<div
style=
"margin-top:5px;"
>
{{
ds
.
aName
}}
</div>
</td>
<td>
{{
ds
.
StopoverName
}}
</td>
</tr>
</table>
<el-button
slot=
"reference"
class=
"normalBtn mt5"
style=
'height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;'
>
详情
</el-button>
</el-popover>
</div>
</td>
<td>
<div
class=
"w120 link"
>
<p
v-for=
'xx in stringToArr(item.TCNUMS)'
@
click=
"goUrlT('productQuery',xx,'产品查询')"
>
{{
xx
}}
</p>
</div>
</td>
<td>
<div
class=
"w120 link"
>
<p
@
click=
"goUrlT('RegistrationList',item.TCIDS,'报名清单')"
>
{{
item
.
TotalSeat
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityYSeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityESeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityFSeatNum
}}
</p>
</div>
</td>
<td
v-for=
"x in item.CommonReport.DiningList"
style=
"vertical-align: top;"
>
<div
style=
"width:350px;"
>
<table
v-if=
"x.UseTimeStr"
class=
"DiningTable"
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<th
width=
"12%"
>
{{
x
.
UseTimeStr
.
substring
(
5
)
}}
</th>
<th
width=
"10%"
>
大
</th>
<th
width=
"10%"
>
中
</th>
<th
width=
"10%"
>
小
</th>
<th
width=
"15%"
>
支付
</th>
<th>
餐厅
</th>
</tr>
<tr
v-for=
"s in x.DiningSummaryList"
>
<td>
{{
s
.
UseDinnerTypeStr
}}
</td>
<td
v-for=
"t in s.DiningPriceList"
>
{{
t
.
PeoplePrice
}}
</td>
<td>
{{
s
.
PayStyleStr
}}
</td>
<template
v-for=
"(outItem,outindex) in DataList"
>
<tbody
:class=
"
{bookDinnerStatisticsSplitTrCss:outindex%2!=0}">
<template
v-for=
"(item,index) in outItem.StaticsReportList"
>
<template
v-for=
"(subItem,subIndex) in item.CommonReport.DiningList"
>
<template
v-for=
"(thirdItem,thirdIndex) in subItem.DiningSummaryList"
>
<tr>
<td
:rowspan=
"outItem.rootRowspan"
v-if=
'index==0&&subIndex==0&&thirdIndex==0'
>
{{
outItem
.
NewCombinationNum
}}
</td>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
{{
item
.
StartCityNames
}}
</td>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
<td><span
v-if=
"s.IsFeature==1"
style=
"color:red;"
>
{{
s
.
DiningName
}}
</span>
<span
v-else
>
{{
s
.
DiningName
}}
</span></td>
</tr>
</table>
</div>
</td>
<td>
<div
class=
"w200"
>
{{
item
.
Remarks
}}
</div>
</td>
<td>
<div
class=
"w80 link"
>
<p
@
click=
"goUrl('bookDinnerStatisticsDetails',item,outItem,'订餐详情')"
>
详情
</p>
</div>
</td>
</tr>
<tr>
<td
:colspan=
"colspanTotal"
style=
"text-align: left!important;padding-left: 20px;"
>
<div
class=
"link"
>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
>
{{
item
.
Titles
}}
</p>
<div
v-show=
"outItem.StaticsReportList[0].DMCRemark!=''"
class=
"colorE95252"
>
地接备注:
{{
outItem
.
StaticsReportList
[
0
].
DMCRemark
}}
</div>
</div>
</td>
</tr>
</
template
>
</tbody>
{{
item
.
FlightDate
}}
<el-popover
popper-class=
"bookDinnerStatistics_tripDetails"
width=
"550"
trigger=
"click"
>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
class=
"_color_666"
style=
"text-align:center;"
>
<th
width=
"60"
>
{{
$t
(
'Airticket.Air_segment'
)
}}
</th>
<th
width=
"80"
>
{{
$t
(
'system.query_flightNum'
)
}}
</th>
<th
width=
"150"
>
起飞时间
</th>
<th
width=
"150"
>
到达时间
</th>
<th
width=
"100"
>
经停城市
</th>
</tr>
<tr
v-for=
"(ds,din) in item.FlightList"
:key=
"din"
style=
"text-align:center;"
>
<td
class=
"_d_name _color_666"
>
<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>0 && din!=item.FlightList.length-1"
>
{{
$t
(
'Airticket.Air_transit'
)
}}
</span>
</td>
<td>
<div>
{{
ds
.
Flight_number
}}
</div>
<div
style=
"margin-top:5px;"
>
{{
ds
.
AlName
}}
</div>
</td>
<td>
<div>
{{
ds
.
FlightDate
}}
{{
ds
.
Departure_time
}}
</div>
<div
style=
"margin-top:5px;"
>
{{
ds
.
dName
}}
</div>
</td>
<td>
<div>
{{
ds
.
FlightArrivalTime
}}
{{
ds
.
Arrival_time
}}
</div>
<div
style=
"margin-top:5px;"
>
{{
ds
.
aName
}}
</div>
</td>
<td>
{{
ds
.
StopoverName
}}
</td>
</tr>
</table>
<el-button
slot=
"reference"
class=
"normalBtn mt5"
style=
'height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;'
>
详情
</el-button>
</el-popover>
</td>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
<div
class=
"w150 link"
>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
>
{{
item
.
TCNUMS
}}
(
{{
item
.
TCID
}}
)
</p>
</div>
</td>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
<div
class=
"w120 link"
>
<p
@
click=
"goUrlT('RegistrationList',item.TCIDS,'报名清单')"
>
{{
item
.
TotalSeat
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityYSeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityESeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityFSeatNum
}}
</p>
</div>
</td>
<td
:rowspan=
"subItem.DiningSummaryList.length"
v-if=
'thirdIndex==0'
>
{{
subItem
.
UseTimeStr
}}
</td>
<td
style=
"text-align:left;padding-left:3px;"
>
{{
thirdItem
.
DiningName
}}
</td>
<td>
{{
thirdItem
.
UseDinnerTypeStr
}}
</td>
<td>
<!--大人-->
<template
v-for=
"lastItem in thirdItem.DiningPriceList"
v-if=
"lastItem.PeopleType==1"
>
{{
lastItem
.
PeoplePrice
}}
</
template
>
</td>
<td>
<!--中学生-->
<
template
v-for=
"lastItem in thirdItem.DiningPriceList"
v-if=
"lastItem.PeopleType==2"
>
{{
lastItem
.
PeoplePrice
}}
</
template
>
</td>
<td>
<!--小学生-->
<
template
v-for=
"lastItem in thirdItem.DiningPriceList"
v-if=
"lastItem.PeopleType==3"
>
{{
lastItem
.
PeoplePrice
}}
</
template
>
</td>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
<div
class=
"w80 link"
>
<p
@
click=
"goUrl('bookDinnerStatisticsDetails',item,outItem,'订餐详情')"
>
详情
</p>
</div>
</td>
</tr>
<tr
v-if=
"subIndex== item.CommonReport.DiningList.length-1 && thirdIndex==subItem.DiningSummaryList.length-1"
>
<td
:colspan=
"11"
style=
"text-align: left!important;padding-left: 20px;"
>
<div
class=
"link"
>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
>
{{item.Titles}}
</p>
<div
v-show=
"outItem.StaticsReportList[0].DMCRemark!=''"
class=
"colorE95252"
>
地接备注:{{outItem.StaticsReportList[0].DMCRemark}}
</div>
</div>
</td>
</tr>
</template>
</template>
</template>
</tbody>
</template>
</table>
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"msg.currentPage"
...
...
@@ -173,7 +179,7 @@
LineList
:
[],
LineTeamList
:
[],
thLengthTitle
:
[],
l
ist
:
[],
DataL
ist
:
[],
colspanTotal
:
0
,
boxHeight
:
0
,
}
...
...
@@ -235,7 +241,7 @@
}
})
},
goUrl
(
path
,
obj
,
outItem
,
title
)
{
goUrl
(
path
,
obj
,
outItem
,
title
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
...
...
@@ -263,27 +269,23 @@
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
.
total
=
res
.
data
.
data
.
count
;
this
.
list
=
res
.
data
.
data
.
pageData
.
data
;
this
.
thLengthArr
=
[];
this
.
thLengthTitle
=
[];
this
.
colspanTotal
=
res
.
data
.
data
.
pageData
.
columnsCount
+
6
;
for
(
let
i
=
1
;
i
<=
res
.
data
.
data
.
pageData
.
columnsCount
;
i
++
)
{
this
.
thLengthTitle
.
push
(
'第'
+
i
+
'天'
);
}
this
.
list
.
forEach
(
outItem
=>
{
var
sourceData
=
res
.
data
.
data
.
pageData
.
data
;
sourceData
.
forEach
(
outItem
=>
{
var
rootRowspan
=
0
;
//合团跨行
outItem
.
StaticsReportList
.
forEach
(
item
=>
{
if
(
item
.
CommonReport
.
DiningList
.
length
<
res
.
data
.
data
.
pageData
.
columnsCount
)
{
let
_cha
=
res
.
data
.
data
.
pageData
.
columnsCount
-
item
.
CommonReport
.
DiningList
.
length
;
let
_chaArr
=
new
Array
();
for
(
let
i
=
0
;
i
<
_cha
;
i
++
)
{
_chaArr
.
push
({
'HotelName'
:
''
});
}
item
.
CommonReport
.
DiningList
=
item
.
CommonReport
.
DiningList
.
concat
(
_chaArr
);
}
var
itemRowSpan
=
0
;
//餐厅跨行
item
.
CommonReport
.
DiningList
.
forEach
(
thirdItem
=>
{
thirdItem
.
DiningSummaryList
.
forEach
(
lastItem
=>
{
rootRowspan
++
;
itemRowSpan
++
;
});
});
item
.
itemRowSpan
=
itemRowSpan
;
});
rootRowspan
+=
outItem
.
StaticsReportList
.
length
;
outItem
.
rootRowspan
=
rootRowspan
;
});
this
.
DataList
=
sourceData
;
this
.
$forceUpdate
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
...
...
@@ -300,14 +302,14 @@
"-"
+
myDate
.
getDate
();
this
.
msg
.
StartDate
=
nowDate
;
let
width
=
window
.
innerWidth
-
50
let
height
=
window
.
innerHeight
-
65
-
164
console
.
log
(
height
)
let
width
=
window
.
innerWidth
-
50
;
let
height
=
window
.
innerHeight
-
65
-
164
;
this
.
boxHeight
=
height
;
this
.
offsetwidth
=
width
this
.
offsetwidth
=
width
;
this
.
getList
()
},
}
</
script
>
<
style
>
...
...
@@ -438,6 +440,7 @@
border-bottom
:
1px
solid
#ccc
;
border-right
:
1px
solid
#ccc
;
}
/* .bookDinnerStatisticsTalbe tr td .DiningTable tr:last-child >td{
border-bottom:0;
} */
...
...
src/components/scenicSpot/admissionStatistics.vue
View file @
a2f63691
...
...
@@ -90,12 +90,12 @@
</el-popover>
</td>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
<div
class=
"w1
2
0 link"
>
<div
class=
"w1
5
0 link"
>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
>
{{
item
.
TCNUMS
}}
(
{{
item
.
TCID
}}
)
</p>
</div>
</td>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
<div
class=
"w1
2
0 link"
>
<div
class=
"w1
5
0 link"
>
<p
@
click=
"goUrlT('RegistrationList',item.TCIDS,'报名清单')"
>
{{
item
.
TotalSeat
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityYSeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityESeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityFSeatNum
}}
</p>
...
...
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