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
209bc0ee
Commit
209bc0ee
authored
Feb 05, 2024
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
157dd6d8
42893168
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
25 deletions
+59
-25
PriceDetail.vue
src/components/orderCommon/PriceDetail.vue
+59
-25
No files found.
src/components/orderCommon/PriceDetail.vue
View file @
209bc0ee
...
...
@@ -276,14 +276,25 @@
String10
=
''
,
Price10
=
0
,
String11
=
''
,
Price11
=
0
,
String12
=
''
,
Price12
=
0
let
datas
=
''
,
Total
=
0
var
TotalPNum
=
childItem
.
ChirdNum
+
childItem
.
ManNum
+
childItem
.
OldPeopleNum
if
(
childItem
.
ManNum
>
0
)
{
String1
=
`
${
childItem
.
Unit_Price
}
-
${
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
}
*
${
childItem
.
ManNum
}
`
Price1
=
childItem
.
Unit_Price
-
(
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
)
*
childItem
.
ManNum
if
(
childItem
.
DiscountPrice
>
0
){
String1
=
`
${
childItem
.
Unit_Price
}
-
${
childItem
.
DiscountPrice
}
*
${
childItem
.
ManNum
}
`
}
else
{
String1
=
`
${
childItem
.
Unit_Price
}
*
${
childItem
.
ManNum
}
`
}
Price1
=
(
childItem
.
Unit_Price
-
(
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
))
*
childItem
.
ManNum
console
.
log
(
String1
,
Price1
,
'------String1'
)
}
if
(
childItem
.
ChirdNum
>
0
){
if
(
childItem
.
DiscountPrice
>
0
){
String2
=
`+(
${
childItem
.
Unit_Price
}
+
${
OrderPrice
.
BabyChargePrice
}
-
${
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
}
) *
${
childItem
.
ChirdNum
}
`
}
else
{
String2
=
`+(
${
childItem
.
Unit_Price
}
+
${
OrderPrice
.
BabyChargePrice
}
) *
${
childItem
.
ChirdNum
}
`
}
Price2
=
(
childItem
.
Unit_Price
+
OrderPrice
.
BabyChargePrice
-
(
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
))
*
childItem
.
ChirdNum
console
.
log
(
String1
,
Price2
,
'------String2'
)
}
...
...
@@ -293,43 +304,66 @@
console
.
log
(
String1
,
Price3
,
'------String3'
)
}
if
(
childItem
.
OldPeopleNum
>
0
){
if
(
childItem
.
DiscountPrice
>
0
){
String4
=
`+(
${
OrderPrice
.
Unit_Price
}
+
${
OrderPrice
.
OldManChargePrice
}
-
${
childItem
.
DiscountPrice
}
) *
${
childItem
.
OldPeopleNum
}
`
}
else
{
String4
=
`+(
${
OrderPrice
.
Unit_Price
}
+
${
OrderPrice
.
OldManChargePrice
}
) *
${
childItem
.
OldPeopleNum
}
`
}
Price4
=
(
OrderPrice
.
Unit_Price
+
OrderPrice
.
OldManChargePrice
-
childItem
.
DiscountPrice
)
*
childItem
.
OldPeopleNum
console
.
log
(
String1
,
Price4
,
'------String4'
)
}
if
(
childItem
.
Guest
Num
>
0
){
String5
=
`+(
${
OrderPrice
.
OtherPrice
}
*
${
childItem
.
Guest
Num
}
)`
Price5
=
OrderPrice
.
OtherPrice
*
childItem
.
Guest
Num
if
(
TotalP
Num
>
0
){
String5
=
`+(
${
OrderPrice
.
OtherPrice
}
*
${
TotalP
Num
}
)`
Price5
=
OrderPrice
.
OtherPrice
*
TotalP
Num
console
.
log
(
String1
,
Price5
,
'------String5'
)
String6
=
`+(
${
OrderPrice
.
VisaPrice
}
*
${
childItem
.
Guest
Num
}
)`
Price6
=
OrderPrice
.
VisaPrice
*
childItem
.
Guest
Num
String6
=
`+(
${
OrderPrice
.
VisaPrice
}
*
${
TotalP
Num
}
)`
Price6
=
OrderPrice
.
VisaPrice
*
TotalP
Num
console
.
log
(
String1
,
Price6
,
'------String6'
)
}
String7
=
`+(
${
OrderPrice
.
BackVisaPrice
}
* (
${
childItem
.
GuestNum
}
+
${
childItem
.
BabyNum
}
-
${
childItem
.
VisaNum
}
))`
Price7
=
OrderPrice
.
BackVisaPrice
*
(
childItem
.
GuestNum
+
childItem
.
BabyNum
-
childItem
.
VisaNum
)
String7
=
`+(
${
OrderPrice
.
BackVisaPrice
}
* (
${
TotalPNum
}
+
${
childItem
.
BabyNum
}
-
${
childItem
.
VisaNum
}
))`
Price7
=
OrderPrice
.
BackVisaPrice
*
(
TotalPNum
+
childItem
.
BabyNum
-
childItem
.
VisaNum
)
console
.
log
(
String7
,
Price7
,
'------String7'
)
String8
=
`+(
${
childItem
.
SingleRoomNum
}
*
${
OrderPrice
.
SingleRoomPrice
}
)`
Price8
=
childItem
.
SingleRoomNum
*
OrderPrice
.
SingleRoomPrice
console
.
log
(
String8
,
Price8
,
'------String8'
)
if
(
childItem
.
ChirdNeedBedNum
>
0
){
String9
=
`+(
${
childItem
.
ChirdNeedBedNum
}
*
${
OrderPrice
.
ChildNeedPrice
}
)`
Price9
=
childItem
.
ChirdNeedBedNum
*
OrderPrice
.
ChildNeedPrice
console
.
log
(
String9
,
Price9
,
'------String9'
)
}
if
(
childItem
.
ChirdNum
){
if
(
childItem
.
ChirdNeedBedNum
>
0
){
String10
=
`+((
${
childItem
.
ChirdNum
}
-
${
childItem
.
ChirdNeedBedNum
}
) *
${
OrderPrice
.
ChildNoNeedPrice
}
)`
}
else
{
String10
=
`+(
${
childItem
.
ChirdNum
}
*
${
OrderPrice
.
ChildNoNeedPrice
}
)`
}
Price10
=
(
childItem
.
ChirdNum
-
childItem
.
ChirdNeedBedNum
)
*
OrderPrice
.
ChildNoNeedPrice
console
.
log
(
String10
,
Price10
,
'------String10'
)
}
if
(
OrderPrice
.
GoAddPrice
>
0
){
String11
+=
`+
${
OrderPrice
.
GoAddPrice
}
`
Price11
+=
OrderPrice
.
GoAddPrice
}
if
(
OrderPrice
.
BackAddPrice
>
0
){
String11
+=
`+
${
OrderPrice
.
BackAddPrice
}
`
Price11
+=
OrderPrice
.
BackAddPrice
}
String11
=
`+(
${
OrderPrice
.
GoAddPrice
}
+
${
OrderPrice
.
BackAddPrice
}
)`
Price11
=
OrderPrice
.
GoAddPrice
+
OrderPrice
.
BackAddPrice
console
.
log
(
String11
,
Price11
,
'------String11'
)
if
(
childItem
.
AirticketNum
>
0
){
String12
=
`+(
${
OrderPrice
.
SingleDMCPrice
}
*
${
childItem
.
AirticketNum
}
)`
Price12
=
OrderPrice
.
SingleDMCPrice
*
childItem
.
AirticketNum
console
.
log
(
String12
,
Price12
,
'------String10'
)
}
datas
=
`
${
String1
}${
String2
}${
String3
}${
String4
}${
String5
}${
String6
}${
String7
}${
String8
}${
String9
}${
String10
}${
String11
}${
String12
}
`
Total
=
Price1
+
Price2
+
Price3
+
Price4
+
Price5
+
Price6
+
Price7
+
Price8
+
Price9
+
Price10
+
Price11
+
Price12
...
...
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