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
358eb8ef
Commit
358eb8ef
authored
Jan 04, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c3a9c237
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
14 deletions
+22
-14
ListCar.vue
src/components/Hotel/singleProduct/components/ListCar.vue
+19
-13
index.vue
src/components/index.vue
+3
-1
No files found.
src/components/Hotel/singleProduct/components/ListCar.vue
View file @
358eb8ef
...
@@ -48,11 +48,11 @@
...
@@ -48,11 +48,11 @@
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
{{
moneyFormat
(
z
.
Unit_Price
)
}}
/人
{{
moneyFormat
(
z
.
Unit_Price
)
}}
/人
</el-col>
</el-col>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
5
"
>
{{
z
.
PeopleNumber
}}
人
{{
z
.
Number
}}
间
{{
z
.
PeopleNumber
}}
人
{{
z
.
Number
}}
间
</el-col>
</el-col>
<el-col
:span=
"
6
"
class=
"row-JCE"
>
<el-col
:span=
"
7
"
class=
"row-JCE"
>
<span>
小计:
13400.00
</span>
<span>
小计:
{{
moneyFormat
(
z
.
Unit_Price
*
z
.
PeopleNumber
)
}}
</span>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
...
@@ -64,8 +64,9 @@
...
@@ -64,8 +64,9 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
v-if=
"cars.length==0"
style=
"text-align: center;padding: 20px 0;"
>
暂无数据
</div>
</div>
</div>
<div
class=
"ListCar-bottom"
>
<div
class=
"ListCar-bottom"
v-if=
"cars.length>0"
>
<el-form
label-width=
"60px"
:model=
"parameters"
:rules=
"rules"
ref=
"parameters"
>
<el-form
label-width=
"60px"
:model=
"parameters"
:rules=
"rules"
ref=
"parameters"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -105,11 +106,11 @@
...
@@ -105,11 +106,11 @@
<span
class=
"coloref1416c fz12"
>
订单总金额:
</span>
<span
class=
"coloref1416c fz12"
>
订单总金额:
</span>
<span
class=
"coloref1416c fbold"
>
<span
class=
"coloref1416c fbold"
>
<span
class=
"fz13"
>
¥
</span>
<span
class=
"fz13"
>
¥
</span>
<span
class=
"fz18"
>
37000
</span>
<span
class=
"fz18"
>
{{parameters.Money}}
</span>
</span>
</span>
</div>
</div>
<div>
<div>
<button
class=
"normalBtn"
:class=
"{'normalBtn':'','hollowFixedBtn':''
}"
type=
"primary"
@
click=
"submit"
>
<button
:class=
"{'normalBtn':!loading,'hollowFixedBtn':loading
}"
type=
"primary"
@
click=
"submit"
>
确认下单
确认下单
</button>
</button>
</div>
</div>
...
@@ -206,10 +207,12 @@
...
@@ -206,10 +207,12 @@
},
},
methods
:
{
methods
:
{
// 关闭购物车
close
(){
close
(){
localStorage
.
removeItem
(
'editor'
)
localStorage
.
removeItem
(
'editor'
)
this
.
$emit
(
'close'
)
this
.
$emit
(
'close'
)
},
},
// 合计
getMoney
()
{
getMoney
()
{
this
.
parameters
.
Money
=
0
this
.
parameters
.
Money
=
0
this
.
cars
.
forEach
((
item
)
=>
{
this
.
cars
.
forEach
((
item
)
=>
{
...
@@ -218,6 +221,7 @@
...
@@ -218,6 +221,7 @@
})
})
})
})
},
},
// 确定下单
submit
()
{
submit
()
{
this
.
$refs
[
'parameters'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'parameters'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
@@ -229,16 +233,17 @@
...
@@ -229,16 +233,17 @@
},
},
setFormMsg
(){
setFormMsg
(){
let
temp
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
cars
))
let
temp
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
cars
))
if
(
this
.
loading
)
return
if
(
this
.
loading
||
this
.
cars
.
length
==
0
)
return
this
.
loading
=
true
this
.
loading
=
true
this
.
parameters
.
DetailList
=
[]
this
.
parameters
.
DetailList
=
[]
temp
.
forEach
((
x
)
=>
{
temp
.
forEach
((
x
)
=>
{
x
.
Hotels
.
forEach
((
y
)
=>
{
x
.
Hotels
.
forEach
((
y
)
=>
{
y
.
RoomList
=
JSON
.
parse
(
JSON
.
stringify
(
y
.
DetailList
))
y
.
RoomList
=
JSON
.
parse
(
JSON
.
stringify
(
y
.
DetailList
))
delete
y
.
DetailList
delete
y
.
DetailList
this
.
parameters
.
DetailList
.
push
(
y
)
this
.
parameters
.
DetailList
.
push
(
y
)
})
})
})
})
this
.
apipost
(
"dict_post_SetSaleCustomerOrder"
,
this
.
parameters
,
this
.
apipost
(
"dict_post_SetSaleCustomerOrder"
,
this
.
parameters
,
res
=>
{
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -282,6 +287,7 @@
...
@@ -282,6 +287,7 @@
});
});
},
},
// 编辑
setEditorHandler
(
x
){
setEditorHandler
(
x
){
localStorage
.
setItem
(
'editor'
,
JSON
.
stringify
(
x
))
localStorage
.
setItem
(
'editor'
,
JSON
.
stringify
(
x
))
this
.
$emit
(
'editor'
,
x
)
this
.
$emit
(
'editor'
,
x
)
...
@@ -355,7 +361,7 @@
...
@@ -355,7 +361,7 @@
bottom
:
0
;
bottom
:
0
;
width
:
550px
;
width
:
550px
;
background
:
#ffffff
;
background
:
#ffffff
;
z-index
:
9999999
;
z-index
:
100
;
}
}
.ListCar-box
{
.ListCar-box
{
width
:
100%
;
width
:
100%
;
...
...
src/components/index.vue
View file @
358eb8ef
...
@@ -4618,7 +4618,9 @@
...
@@ -4618,7 +4618,9 @@
width: 100%;
width: 100%;
margin: 0 auto;
margin: 0 auto;
height: 100%;
height: 100%;
z-index: 2019128;
z-index: 99;
display: flex;
flex-wrap: nowrap;
}
}
.nav-middle ul li {
.nav-middle ul li {
...
...
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