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 @@
...
@@ -119,66 +119,104 @@
<div
style=
"font-size:12px;padding:2px 4px 3px 4px; color:red"
>
注意事项:每次导出数据最好不要超过一个月。
</div>
<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'
>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"roomQueryTalbe"
v-loading=
'loading'
>
<tr>
<tr>
<th
width=
"
w10
0"
>
序号
</th>
<th
width=
"
12
0"
>
序号
</th>
<th
width=
"1
2
0"
>
出发地
</th>
<th
width=
"1
0
0"
>
出发地
</th>
<th
width=
"80"
>
公司团号
</th>
<th
width=
"80"
>
公司团号
</th>
<th
width=
"150"
>
航班
</th>
<th
width=
"100"
>
系列
</th>
<th
width=
"100"
>
系列
</th>
<th
width=
"120"
>
机位总数
<br
/>
(Y/E/F)
</th>
<th
width=
"80"
>
机位总数
<br
/>
(Y/E/F)
</th>
<th>
使用时间
&
酒店情况
</th>
<th
width=
"100"
>
使用时间
</th>
<th
width=
"120"
>
酒店名称
</th>
<th
width=
"120"
>
更换酒店
</th>
<th
width=
"100"
>
OP状态
</th>
<th
width=
"100"
>
地接状态
</th>
</tr>
</tr>
<tr
v-if=
"dataList.length==0"
>
<tr
v-if=
"dataList.length==0"
>
<td
colspan=
"10"
>
暂无数据
</td>
<td
colspan=
"10"
>
暂无数据
</td>
</tr>
</tr>
<tbody
v-for=
"(outItem,outindex) in dataList"
:class=
"
{roomQuerySplitTrCss:outindex%2!=0}">
<template
v-for=
"(outItem,outindex) in dataList"
>
<template
v-for=
"(item,index) in outItem.StaticsReportList"
>
<tbody
:class=
"
{roomQuerySplitTrCss:outindex%2!=0}">
<tr>
<template
v-for=
"(item,index) in outItem.PriceCommonList"
>
<td
:rowspan=
"outItem.StaticsReportList.length"
v-if=
'index==0'
>
<template
v-for=
"(subItem,subIndex) in item.PriceHotelResult"
>
<div
style=
"max-width: 100px; min-width: 50px;margin:auto;"
>
{{
outindex
+
1
}}
</div>
<template
v-for=
"(thirdItem,thirdIndex) in subItem.SubList"
>
<div
v-if=
'outItem.StaticsReportList.length>0'
class=
"w150"
>
{{
outItem
.
NewCombinationNum
}}
</div>
<tr>
</td>
<td
:rowspan=
"outItem.PriceCommonList.length*item.PriceHotelResult.length*subItem.SubList.length"
<td>
v-if=
'index==0&&subIndex==0&&thirdIndex==0'
>
<div
class=
"w80"
>
{{
outItem
.
NewCombinationNum
}}
{{
item
.
StartCityNames
}}
</td>
</div>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
</td>
v-if=
'subIndex==0&&thirdIndex==0'
>
<td>
{{
item
.
StartCityName
}}
<div
class=
"w120 link"
>
</td>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
>
{{
item
.
TCNUMS
}}
</p>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
</div>
v-if=
'subIndex==0&&thirdIndex==0'
>
</td>
<div
class=
"w120 link"
>
<td>
<p
@
click=
"goUrlT('productQuery',item.TCNUMS,'产品查询')"
>
{{
item
.
TCNUMS
}}
</p>
<div
class=
"w120 link"
>
</div>
{{
item
.
LineteamIdNames
}}
</td>
</div>
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
</td>
v-if=
'subIndex==0&&thirdIndex==0'
style=
"white-space:nowrap;"
>
<td>
<template
v-for=
"(fItem,fIndex) in item.FlightList"
>
<div
class=
"w120 link"
>
<span
style=
"height:25px; line-height:25px;"
>
<p
@
click=
"goUrlT('RegistrationList',item.TCIDS,'报名清单')"
>
<a
style=
"color: #ff0066;font-weight: bold;"
>
{{
fItem
.
Flight_number
}}
</a>
{{
item
.
TotalSeat
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityYSeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityESeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityFSeatNum
}}
{{
fItem
.
FlightDateStr
}}
</p>
{{
fItem
.
Departure_time
}}
{{
fItem
.
dName
}}
{{
fItem
.
TicketArrivalTime
}}
{{
fItem
.
aName
}}
</div>
</span><br/>
</td>
</
template
>
<td
style=
"vertical-align: top;"
>
</td>
<div
:style=
"
{width:150*item.CommonReport.newHotel.length+'px'}">
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
<div
class=
"w150"
v-for=
"childItem in item.CommonReport.newHotel"
v-if=
'subIndex==0&&thirdIndex==0'
>
style=
"float:left;border-right:1px solid #d1d1d1;"
>
{{item.LineteamName}}
<p
class=
"pDateStyle"
>
{{
childItem
.
CheckInDateStr
}}
</p>
</td>
<p
@
click=
"goUrlR('HotelManagement',childItem.HotelId,'酒店管理')"
<td
:rowspan=
"item.PriceHotelResult.length*subItem.SubList.length"
class=
"pDateStyle phoverStype ownScrollbarStyle"
style=
"height: 50px!important; overflow:auto;"
>
v-if=
'subIndex==0&&thirdIndex==0'
>
{{
childItem
.
NewHotelName
}}
<div
class=
"w120 link"
>
<span
class=
"colorE95252"
>
<p
@
click=
"goUrlT('RegistrationList',item.TCIDS,'报名清单')"
>
<template
v-if=
"childItem.OPState==1"
>
[OP-指定]
</
template
>
{{item.TotalSeat}}/{{item.YSeatNum}}/{{item.ESeatNum}}/{{item.FSeatNum}}
<
template
v-else-if=
"childItem.OPState==2&&childItem.DMCState==0"
>
[OP-暂定]
</
template
>
</p>
<
template
v-else
>
{{
childItem
.
DMCState
==
1
?
"[地接-OK]"
:(
childItem
.
DMCState
==
0
?
"[地接-未操作]"
:
"[地接-暂定]"
)
}}
</div>
</
template
>
</td>
</span>
<td
:rowspan=
"subItem.SubList.length"
v-if=
'thirdIndex==0'
>
</p>
{{subItem.UseDay}}
</div>
</td>
</div>
<td
style=
"text-align:left;padding-left:2px;"
>
</td>
<
template
v-if=
"thirdItem.HotelName!=thirdItem.NewHotelName && thirdItem.NewHotelName!=''"
>
</tr>
<span
style=
"text-decoration:line-through"
>
{{
thirdItem
.
HotelName
}}
</span>
</template>
</
template
>
</tbody>
<
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>
</table>
</div>
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
...
@@ -194,7 +232,7 @@
...
@@ -194,7 +232,7 @@
total
:
0
,
total
:
0
,
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
8
,
pageSize
:
5
,
SelectType
:
1
,
SelectType
:
1
,
StartDate
:
''
,
StartDate
:
''
,
EndDate
:
''
,
EndDate
:
''
,
...
@@ -319,29 +357,11 @@
...
@@ -319,29 +357,11 @@
},
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
'dmcstatistics_
post_GetUniteCombinationNumService
'
,
this
.
msg
,
res
=>
{
this
.
apipost
(
'dmcstatistics_
get_GetDmcHotelPageList
'
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
dataList
=
res
.
data
.
data
.
pageData
.
data
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
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
;
});
})
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
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