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
c854338d
Commit
c854338d
authored
Mar 29, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
aa776075
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
37 deletions
+26
-37
roomReservations.vue
src/components/Hotel/roomReservations.vue
+18
-32
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+8
-5
No files found.
src/components/Hotel/roomReservations.vue
View file @
c854338d
...
...
@@ -68,8 +68,8 @@
<th
width=
"60"
>
{{
$t
(
'Airticket.Air_segment'
)
}}
</th>
<th
width=
"80"
>
{{
$t
(
'system.query_flightNum'
)
}}
</th>
<th
width=
"150"
>
起飞时间
</th>
<th
width=
"
15
0"
>
到达时间
</th>
<th
width=
"
8
0"
>
经停城市
</th>
<th
width=
"
8
0"
>
到达时间
</th>
<th
width=
"
10
0"
>
经停城市
</th>
</tr>
<tr
v-for=
"(ds,din) in item.FlightList"
:key=
"din"
style=
"text-align:center;"
>
<td
class=
"_d_name _color_666"
>
...
...
@@ -94,7 +94,7 @@
</tr>
</table>
<el-button
slot=
"reference"
class=
"normalBtn mt5"
style=
'height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;
color:#fff;
'
>
详情
</el-button>
style=
'height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;'
>
详情
</el-button>
</el-popover>
</div>
</td>
...
...
@@ -135,11 +135,13 @@
</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;"
>
<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;"
>
<span
v-if=
'childItem.HotelOrderState==0'
class=
"colorE95252"
>
(待定)
</span>
{{
childItem
.
NewHotelName
}}
<span
v-if=
'childItem.HotelOrderState==0'
class=
"colorE95252"
>
(待定)
</span>
{{
childItem
.
NewHotelName
}}
</p>
<p
class=
"pDateStyle"
>
{{
item
.
CommonReport
.
HouseStatistics
.
RealityRoomNum
}}
</p>
<p
class=
"pDateStyle"
>
...
...
@@ -149,7 +151,7 @@
<span
v-for=
"x in item.CommonReport.HouseStatistics.HouseTypeList"
>
{{
x
.
HouseTypeCount
}}
</span>
<span
v-if=
"item.CommonReport.HouseStatistics.HouseTypeList.length==0"
>
暂无订房
</span>
</p>
</div>
</div>
</div>
</td>
...
...
@@ -289,35 +291,19 @@
for
(
let
i
=
1
;
i
<=
res
.
data
.
data
.
pageData
.
columnsCount
;
i
++
)
{
this
.
thLengthTitle
.
push
(
'第'
+
i
+
'晚'
)
}
this
.
list
.
forEach
(
outItem
=>
{
outItem
.
StaticsReportList
.
forEach
(
item
=>
{
item
.
CommonReport
[
'valueLength'
]
=
item
.
CommonReport
.
HotelOrderListReport
.
length
if
(
item
.
CommonReport
.
HotelOrderListReport
.
length
<
res
.
data
.
data
.
pageData
.
columnsCount
)
{
let
_cha
=
res
.
data
.
data
.
pageData
.
columnsCount
-
item
.
CommonReport
.
HotelOrderListReport
.
length
let
_chaArr
=
new
Array
()
for
(
let
i
=
0
;
i
<
_cha
;
i
++
)
{
_chaArr
.
push
({
'HotelName'
:
''
this
.
list
.
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
);
})
}
item
.
CommonReport
.
HotelOrderListReport
=
item
.
CommonReport
.
HotelOrderListReport
.
concat
(
_chaArr
)
})
}
})
})
this
.
list
.
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
;
y
.
colNum
=
9
+
y
.
CommonReport
.
newHotel
.
length
;
})
})
}
else
{
...
...
src/components/Hotel/roomReservationsDetails.vue
View file @
c854338d
...
...
@@ -237,6 +237,9 @@
//添加酒店
AddHotel
(
item
,
subIndex
)
{
var
subItem
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
HotelOrderList
[
subIndex
]));
subItem
.
HotelId
=
0
;
subItem
.
HotelName
=
""
;
subItem
.
OrderID
=
0
;
item
.
HotelOrderList
.
push
(
subItem
);
},
//删除酒店
...
...
@@ -321,7 +324,6 @@
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
list
=
res
.
data
.
data
.
HotelOrderListReport
;
console
.
log
(
"this.list"
,
this
.
list
);
this
.
CreateBy
=
res
.
data
.
data
.
CreateBy
;
this
.
CreateByPhoto
=
res
.
data
.
data
.
CreateByPhoto
;
this
.
CreateByAccount
=
res
.
data
.
data
.
CreateByAccount
;
...
...
@@ -364,10 +366,11 @@
this
.
$forceUpdate
();
},
getHotelList
(
obj
)
{
this
.
apipost
(
'hotel_post_GetLineHotelList'
,
{
IsGetPic
:
0
,
IsGetRemark
:
0
,
//QCity: obj.QCity
this
.
apipost
(
'hotel_post_GetHasStockHotelList'
,
{
//1-只查询有库存的酒店
IsMoreThanZero
:
0
,
Country
:
"651"
,
sDate
:
obj
.
CheckInDateStr
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
obj
.
hotelList
=
res
.
data
.
data
;
...
...
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