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
07f857e0
Commit
07f857e0
authored
Feb 05, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c0293224
Hide 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 @
07f857e0
...
@@ -253,14 +253,25 @@
...
@@ -253,14 +253,25 @@
String10
=
''
,
Price10
=
0
,
String11
=
''
,
Price11
=
0
,
String12
=
''
,
Price12
=
0
String10
=
''
,
Price10
=
0
,
String11
=
''
,
Price11
=
0
,
String12
=
''
,
Price12
=
0
let
datas
=
''
,
let
datas
=
''
,
Total
=
0
Total
=
0
var
TotalPNum
=
childItem
.
ChirdNum
+
childItem
.
ManNum
+
childItem
.
OldPeopleNum
if
(
childItem
.
ManNum
>
0
)
{
if
(
childItem
.
ManNum
>
0
)
{
String1
=
`
${
childItem
.
Unit_Price
}
-
${
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
}
*
${
childItem
.
ManNum
}
`
if
(
childItem
.
DiscountPrice
>
0
){
Price1
=
childItem
.
Unit_Price
-
(
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
)
*
childItem
.
ManNum
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'
)
console
.
log
(
String1
,
Price1
,
'------String1'
)
}
}
if
(
childItem
.
ChirdNum
>
0
){
if
(
childItem
.
ChirdNum
>
0
){
String2
=
`+(
${
childItem
.
Unit_Price
}
+
${
OrderPrice
.
BabyChargePrice
}
-
${
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
}
) *
${
childItem
.
ChirdNum
}
`
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
Price2
=
(
childItem
.
Unit_Price
+
OrderPrice
.
BabyChargePrice
-
(
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
))
*
childItem
.
ChirdNum
console
.
log
(
String1
,
Price2
,
'------String2'
)
console
.
log
(
String1
,
Price2
,
'------String2'
)
}
}
...
@@ -270,43 +281,66 @@
...
@@ -270,43 +281,66 @@
console
.
log
(
String1
,
Price3
,
'------String3'
)
console
.
log
(
String1
,
Price3
,
'------String3'
)
}
}
if
(
childItem
.
OldPeopleNum
>
0
){
if
(
childItem
.
OldPeopleNum
>
0
){
String4
=
`+(
${
OrderPrice
.
Unit_Price
}
+
${
OrderPrice
.
OldManChargePrice
}
-
${
childItem
.
DiscountPrice
}
) *
${
childItem
.
OldPeopleNum
}
`
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
Price4
=
(
OrderPrice
.
Unit_Price
+
OrderPrice
.
OldManChargePrice
-
childItem
.
DiscountPrice
)
*
childItem
.
OldPeopleNum
console
.
log
(
String1
,
Price4
,
'------String4'
)
console
.
log
(
String1
,
Price4
,
'------String4'
)
}
}
if
(
childItem
.
Guest
Num
>
0
){
if
(
TotalP
Num
>
0
){
String5
=
`+(
${
OrderPrice
.
OtherPrice
}
*
${
childItem
.
Guest
Num
}
)`
String5
=
`+(
${
OrderPrice
.
OtherPrice
}
*
${
TotalP
Num
}
)`
Price5
=
OrderPrice
.
OtherPrice
*
childItem
.
Guest
Num
Price5
=
OrderPrice
.
OtherPrice
*
TotalP
Num
console
.
log
(
String1
,
Price5
,
'------String5'
)
console
.
log
(
String1
,
Price5
,
'------String5'
)
String6
=
`+(
${
OrderPrice
.
VisaPrice
}
*
${
childItem
.
Guest
Num
}
)`
String6
=
`+(
${
OrderPrice
.
VisaPrice
}
*
${
TotalP
Num
}
)`
Price6
=
OrderPrice
.
VisaPrice
*
childItem
.
Guest
Num
Price6
=
OrderPrice
.
VisaPrice
*
TotalP
Num
console
.
log
(
String1
,
Price6
,
'------String6'
)
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'
)
console
.
log
(
String7
,
Price7
,
'------String7'
)
String8
=
`+(
${
childItem
.
SingleRoomNum
}
*
${
OrderPrice
.
SingleRoomPrice
}
)`
String8
=
`+(
${
childItem
.
SingleRoomNum
}
*
${
OrderPrice
.
SingleRoomPrice
}
)`
Price8
=
childItem
.
SingleRoomNum
*
OrderPrice
.
SingleRoomPrice
Price8
=
childItem
.
SingleRoomNum
*
OrderPrice
.
SingleRoomPrice
console
.
log
(
String8
,
Price8
,
'------String8'
)
console
.
log
(
String8
,
Price8
,
'------String8'
)
if
(
childItem
.
ChirdNeedBedNum
>
0
){
String9
=
`+(
${
childItem
.
ChirdNeedBedNum
}
*
${
OrderPrice
.
ChildNeedPrice
}
)`
String9
=
`+(
${
childItem
.
ChirdNeedBedNum
}
*
${
OrderPrice
.
ChildNeedPrice
}
)`
Price9
=
childItem
.
ChirdNeedBedNum
*
OrderPrice
.
ChildNeedPrice
Price9
=
childItem
.
ChirdNeedBedNum
*
OrderPrice
.
ChildNeedPrice
console
.
log
(
String9
,
Price9
,
'------String9'
)
console
.
log
(
String9
,
Price9
,
'------String9'
)
}
String10
=
`+((
${
childItem
.
ChirdNum
}
-
${
childItem
.
ChirdNeedBedNum
}
) *
${
OrderPrice
.
ChildNoNeedPrice
}
)`
Price10
=
(
childItem
.
ChirdNum
-
childItem
.
ChirdNeedBedNum
)
*
OrderPrice
.
ChildNoNeedPrice
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'
)
console
.
log
(
String10
,
Price10
,
'------String10'
)
}
String11
=
`+(
${
OrderPrice
.
GoAddPrice
}
+
${
OrderPrice
.
BackAddPrice
}
)`
if
(
OrderPrice
.
GoAddPrice
>
0
){
Price11
=
OrderPrice
.
GoAddPrice
+
OrderPrice
.
BackAddPrice
String11
+=
`+
${
OrderPrice
.
GoAddPrice
}
`
Price11
+=
OrderPrice
.
GoAddPrice
}
if
(
OrderPrice
.
BackAddPrice
>
0
){
String11
+=
`+
${
OrderPrice
.
BackAddPrice
}
`
Price11
+=
OrderPrice
.
BackAddPrice
}
console
.
log
(
String11
,
Price11
,
'------String11'
)
console
.
log
(
String11
,
Price11
,
'------String11'
)
if
(
childItem
.
AirticketNum
>
0
){
String12
=
`+(
${
OrderPrice
.
SingleDMCPrice
}
*
${
childItem
.
AirticketNum
}
)`
String12
=
`+(
${
OrderPrice
.
SingleDMCPrice
}
*
${
childItem
.
AirticketNum
}
)`
Price12
=
OrderPrice
.
SingleDMCPrice
*
childItem
.
AirticketNum
Price12
=
OrderPrice
.
SingleDMCPrice
*
childItem
.
AirticketNum
console
.
log
(
String12
,
Price12
,
'------String10'
)
console
.
log
(
String12
,
Price12
,
'------String10'
)
}
datas
=
`
${
String1
}${
String2
}${
String3
}${
String4
}${
String5
}${
String6
}${
String7
}${
String8
}${
String9
}${
String10
}${
String11
}${
String12
}
`
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
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