Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
zhengke
jz_Travel
Commits
81b2fc28
Commit
81b2fc28
authored
May 09, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
258fac50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
order.vue
pages/hotel/order.vue
+12
-1
No files found.
pages/hotel/order.vue
View file @
81b2fc28
...
...
@@ -150,7 +150,7 @@
<
text
style
=
"margin-right: 30rpx"
>
房间
{{
subItem
.
RoomOccupancy
.
RoomNum
}}
<
/text
>
<
/view
>
<
view
style
=
"text-align: right"
>
{{
(
subItem
.
PriceList
.
length
*
subItem
.
PriceList
[
0
].
Price
).
toFixed
(
2
)
}}
{{
getRoomPrice
(
subItem
.
PriceList
).
toFixed
(
2
)
}}
<
/view
>
<
/view
>
<
/template
>
...
...
@@ -414,6 +414,17 @@
}
);
}
,
methods
:
{
//获取房间价格
getRoomPrice
(
priceList
)
{
let
totalPrice
=
0
;
if
(
priceList
&&
priceList
.
length
>
0
){
priceList
.
forEach
(
item
=>
{
totalPrice
+=
Number
(
item
.
Price
);
}
)
}
return
totalPrice
;
}
,
getGroupData
()
{
this
.
orderMsg
.
GuestList
=
[];
this
.
searchObj
.
searchroomGroup
.
forEach
((
item
,
index
)
=>
{
...
...
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