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
bb70cd17
Commit
bb70cd17
authored
Jul 11, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店优化
parent
55ae4542
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
38 deletions
+70
-38
roomQuery.vue
src/components/Hotel/roomQuery.vue
+26
-15
roomReservations.vue
src/components/Hotel/roomReservations.vue
+44
-23
No files found.
src/components/Hotel/roomQuery.vue
View file @
bb70cd17
...
...
@@ -132,7 +132,7 @@
<th
width=
"100"
>
地接状态
</th>
</tr>
<tr
v-if=
"dataList.length==0"
>
<td
colspan=
"1
0
"
>
暂无数据
</td>
<td
colspan=
"1
1
"
>
暂无数据
</td>
</tr>
<template
v-for=
"(outItem,outindex) in dataList"
>
<tbody
:class=
"
{roomQuerySplitTrCss:outindex%2!=0}">
...
...
@@ -140,36 +140,30 @@
<template
v-for=
"(subItem,subIndex) in item.PriceHotelResult"
>
<template
v-for=
"(thirdItem,thirdIndex) in subItem.SubList"
>
<tr>
<td
:rowspan=
"outItem.PriceCommonList.length*item.PriceHotelResult.length*subItem.SubList.length"
v-if=
'index==0&&subIndex==0&&thirdIndex==0'
>
<td
:rowspan=
"outItem.rootRowspan"
v-if=
'index==0&&subIndex==0&&thirdIndex==0'
>
{{
outItem
.
NewCombinationNum
}}
</td>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
v-if=
'subIndex==0&&thirdIndex==0'
>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
{{
item
.
StartCityName
}}
</td>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
v-if=
'subIndex==0&&thirdIndex==0'
>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
<div
class=
"w120 link"
>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
>
{{
item
.
TCNUMS
}}
</p>
</div>
</td>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
v-if=
'subIndex==0&&thirdIndex==0'
style=
"white-space:nowrap;"
>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
style=
"white-space:nowrap;"
>
<template
v-for=
"(fItem,fIndex) in item.FlightList"
>
<span
style=
"height:25px; line-height:25px;"
>
<a
style=
"color: #ff0066;font-weight: bold;"
>
{{
fItem
.
Flight_number
}}
</a>
{{
fItem
.
FlightDateStr
}}
{{
fItem
.
Departure_time
}}
{{
fItem
.
dName
}}
{{
fItem
.
TicketArrivalTime
}}
{{
fItem
.
aName
}}
</span><br/>
</span><br
/>
</
template
>
</td>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
v-if=
'subIndex==0&&thirdIndex==0'
>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
{{item.LineteamName}}
</td>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
v-if=
'subIndex==0&&thirdIndex==0'
>
<td
:rowspan=
"item.itemRowSpan"
v-if=
'subIndex==0&&thirdIndex==0'
>
<div
class=
"w120 link"
>
<p
@
click=
"goUrlT('RegistrationList',item.TCIDS,'报名清单')"
>
{{item.TotalSeat}}/{{item.YSeatNum}}/{{item.ESeatNum}}/{{item.FSeatNum}}
...
...
@@ -361,7 +355,24 @@
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
var
sourceData
=
res
.
data
.
data
.
pageData
;
if
(
sourceData
)
{
sourceData
.
forEach
(
rootItem
=>
{
var
rootRowspan
=
0
;
//合团跨行
rootItem
.
PriceCommonList
.
forEach
(
subItem
=>
{
var
itemRowSpan
=
0
;
//酒店跨行
subItem
.
PriceHotelResult
.
forEach
(
thirdItem
=>
{
thirdItem
.
SubList
.
forEach
(
lastItem
=>
{
rootRowspan
++
;
itemRowSpan
++
;
});
});
subItem
.
itemRowSpan
=
itemRowSpan
;
});
rootItem
.
rootRowspan
=
rootRowspan
;
});
}
this
.
dataList
=
sourceData
;
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
...
...
src/components/Hotel/roomReservations.vue
View file @
bb70cd17
...
...
@@ -113,7 +113,7 @@
<th
width=
"80"
>
出发地
</th>
<th
width=
"90"
>
航班时间
</th>
<th
width=
"145"
>
公司团号
</th>
<th
width=
"100"
>
机位总数
<br/>
(Y/E/F)
</th>
<th
width=
"100"
>
机位总数
<br
/>
(Y/E/F)
</th>
<th
width=
"80"
>
占床
<br
/>
不占床
</th>
<th
width=
"80"
>
实际用房数
</th>
<th
width=
"100"
>
操作
</th>
...
...
@@ -124,10 +124,10 @@
<th
width=
"100"
>
地接状态
</th>
<th
width=
"150"
>
房间预订数
<br
/>
单间/标准双人间/大床房/三人间/司导间
</th>
</tr>
<tr
v-if=
"
l
ist.length==0"
>
<tr
v-if=
"
DataL
ist.length==0"
>
<td
colspan=
"14"
>
暂无数据
</td>
</tr>
<template
v-for=
"(outItem,outindex) in
l
ist"
>
<template
v-for=
"(outItem,outindex) in
DataL
ist"
>
<tbody
:class=
"
{roomReservationsSplitTrCss:outindex%2!=0}">
<template
v-for=
"(item,index) in outItem.StaticsReportList"
>
<template
v-for=
"(subItem,subIndex) in item.CommonReport.HotelOrderListReport"
...
...
@@ -135,15 +135,15 @@
<template
v-for=
"(thirdItem,thirdIndex) in subItem.HotelOrderList"
>
<tr>
<td
:rowspan=
"outItem.
StaticsReportList.length*item.CommonReport.HotelOrderListReport.length*subItem.HotelOrderList.length
"
:rowspan=
"outItem.
rootRowspan
"
v-if=
'index==0&&subIndex==0&&thirdIndex==0'
>
{{
outItem
.
NewCombinationNum
}}
</td>
<td
:rowspan=
"item.
CommonReport.HotelOrderListReport.length*subItem.HotelOrderList.length
"
<td
:rowspan=
"item.
itemRowSpan
"
v-if=
'subIndex==0&&thirdIndex==0'
>
{{
item
.
StartCityNames
}}
</td>
<td
:rowspan=
"item.
CommonReport.HotelOrderListReport.length*subItem.HotelOrderList.length
"
<td
:rowspan=
"item.
itemRowSpan
"
v-if=
'subIndex==0&&thirdIndex==0'
>
<div
class=
"w150"
>
{{
item
.
FlightDate
}}
...
...
@@ -185,31 +185,35 @@
</el-popover>
</div>
</td>
<td
:rowspan=
"item.
CommonReport.HotelOrderListReport.length*subItem.HotelOrderList.length
"
<td
:rowspan=
"item.
itemRowSpan
"
v-if=
'subIndex==0&&thirdIndex==0'
>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
style=
"cursor:pointer;text-decoration:underline;"
>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
style=
"cursor:pointer;text-decoration:underline;"
>
{{
item
.
TCNUMS
}}
(
{{
item
.
TCIDS
}}
)
</p>
</p>
</td>
<td
:rowspan=
"item.
CommonReport.HotelOrderListReport.length*subItem.HotelOrderList.length
"
<td
:rowspan=
"item.
itemRowSpan
"
v-if=
'subIndex==0&&thirdIndex==0'
>
<p
@
click=
"goUrlT('RegistrationList',item.TCIDS,'报名清单')"
style=
"cursor:pointer;text-decoration:underline;"
>
<p
@
click=
"goUrlT('RegistrationList',item.TCIDS,'报名清单')"
style=
"cursor:pointer;text-decoration:underline;"
>
{{
item
.
TotalSeat
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityYSeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityESeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityFSeatNum
}}
</p>
</td>
<td
:rowspan=
"item.
CommonReport.HotelOrderListReport.length*subItem.HotelOrderList.length
"
<td
:rowspan=
"item.
itemRowSpan
"
v-if=
'subIndex==0&&thirdIndex==0'
>
<p
@
click=
"goUrlT('passengerHouse',item.TCIDS,'房间分配')"
style=
"cursor:pointer;text-decoration:underline;"
>
<p
@
click=
"goUrlT('passengerHouse',item.TCIDS,'房间分配')"
style=
"cursor:pointer;text-decoration:underline;"
>
{{
item
.
CommonReport
.
HouseStatistics
.
NeedBed
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
NoNeedBed
}}
</p>
</td>
<td
:rowspan=
"item.
CommonReport.HotelOrderListReport.length*subItem.HotelOrderList.length
"
<td
:rowspan=
"item.
itemRowSpan
"
v-if=
'subIndex==0&&thirdIndex==0'
>
{{
item
.
CommonReport
.
HouseStatistics
.
RealityRoomNum
}}
</td>
<td
:rowspan=
"item.
CommonReport.HotelOrderListReport.length*subItem.HotelOrderList.length
"
<td
:rowspan=
"item.
itemRowSpan
"
v-if=
'subIndex==0&&thirdIndex==0'
>
<p
@
click=
"goUrl('roomReservationsDetails',item,outItem,'订房详情')"
style=
"cursor:pointer;text-decoration:underline;"
>
详情
</p>
<p
@
click=
"goUrl('roomReservationsDetails',item,outItem,'订房详情')"
style=
"cursor:pointer;text-decoration:underline;"
>
详情
</p>
</td>
<td
:rowspan=
"subItem.HotelOrderList.length"
v-if=
'thirdIndex==0'
>
{{
subItem
.
UseTimeStr
}}
...
...
@@ -296,9 +300,7 @@
CombinationNum
:
''
,
HotelStatus
:
0
},
thLengthTitle
:
[],
list
:
[],
colspanTotal
:
0
,
DataList
:
[],
//数据列表
boxHeight
:
0
,
queryCommonData
:
{
//公司数据
...
...
@@ -377,7 +379,24 @@
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
list
=
res
.
data
.
data
.
pageData
.
data
;
var
sourceData
=
res
.
data
.
data
.
pageData
.
data
;
if
(
sourceData
)
{
sourceData
.
forEach
(
rootItem
=>
{
var
rootRowspan
=
0
;
//合团跨行
rootItem
.
StaticsReportList
.
forEach
(
subItem
=>
{
var
itemRowSpan
=
0
;
//酒店跨行
subItem
.
CommonReport
.
HotelOrderListReport
.
forEach
(
thirdItem
=>
{
thirdItem
.
HotelOrderList
.
forEach
(
lastItem
=>
{
rootRowspan
++
;
itemRowSpan
++
;
});
});
subItem
.
itemRowSpan
=
itemRowSpan
;
});
rootItem
.
rootRowspan
=
rootRowspan
;
});
}
this
.
DataList
=
sourceData
;
this
.
$forceUpdate
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
...
...
@@ -496,10 +515,11 @@
}
else
{
this
.
msg
.
StartDate
=
nowDate
;
}
let
width
=
window
.
innerWidth
-
50
let
height
=
window
.
innerHeight
-
65
-
164
let
width
=
window
.
innerWidth
-
50
;
let
height
=
window
.
innerHeight
-
65
-
164
;
this
.
boxHeight
=
height
;
this
.
offsetwidth
=
width
this
.
offsetwidth
=
width
;
//this.msg.CombinationNum = "HP20190713TN07A1";
this
.
getLinePlaceList
();
this
.
getAirlineList
();
this
.
getEmployeeList
();
...
...
@@ -507,6 +527,7 @@
this
.
getList
();
},
}
</
script
>
<
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