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
ba7fb8c1
Commit
ba7fb8c1
authored
Jul 11, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店查询优化
parent
dbb46eb1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
284 additions
and
280 deletions
+284
-280
roomQuery.vue
src/components/Hotel/roomQuery.vue
+95
-75
roomReservations.vue
src/components/Hotel/roomReservations.vue
+189
-205
No files found.
src/components/Hotel/roomQuery.vue
View file @
ba7fb8c1
...
...
@@ -119,66 +119,104 @@
<div
style=
"font-size:12px;padding:2px 4px 3px 4px; color:red"
>
注意事项:每次导出数据最好不要超过一个月。
</div>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"roomQueryTalbe"
v-loading=
'loading'
>
<tr>
<th
width=
"
w10
0"
>
序号
</th>
<th
width=
"1
2
0"
>
出发地
</th>
<th
width=
"
12
0"
>
序号
</th>
<th
width=
"1
0
0"
>
出发地
</th>
<th
width=
"80"
>
公司团号
</th>
<th
width=
"150"
>
航班
</th>
<th
width=
"100"
>
系列
</th>
<th
width=
"120"
>
机位总数
<br
/>
(Y/E/F)
</th>
<th>
使用时间
&
酒店情况
</th>
<th
width=
"80"
>
机位总数
<br
/>
(Y/E/F)
</th>
<th
width=
"100"
>
使用时间
</th>
<th
width=
"120"
>
酒店名称
</th>
<th
width=
"120"
>
更换酒店
</th>
<th
width=
"100"
>
OP状态
</th>
<th
width=
"100"
>
地接状态
</th>
</tr>
<tr
v-if=
"dataList.length==0"
>
<td
colspan=
"10"
>
暂无数据
</td>
</tr>
<tbody
v-for=
"(outItem,outindex) in dataList"
:class=
"
{roomQuerySplitTrCss:outindex%2!=0}">
<template
v-for=
"(item,index) in outItem.StaticsReportList"
>
<tr>
<td
:rowspan=
"outItem.StaticsReportList.length"
v-if=
'index==0'
>
<div
style=
"max-width: 100px; min-width: 50px;margin:auto;"
>
{{
outindex
+
1
}}
</div>
<div
v-if=
'outItem.StaticsReportList.length>0'
class=
"w150"
>
{{
outItem
.
NewCombinationNum
}}
</div>
</td>
<td>
<div
class=
"w80"
>
{{
item
.
StartCityNames
}}
</div>
</td>
<td>
<div
class=
"w120 link"
>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
>
{{
item
.
TCNUMS
}}
</p>
</div>
</td>
<td>
<div
class=
"w120 link"
>
{{
item
.
LineteamIdNames
}}
</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
style=
"vertical-align: top;"
>
<div
:style=
"
{width:150*item.CommonReport.newHotel.length+'px'}">
<div
class=
"w150"
v-for=
"childItem in item.CommonReport.newHotel"
style=
"float:left;border-right:1px solid #d1d1d1;"
>
<p
class=
"pDateStyle"
>
{{
childItem
.
CheckInDateStr
}}
</p>
<p
@
click=
"goUrlR('HotelManagement',childItem.HotelId,'酒店管理')"
class=
"pDateStyle phoverStype ownScrollbarStyle"
style=
"height: 50px!important; overflow:auto;"
>
{{
childItem
.
NewHotelName
}}
<span
class=
"colorE95252"
>
<template
v-if=
"childItem.OPState==1"
>
[OP-指定]
</
template
>
<
template
v-else-if=
"childItem.OPState==2&&childItem.DMCState==0"
>
[OP-暂定]
</
template
>
<
template
v-else
>
{{
childItem
.
DMCState
==
1
?
"[地接-OK]"
:(
childItem
.
DMCState
==
0
?
"[地接-未操作]"
:
"[地接-暂定]"
)
}}
</
template
>
</span>
</p>
</div>
</div>
</td>
</tr>
</template>
</tbody>
<template
v-for=
"(outItem,outindex) in dataList"
>
<tbody
:class=
"
{roomQuerySplitTrCss:outindex%2!=0}">
<template
v-for=
"(item,index) in outItem.PriceCommonList"
>
<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'
>
{{
outItem
.
NewCombinationNum
}}
</td>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
v-if=
'subIndex==0&&thirdIndex==0'
>
{{
item
.
StartCityName
}}
</td>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
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;"
>
<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/>
</
template
>
</td>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
v-if=
'subIndex==0&&thirdIndex==0'
>
{{item.LineteamName}}
</td>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
v-if=
'subIndex==0&&thirdIndex==0'
>
<div
class=
"w120 link"
>
<p
@
click=
"goUrlT('RegistrationList',item.TCIDS,'报名清单')"
>
{{item.TotalSeat}}/{{item.YSeatNum}}/{{item.ESeatNum}}/{{item.FSeatNum}}
</p>
</div>
</td>
<td
:rowspan=
"subItem.SubList.length"
v-if=
'thirdIndex==0'
>
{{subItem.UseDay}}
</td>
<td
style=
"text-align:left;padding-left:2px;"
>
<
template
v-if=
"thirdItem.HotelName!=thirdItem.NewHotelName && thirdItem.NewHotelName!=''"
>
<span
style=
"text-decoration:line-through"
>
{{
thirdItem
.
HotelName
}}
</span>
</
template
>
<
template
v-else
>
{{
thirdItem
.
HotelName
}}
</
template
>
</td>
<td
style=
"text-align:left;padding-left:2px;"
>
<
template
v-if=
"thirdItem.HotelName!=thirdItem.NewHotelName"
>
<span
style=
"color:red;"
>
{{
thirdItem
.
NewHotelName
}}
</span>
</
template
>
</td>
<td>
<
template
v-if=
"thirdItem.OPState==1"
>
<span
style=
"color: green;"
>
OP-指定
</span>
</
template
>
<
template
v-else-if=
"thirdItem.OPState==2"
>
<span
style=
"color:red;"
>
OP-暂定
</span>
</
template
>
</td>
<td>
<
template
v-if=
"thirdItem.DMCState==1"
>
<span
style=
"color: green;"
>
地接-OK
</span>
</
template
>
<
template
v-else-if=
"thirdItem.DMCState==2"
>
<span
style=
"color:red;"
>
地接-暂定
</span>
</
template
>
<
template
v-else-if=
"thirdItem.DMCState==0"
>
<span
style=
"color:red;"
>
地接-未操作
</span>
</
template
>
</td>
</tr>
</template>
</template>
</template>
</tbody>
</template>
</table>
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
...
...
@@ -194,7 +232,7 @@
total
:
0
,
msg
:
{
pageIndex
:
1
,
pageSize
:
8
,
pageSize
:
5
,
SelectType
:
1
,
StartDate
:
''
,
EndDate
:
''
,
...
...
@@ -319,29 +357,11 @@
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
'dmcstatistics_
post_GetUniteCombinationNumService
'
,
this
.
msg
,
res
=>
{
this
.
apipost
(
'dmcstatistics_
get_GetDmcHotelPageList
'
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
dataList
=
res
.
data
.
data
.
pageData
.
data
;
this
.
thLengthTitle
=
[];
for
(
let
i
=
1
;
i
<=
res
.
data
.
data
.
pageData
.
columnsCount
;
i
++
)
{
this
.
thLengthTitle
.
push
(
'第'
+
i
+
'晚'
)
}
this
.
dataList
.
forEach
(
x
=>
{
x
.
StaticsReportList
.
forEach
(
y
=>
{
y
.
CommonReport
.
newHotel
=
[];
if
(
y
.
CommonReport
.
HotelOrderListReport
!=
null
&&
y
.
CommonReport
.
HotelOrderListReport
.
length
>
0
)
{
y
.
CommonReport
.
HotelOrderListReport
.
forEach
(
z
=>
{
z
.
HotelOrderList
.
forEach
(
q
=>
{
y
.
CommonReport
.
newHotel
.
push
(
q
);
})
})
}
y
.
colNum
=
9
+
y
.
CommonReport
.
newHotel
.
length
;
});
})
this
.
dataList
=
res
.
data
.
data
.
pageData
;
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
...
...
src/components/Hotel/roomReservations.vue
View file @
ba7fb8c1
This diff is collapsed.
Click to expand it.
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