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
c0293224
Commit
c0293224
authored
Feb 05, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
94667847
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
401 additions
and
264 deletions
+401
-264
RegistrationList.vue
src/components/TravelManager/TravelList/RegistrationList.vue
+9
-264
PriceDetail.vue
src/components/orderCommon/PriceDetail.vue
+392
-0
No files found.
src/components/TravelManager/TravelList/RegistrationList.vue
View file @
c0293224
...
@@ -1816,7 +1816,6 @@
...
@@ -1816,7 +1816,6 @@
<th
width=
"260"
>
{{ $t("fnc.danhao") }}
</th>
<th
width=
"260"
>
{{ $t("fnc.danhao") }}
</th>
<th
width=
"150"
>
{{ $t("fnc.khxinxi") }}
</th>
<th
width=
"150"
>
{{ $t("fnc.khxinxi") }}
</th>
<th
width=
"70"
class=
"nowrap"
>
{{ $t("admin.admin_personNumber") }}/{{ $t("salesModule.AirNum") }}
</th>
<th
width=
"70"
class=
"nowrap"
>
{{ $t("admin.admin_personNumber") }}/{{ $t("salesModule.AirNum") }}
</th>
<th
width=
"110"
class=
"nowrap"
>
{{ $t("fnc.danjia") }}
</th>
<th
width=
"110"
class=
"nowrap"
>
{{ $t("fnc.cjdanjia") }}
</th>
<th
width=
"110"
class=
"nowrap"
>
{{ $t("fnc.cjdanjia") }}
</th>
<th
width=
"110"
class=
"nowrap"
>
{{ $t("fnc.yszonge") }}
</th>
<th
width=
"110"
class=
"nowrap"
>
{{ $t("fnc.yszonge") }}
</th>
<th
width=
"110"
class=
"nowrap"
>
{{ $t("fnc.shishou") }}
</th>
<th
width=
"110"
class=
"nowrap"
>
{{ $t("fnc.shishou") }}
</th>
...
@@ -2393,193 +2392,14 @@
...
@@ -2393,193 +2392,14 @@
}}{{
$t
(
"sm.person"
)
}}
)
}}{{
$t
(
"sm.person"
)
}}
)
</span>
</span>
</td>
</td>
<td
class=
"nowrap"
>
{{
childItem
.
TC_Price
}}
</td>
<td>
{{
childItem
.
Unit_Price
}}
</td>
<td>
{{
childItem
.
Unit_Price
}}
</td>
<td
class=
"nowrap"
>
<td
class=
"nowrap"
>
<p
style=
"text-decoration: underline;cursor: pointer;"
@
click=
"SellPrice(childItem)"
>
<p
style=
"text-decoration: underline;cursor: pointer;"
@
click=
"SellPrice(childItem)"
>
{{
childItem
.
OrderPrice
.
B2BMemberPrice
}}
<PriceDetail
:OrderId=
"childItem.OrderId"
:obj=
"childItem"
></PriceDetail>
<!--
<el-popover
width=
"630"
trigger=
"click"
>
-->
<!--
<el-popover
width=
"630"
trigger=
"click"
>
-->
<el-popover
width=
"630"
>
<table
class=
"PQ_detail"
>
<!--
{{
childItem
.
PreferPrice
}}
-->
<tr>
</p>
<td
colspan=
"6"
style=
"text-align: left; padding-left: 10px"
>
{{
$t
(
"salesModule.BasePrice"
)
}}
</td>
</tr>
<tr>
<td
colspan=
"6"
style=
"text-align: left; padding-left: 10px"
>
总金额:
{{
getTotalList
(
childItem
)
}}
<!--
decimal PreferPrice = ((dmodel.Unit_Price ?? 0) - (model.DiscountPrice ?? 0)) * (dmodel.ManNum ?? 0);
PreferPrice += ((dmodel.Unit_Price ?? 0) + (model.BabyChargePrice ?? 0) - (model.DiscountPrice ?? 0)) * (dmodel.ChirdNum ?? 0);
PreferPrice += (dmodel.BabyNum ?? 0) * (model.BabyPrice ?? 0);
PreferPrice += ((dmodel.Unit_Price ?? 0) + (model.OldManChargePrice ?? 0) - (model.DiscountPrice ?? 0)) * (dmodel.OldPeopleNum ?? 0);
PreferPrice += (model.OtherPrice ?? 0) * (TotalPNum);
PreferPrice += (model.VisaPrice ?? 0) * (TotalPNum);
PreferPrice -= (model.BackVisaPrice ?? 0) * (TotalPNum + (dmodel.BabyNum ?? 0) - (dmodel.VisaNum ?? 0));
PreferPrice += (dmodel.SingleRoomNum ?? 0) * (model.SingleRoomPrice ?? 0);
PreferPrice += (dmodel.ChirdNeedBedNum ?? 0) * (model.ChildNeedPrice ?? 0);
PreferPrice -= ((dmodel.ChirdNum ?? 0) - (dmodel.ChirdNeedBedNum ?? 0)) * (model.ChildNoNeedPrice ?? 0);
PreferPrice -= (ScenicRefundMoney) * TotalPNum;
PreferPrice += UnionPrice;
PreferPrice += (model.SingleDMCPrice ?? 0) * (dmodel.AirticketNum ?? 0); -->
</td>
</tr>
<tr>
<th>
{{
$t
(
"advmanager.v_type"
)
}}
</th>
<th>
{{
$t
(
"salesModule.HYTHJ"
)
}}
</th>
<th>
{{
$t
(
"salesModule.PTTHJ"
)
}}
</th>
<th>
{{
$t
(
"salesModule.ZKHYJ"
)
}}
</th>
<th
colspan=
"2"
>
{{
$t
(
"salesModule.PTZKJ"
)
}}
</th>
</tr>
<tr>
<td>
{{
$t
(
"salesModule.Adult"
)
}}
</td>
<td>
{{
childItem
.
OrderPrice
.
B2BMemberPrice
|
priceFormat
(
childItem
.
OrderPrice
.
B2BMemberPrice
)
}}
</td>
<td>
{{
childItem
.
OrderPrice
.
B2BPrice
|
priceFormat
(
childItem
.
OrderPrice
.
B2BPrice
)
}}
</td>
<td>
{{
childItem
.
OrderPrice
.
B2CMemberPrice
|
priceFormat
(
childItem
.
OrderPrice
.
B2CMemberPrice
)
}}
</td>
<td
colspan=
"2"
>
{{
childItem
.
OrderPrice
.
B2CPrice
|
priceFormat
(
childItem
.
OrderPrice
.
B2CPrice
)
}}
</td>
</tr>
<tr>
<td>
{{
$t
(
"salesModule.ChildBed"
)
}}
</td>
<td>
{{
(
childItem
.
OrderPrice
.
B2BMemberPrice
+
childItem
.
OrderPrice
.
ChildNeedPrice
)
|
priceFormat
(
childItem
.
OrderPrice
.
B2BMemberPrice
+
childItem
.
OrderPrice
.
ChildNeedPrice
)
}}
</td>
<td>
{{
(
childItem
.
OrderPrice
.
B2BPrice
+
childItem
.
OrderPrice
.
ChildNeedPrice
)
|
priceFormat
(
childItem
.
OrderPrice
.
B2BPrice
+
childItem
.
OrderPrice
.
ChildNeedPrice
)
}}
</td>
<td>
{{
(
childItem
.
OrderPrice
.
B2CMemberPrice
+
childItem
.
OrderPrice
.
ChildNeedPrice
)
|
priceFormat
(
childItem
.
OrderPrice
.
B2CMemberPrice
+
childItem
.
OrderPrice
.
ChildNeedPrice
)
}}
</td>
<td
colspan=
"2"
>
{{
(
childItem
.
OrderPrice
.
B2CPrice
+
childItem
.
OrderPrice
.
ChildNeedPrice
)
|
priceFormat
(
childItem
.
OrderPrice
.
B2CPrice
+
childItem
.
OrderPrice
.
ChildNeedPrice
)
}}
</td>
</tr>
<tr>
<td>
{{
$t
(
"salesModule.ChildNoBed"
)
}}
</td>
<td>
{{
(
childItem
.
OrderPrice
.
B2BMemberPrice
-
childItem
.
OrderPrice
.
ChildNoNeedPrice
)
|
priceFormat
(
childItem
.
OrderPrice
.
B2BMemberPrice
-
childItem
.
OrderPrice
.
ChildNoNeedPrice
)
}}
</td>
<td>
{{
(
childItem
.
OrderPrice
.
B2BPrice
-
childItem
.
OrderPrice
.
ChildNoNeedPrice
)
|
priceFormat
(
childItem
.
OrderPrice
.
B2BPrice
-
childItem
.
OrderPrice
.
ChildNoNeedPrice
)
}}
</td>
<td>
{{
(
childItem
.
OrderPrice
.
B2CMemberPrice
-
childItem
.
OrderPrice
.
ChildNoNeedPrice
)
|
priceFormat
(
childItem
.
OrderPrice
.
B2CMemberPrice
-
childItem
.
OrderPrice
.
ChildNoNeedPrice
)
}}
</td>
<td
colspan=
"2"
>
{{
(
childItem
.
OrderPrice
.
B2CPrice
-
childItem
.
OrderPrice
.
ChildNoNeedPrice
)
|
priceFormat
(
childItem
.
OrderPrice
.
B2CPrice
-
childItem
.
OrderPrice
.
ChildNoNeedPrice
)
}}
</td>
</tr>
<tr>
<td>
{{
$t
(
"salesModule.SingleJ"
)
}}
</td>
<td
colspan=
"5"
>
{{
childItem
.
OrderPrice
.
SingleDMCPrice
|
priceFormat
(
childItem
.
OrderPrice
.
SingleDMCPrice
)
}}
</td>
</tr>
<tr>
<td>
{{
$t
(
"Operation.Op_baby"
)
}}
</td>
<td
colspan=
"5"
>
{{
childItem
.
OrderPrice
.
BabyPrice
|
priceFormat
(
childItem
.
OrderPrice
.
BabyPrice
)
}}
</td>
</tr>
<tr>
<td
colspan=
"6"
style=
"text-align: left; padding-left: 10px"
>
{{
$t
(
"salesModule.OtherPrice"
)
}}
</td>
</tr>
<tr>
<th>
{{
$t
(
"Operation.Op_oldmanSurcharge"
)
}}
</th>
<th>
{{
$t
(
"Operation.Op_childSurcharge"
)
}}
</th>
<th>
{{
$t
(
"salesModule.VisaBack"
)
}}
</th>
<th>
{{
$t
(
"Operation.Op_singleRoomcha"
)
}}
</th>
<th>
{{
$t
(
"Operation.Op_zafei"
)
}}
</th>
<th>
小费
</th>
</tr>
<tr>
<td>
{{
childItem
.
OrderPrice
.
OldManChargePrice
|
priceFormat
(
childItem
.
OrderPrice
.
OldManChargePrice
)
}}
</td>
<td>
{{
childItem
.
OrderPrice
.
BabyChargePrice
|
priceFormat
(
childItem
.
OrderPrice
.
BabyChargePrice
)
}}
</td>
<td>
{{
childItem
.
OrderPrice
.
VisaPrice
|
priceFormat2
(
childItem
.
OrderPrice
.
VisaPrice
)
}}
(-
{{
childItem
.
OrderPrice
.
BackVisaPrice
|
priceFormat
(
childItem
.
OrderPrice
.
BackVisaPrice
)
}}
)
</td>
<td>
{{
childItem
.
OrderPrice
.
SingleRoomPrice
|
priceFormat
(
childItem
.
OrderPrice
.
SingleRoomPrice
)
}}
</td>
<td>
{{
childItem
.
OrderPrice
.
OtherPrice
|
priceFormat
(
childItem
.
OrderPrice
.
OtherPrice
)
}}
</td>
<td>
{{
childItem
.
OrderPrice
.
TipAmount
?
childItem
.
OrderPrice
.
TipAmount
:
"0.00"
}}
</td>
</tr>
</table>
<span
slot=
"reference"
class=
"price"
>
{{
childItem
.
PreferPrice
}}
</span>
</el-popover>
<!--
{{
childItem
.
PreferPrice
}}
-->
</p>
</td>
</td>
<td
class=
"nowrap"
>
<td
class=
"nowrap"
>
<el-popover
style=
"padding: 0"
width=
"400"
trigger=
"click"
>
<el-popover
style=
"padding: 0"
width=
"400"
trigger=
"click"
>
...
@@ -4065,6 +3885,7 @@
...
@@ -4065,6 +3885,7 @@
import
commonShouSun
from
"../../commonPage/commonShouSun.vue"
;
import
commonShouSun
from
"../../commonPage/commonShouSun.vue"
;
import
EditTip
from
"../../SalesModule/Common/EditTip.vue"
;
import
EditTip
from
"../../SalesModule/Common/EditTip.vue"
;
import
orderTicketUnion
from
'../../commonPage/orderTicketUnion.vue'
;
import
orderTicketUnion
from
'../../commonPage/orderTicketUnion.vue'
;
import
PriceDetail
from
'../../orderCommon/PriceDetail.vue'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -4519,6 +4340,7 @@
...
@@ -4519,6 +4340,7 @@
updateSalesMan
:
updateSalesMan
,
updateSalesMan
:
updateSalesMan
,
commonShouSun
:
commonShouSun
,
commonShouSun
:
commonShouSun
,
orderTicketUnion
:
orderTicketUnion
,
orderTicketUnion
:
orderTicketUnion
,
PriceDetail
,
},
},
filters
:
{
filters
:
{
priceFormat
(
value
)
{
priceFormat
(
value
)
{
...
@@ -4536,9 +4358,9 @@
...
@@ -4536,9 +4358,9 @@
while
(
rgx
.
test
(
x1
))
{
while
(
rgx
.
test
(
x1
))
{
x1
=
x1
.
replace
(
rgx
,
"$1"
+
","
+
"$2"
);
x1
=
x1
.
replace
(
rgx
,
"$1"
+
","
+
"$2"
);
}
}
return
x1
+
x2
;
return
x1
+
x2
;
},
},
priceFormat2
(
value
)
{
priceFormat2
(
value
)
{
...
@@ -5575,83 +5397,6 @@
...
@@ -5575,83 +5397,6 @@
this
.
notUpdate
=
true
;
this
.
notUpdate
=
true
;
}
}
},
},
getTotalList
(
childItem
)
{
let
String1
=
''
,
Price1
=
0
,
String2
=
''
,
Price2
=
0
,
String3
=
''
,
Price3
=
0
,
String4
=
''
,
Price4
=
0
,
String5
=
''
,
Price5
=
0
,
String6
=
''
,
Price6
=
0
,
String7
=
''
,
Price7
=
0
,
String8
=
''
,
Price8
=
0
,
String9
=
''
,
Price9
=
0
,
String10
=
''
,
Price10
=
0
,
String11
=
''
,
Price11
=
0
,
String12
=
''
,
Price12
=
0
let
datas
=
''
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
console
.
log
(
String1
,
Price1
,
'------String1'
)
}
if
(
childItem
.
ChirdNum
>
0
){
String2
=
`(
${
childItem
.
Unit_Price
}
+
${
childItem
.
OrderPrice
.
BabyChargePrice
}
-
${
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
}
) *
${
childItem
.
ChirdNum
}
`
Price2
=
(
childItem
.
Unit_Price
+
childItem
.
OrderPrice
.
BabyChargePrice
-
(
childItem
.
DiscountPrice
>
0
?
childItem
.
DiscountPrice
:
0
))
*
childItem
.
ChirdNum
console
.
log
(
String1
,
Price2
,
'------String2'
)
}
if
(
childItem
.
BabyNum
>
0
){
String3
=
`
${
childItem
.
BabyNum
}
*
${
childItem
.
OrderPrice
.
BabyPrice
}
`
Price3
=
childItem
.
BabyNum
*
childItem
.
OrderPrice
.
BabyPrice
console
.
log
(
String1
,
Price3
,
'------String3'
)
}
if
(
childItem
.
OldPeopleNum
>
0
){
String4
=
`(
${
childItem
.
OrderPrice
.
Unit_Price
}
+
${
childItem
.
OrderPrice
.
OldManChargePrice
}
-
${
childItem
.
DiscountPrice
}
) *
${
childItem
.
OldPeopleNum
}
`
Price4
=
(
childItem
.
OrderPrice
.
Unit_Price
+
childItem
.
OrderPrice
.
OldManChargePrice
-
childItem
.
DiscountPrice
)
*
childItem
.
OldPeopleNum
console
.
log
(
String1
,
Price4
,
'------String4'
)
}
if
(
childItem
.
GuestNum
>
0
){
String5
=
`
${
childItem
.
OrderPrice
.
OtherPrice
}
*
${
childItem
.
GuestNum
}
`
Price5
=
childItem
.
OrderPrice
.
OtherPrice
*
childItem
.
GuestNum
console
.
log
(
String1
,
Price5
,
'------String5'
)
String6
=
`
${
childItem
.
OrderPrice
.
VisaPrice
}
*
${
childItem
.
GuestNum
}
`
Price6
=
childItem
.
OrderPrice
.
VisaPrice
*
childItem
.
GuestNum
console
.
log
(
String1
,
Price6
,
'------String6'
)
String7
=
`({{childItem.OrderPrice.BackVisaPrice }}) * ({{childItem.GuestNum}} + ({{childItem.BabyNum}} ) - ({{childItem.VisaNum}}))`
Price7
=
childItem
.
OrderPrice
.
VisaPrice
*
childItem
.
GuestNum
console
.
log
(
String7
,
Price7
,
'------String7'
)
String8
=
`({{childItem.SingleRoomNum}} ) * ({{childItem.OrderPrice.SingleRoomPrice}} )`
Price8
=
childItem
.
OrderPrice
.
VisaPrice
*
childItem
.
GuestNum
console
.
log
(
String8
,
Price8
,
'------String8'
)
String9
=
`({{childItem.ChirdNeedBedNum}} ) * ({{childItem.OrderPrice.ChildNeedPrice}} )`
Price9
=
childItem
.
OrderPrice
.
VisaPrice
*
childItem
.
GuestNum
console
.
log
(
String9
,
Price9
,
'------String9'
)
String10
=
`(({{childItem.ChirdNum }}) - ({{childItem.ChirdNeedBedNum }})) * ({{childItem.OrderPrice.ChildNoNeedPrice}})`
Price10
=
childItem
.
OrderPrice
.
VisaPrice
*
childItem
.
GuestNum
console
.
log
(
String10
,
Price10
,
'------String10'
)
String11
=
`{{childItem.OrderPrice.GoAddPrice}}+{{childItem.OrderPrice.BackAddPrice}}`
Price11
=
childItem
.
OrderPrice
.
VisaPrice
*
childItem
.
GuestNum
console
.
log
(
String11
,
Price11
,
'------String11'
)
String12
=
`({{childItem.OrderPrice.SingleDMCPrice }}) * ({{childItem.AirticketNum }})`
Price12
=
childItem
.
OrderPrice
.
VisaPrice
*
childItem
.
GuestNum
console
.
log
(
String12
,
Price12
,
'------String10'
)
}
return
{
String
:
``
,
Price
:
0
}
// + ({{childItem.Unit_Price }} + {{childItem.OrderPrice.BabyChargePrice}} - {{childItem.DiscountPrice>0?childItem.DiscountPrice:0 }}) * {{childItem.ChirdNum}}
// + {{childItem.BabyNum }}* {{childItem.OrderPrice.BabyPrice}}
// + ({{childItem.OrderPrice.Unit_Price}} + ( {{childItem.OrderPrice.OldManChargePrice}}) - ( {{childItem.DiscountPrice}})) * ( {{childItem.OldPeopleNum}})
// + ({{childItem.OrderPrice.OtherPrice }}) * ({{childItem.GuestNum}})
// + ({{childItem.OrderPrice.VisaPrice}} ) * ({{childItem.GuestNum}})
// - ({{childItem.OrderPrice.BackVisaPrice }}) * ({{childItem.GuestNum}} + ({{childItem.BabyNum}} ) - ({{childItem.VisaNum}}))
// + ({{childItem.SingleRoomNum}} ) * ({{childItem.OrderPrice.SingleRoomPrice}} )
// + ({{childItem.ChirdNeedBedNum}} ) * ({{childItem.OrderPrice.ChildNeedPrice}} )
// - (({{childItem.ChirdNum }}) - ({{childItem.ChirdNeedBedNum }})) * ({{childItem.OrderPrice.ChildNoNeedPrice}})
// +{{childItem.OrderPrice.GoAddPrice}}+{{childItem.OrderPrice.BackAddPrice}}
// + ({{childItem.OrderPrice.SingleDMCPrice }}) * ({{childItem.AirticketNum }})
},
getTotalPrice
(
t
)
{
getTotalPrice
(
t
)
{
if
(
t
===
3
)
{
if
(
t
===
3
)
{
if
(
parseFloat
(
this
.
addMsg
.
Unit_Price
).
toString
()
===
"NaN"
)
{
if
(
parseFloat
(
this
.
addMsg
.
Unit_Price
).
toString
()
===
"NaN"
)
{
...
...
src/components/orderCommon/PriceDetail.vue
0 → 100644
View file @
c0293224
<
style
scoped
>
</
style
>
<
template
>
<div>
<el-popover
width=
"630"
trigger=
"click"
>
<table
class=
"PQ_detail"
v-loading=
"loading"
v-if=
"OrderPrice&&OrderPrice.B2BMemberPrice"
>
<tr>
<td
colspan=
"6"
style=
"text-align: left; padding-left: 10px"
>
{{
$t
(
"salesModule.BasePrice"
)
}}
</td>
</tr>
<tr>
<td
colspan=
"6"
style=
"text-align: left; padding-left: 10px"
>
总金额:
{{
Getdetail
().
Total
}}
<div>
{{
Getdetail
().
datas
}}
</div>
<!--
decimal PreferPrice = ((dmodel.Unit_Price ?? 0) - (model.DiscountPrice ?? 0)) * (dmodel.ManNum ?? 0);
PreferPrice += ((dmodel.Unit_Price ?? 0) + (model.BabyChargePrice ?? 0) - (model.DiscountPrice ?? 0)) * (dmodel.ChirdNum ?? 0);
PreferPrice += (dmodel.BabyNum ?? 0) * (model.BabyPrice ?? 0);
PreferPrice += ((dmodel.Unit_Price ?? 0) + (model.OldManChargePrice ?? 0) - (model.DiscountPrice ?? 0)) * (dmodel.OldPeopleNum ?? 0);
PreferPrice += (model.OtherPrice ?? 0) * (TotalPNum);
PreferPrice += (model.VisaPrice ?? 0) * (TotalPNum);
PreferPrice -= (model.BackVisaPrice ?? 0) * (TotalPNum + (dmodel.BabyNum ?? 0) - (dmodel.VisaNum ?? 0));
PreferPrice += (dmodel.SingleRoomNum ?? 0) * (model.SingleRoomPrice ?? 0);
PreferPrice += (dmodel.ChirdNeedBedNum ?? 0) * (model.ChildNeedPrice ?? 0);
PreferPrice -= ((dmodel.ChirdNum ?? 0) - (dmodel.ChirdNeedBedNum ?? 0)) * (model.ChildNoNeedPrice ?? 0);
PreferPrice -= (ScenicRefundMoney) * TotalPNum;
PreferPrice += UnionPrice;
PreferPrice += (model.SingleDMCPrice ?? 0) * (dmodel.AirticketNum ?? 0); -->
</td>
</tr>
<tr>
<th>
{{
$t
(
"advmanager.v_type"
)
}}
</th>
<th>
{{
$t
(
"salesModule.HYTHJ"
)
}}
</th>
<th>
{{
$t
(
"salesModule.PTTHJ"
)
}}
</th>
<th>
{{
$t
(
"salesModule.ZKHYJ"
)
}}
</th>
<th
colspan=
"2"
>
{{
$t
(
"salesModule.PTZKJ"
)
}}
</th>
</tr>
<tr>
<td>
{{
$t
(
"salesModule.Adult"
)
}}
</td>
<td>
{{
OrderPrice
.
B2BMemberPrice
|
priceFormat
(
OrderPrice
.
B2BMemberPrice
)
}}
</td>
<td>
{{
OrderPrice
.
B2BPrice
|
priceFormat
(
OrderPrice
.
B2BPrice
)
}}
</td>
<td>
{{
OrderPrice
.
B2CMemberPrice
|
priceFormat
(
OrderPrice
.
B2CMemberPrice
)
}}
</td>
<td
colspan=
"2"
>
{{
OrderPrice
.
B2CPrice
|
priceFormat
(
OrderPrice
.
B2CPrice
)
}}
</td>
</tr>
<tr>
<td>
{{
$t
(
"salesModule.ChildBed"
)
}}
</td>
<td>
{{
(
OrderPrice
.
B2BMemberPrice
+
OrderPrice
.
ChildNeedPrice
)
|
priceFormat
(
OrderPrice
.
B2BMemberPrice
+
OrderPrice
.
ChildNeedPrice
)
}}
</td>
<td>
{{
(
OrderPrice
.
B2BPrice
+
OrderPrice
.
ChildNeedPrice
)
|
priceFormat
(
OrderPrice
.
B2BPrice
+
OrderPrice
.
ChildNeedPrice
)
}}
</td>
<td>
{{
(
OrderPrice
.
B2CMemberPrice
+
OrderPrice
.
ChildNeedPrice
)
|
priceFormat
(
OrderPrice
.
B2CMemberPrice
+
OrderPrice
.
ChildNeedPrice
)
}}
</td>
<td
colspan=
"2"
>
{{
(
OrderPrice
.
B2CPrice
+
OrderPrice
.
ChildNeedPrice
)
|
priceFormat
(
OrderPrice
.
B2CPrice
+
OrderPrice
.
ChildNeedPrice
)
}}
</td>
</tr>
<tr>
<td>
{{
$t
(
"salesModule.ChildNoBed"
)
}}
</td>
<td>
{{
(
OrderPrice
.
B2BMemberPrice
-
OrderPrice
.
ChildNoNeedPrice
)
|
priceFormat
(
OrderPrice
.
B2BMemberPrice
-
OrderPrice
.
ChildNoNeedPrice
)
}}
</td>
<td>
{{
(
OrderPrice
.
B2BPrice
-
OrderPrice
.
ChildNoNeedPrice
)
|
priceFormat
(
OrderPrice
.
B2BPrice
-
OrderPrice
.
ChildNoNeedPrice
)
}}
</td>
<td>
{{
(
OrderPrice
.
B2CMemberPrice
-
OrderPrice
.
ChildNoNeedPrice
)
|
priceFormat
(
OrderPrice
.
B2CMemberPrice
-
OrderPrice
.
ChildNoNeedPrice
)
}}
</td>
<td
colspan=
"2"
>
{{
(
OrderPrice
.
B2CPrice
-
OrderPrice
.
ChildNoNeedPrice
)
|
priceFormat
(
OrderPrice
.
B2CPrice
-
OrderPrice
.
ChildNoNeedPrice
)
}}
</td>
</tr>
<tr>
<td>
{{
$t
(
"salesModule.SingleJ"
)
}}
</td>
<td
colspan=
"5"
>
{{
OrderPrice
.
SingleDMCPrice
|
priceFormat
(
OrderPrice
.
SingleDMCPrice
)
}}
</td>
</tr>
<tr>
<td>
{{
$t
(
"Operation.Op_baby"
)
}}
</td>
<td
colspan=
"5"
>
{{
OrderPrice
.
BabyPrice
|
priceFormat
(
OrderPrice
.
BabyPrice
)
}}
</td>
</tr>
<tr>
<td
colspan=
"6"
style=
"text-align: left; padding-left: 10px"
>
{{
$t
(
"salesModule.OtherPrice"
)
}}
</td>
</tr>
<tr>
<th>
{{
$t
(
"Operation.Op_oldmanSurcharge"
)
}}
</th>
<th>
{{
$t
(
"Operation.Op_childSurcharge"
)
}}
</th>
<th>
{{
$t
(
"salesModule.VisaBack"
)
}}
</th>
<th>
{{
$t
(
"Operation.Op_singleRoomcha"
)
}}
</th>
<th>
{{
$t
(
"Operation.Op_zafei"
)
}}
</th>
<th>
{{
$t
(
"fnc.xiaofei"
)
}}
</th>
</tr>
<tr>
<td>
{{
OrderPrice
.
OldManChargePrice
|
priceFormat
(
OrderPrice
.
OldManChargePrice
)
}}
</td>
<td>
{{
OrderPrice
.
BabyChargePrice
|
priceFormat
(
OrderPrice
.
BabyChargePrice
)
}}
</td>
<td>
{{
OrderPrice
.
VisaPrice
|
priceFormat2
(
OrderPrice
.
VisaPrice
)
}}
(-
{{
OrderPrice
.
BackVisaPrice
|
priceFormat
(
OrderPrice
.
BackVisaPrice
)
}}
)
</td>
<td>
{{
OrderPrice
.
SingleRoomPrice
|
priceFormat
(
OrderPrice
.
SingleRoomPrice
)
}}
</td>
<td>
{{
OrderPrice
.
OtherPrice
|
priceFormat
(
OrderPrice
.
OtherPrice
)
}}
</td>
<td>
{{
OrderPrice
.
TipAmount
?
OrderPrice
.
TipAmount
:
"0.00"
}}
</td>
</tr>
</table>
<span
slot=
"reference"
class=
"price"
@
click=
"CalculationDetails"
>
{{
obj
.
PreferPrice
}}
</span>
</el-popover>
</div>
</
template
>
<
script
>
export
default
{
//订单信息
props
:
[
"OrderId"
,
"obj"
],
filters
:
{
priceFormat
(
value
)
{
if
(
value
==
null
)
{
return
0.0
;
}
console
.
log
(
"value"
,
value
);
let
nStr
=
value
.
toFixed
(
2
);
let
x
=
nStr
.
split
(
"."
);
let
x1
=
x
[
0
];
// console.log("X1",x1);
let
x2
=
x
.
length
>
1
?
"."
+
x
[
1
]
:
""
;
// console.log("X2",x2);
var
rgx
=
/
(\d
+
)(\d{3})
/
;
while
(
rgx
.
test
(
x1
))
{
x1
=
x1
.
replace
(
rgx
,
"$1"
+
","
+
"$2"
);
}
return
x1
+
x2
;
},
priceFormat2
(
value
)
{
if
(
value
==
null
)
{
return
"已包含"
;
}
let
nStr
=
value
.
toFixed
(
2
);
nStr
+=
""
;
let
x
=
nStr
.
split
(
"."
);
let
x1
=
x
[
0
];
let
x2
=
x
.
length
>
1
?
"."
+
x
[
1
]
:
""
;
var
rgx
=
/
(\d
+
)(\d{3})
/
;
while
(
rgx
.
test
(
x1
))
{
x1
=
x1
.
replace
(
rgx
,
"$1"
+
","
+
"$2"
);
}
let
result
=
x1
+
x2
;
if
(
result
===
"0.00"
)
{
result
=
"已包含"
;
}
return
result
;
},
},
data
()
{
return
{
childItem
:
{},
OrderPrice
:
null
,
loading
:
false
};
},
methods
:
{
Getdetail
()
{
let
childItem
=
this
.
childItem
let
OrderPrice
=
this
.
OrderPrice
let
String1
=
''
,
Price1
=
0
,
String2
=
''
,
Price2
=
0
,
String3
=
''
,
Price3
=
0
,
String4
=
''
,
Price4
=
0
,
String5
=
''
,
Price5
=
0
,
String6
=
''
,
Price6
=
0
,
String7
=
''
,
Price7
=
0
,
String8
=
''
,
Price8
=
0
,
String9
=
''
,
Price9
=
0
,
String10
=
''
,
Price10
=
0
,
String11
=
''
,
Price11
=
0
,
String12
=
''
,
Price12
=
0
let
datas
=
''
,
Total
=
0
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
console
.
log
(
String1
,
Price1
,
'------String1'
)
}
if
(
childItem
.
ChirdNum
>
0
){
String2
=
`+(
${
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'
)
}
if
(
childItem
.
BabyNum
>
0
){
String3
=
`+(
${
childItem
.
BabyNum
}
*
${
OrderPrice
.
BabyPrice
}
)`
Price3
=
childItem
.
BabyNum
*
OrderPrice
.
BabyPrice
console
.
log
(
String1
,
Price3
,
'------String3'
)
}
if
(
childItem
.
OldPeopleNum
>
0
){
String4
=
`+(
${
OrderPrice
.
Unit_Price
}
+
${
OrderPrice
.
OldManChargePrice
}
-
${
childItem
.
DiscountPrice
}
) *
${
childItem
.
OldPeopleNum
}
`
Price4
=
(
OrderPrice
.
Unit_Price
+
OrderPrice
.
OldManChargePrice
-
childItem
.
DiscountPrice
)
*
childItem
.
OldPeopleNum
console
.
log
(
String1
,
Price4
,
'------String4'
)
}
if
(
childItem
.
GuestNum
>
0
){
String5
=
`+(
${
OrderPrice
.
OtherPrice
}
*
${
childItem
.
GuestNum
}
)`
Price5
=
OrderPrice
.
OtherPrice
*
childItem
.
GuestNum
console
.
log
(
String1
,
Price5
,
'------String5'
)
String6
=
`+(
${
OrderPrice
.
VisaPrice
}
*
${
childItem
.
GuestNum
}
)`
Price6
=
OrderPrice
.
VisaPrice
*
childItem
.
GuestNum
console
.
log
(
String1
,
Price6
,
'------String6'
)
}
String7
=
`+(
${
OrderPrice
.
BackVisaPrice
}
* (
${
childItem
.
GuestNum
}
+
${
childItem
.
BabyNum
}
-
${
childItem
.
VisaNum
}
))`
Price7
=
OrderPrice
.
BackVisaPrice
*
(
childItem
.
GuestNum
+
childItem
.
BabyNum
-
childItem
.
VisaNum
)
console
.
log
(
String7
,
Price7
,
'------String7'
)
String8
=
`+(
${
childItem
.
SingleRoomNum
}
*
${
OrderPrice
.
SingleRoomPrice
}
)`
Price8
=
childItem
.
SingleRoomNum
*
OrderPrice
.
SingleRoomPrice
console
.
log
(
String8
,
Price8
,
'------String8'
)
String9
=
`+(
${
childItem
.
ChirdNeedBedNum
}
*
${
OrderPrice
.
ChildNeedPrice
}
)`
Price9
=
childItem
.
ChirdNeedBedNum
*
OrderPrice
.
ChildNeedPrice
console
.
log
(
String9
,
Price9
,
'------String9'
)
String10
=
`+((
${
childItem
.
ChirdNum
}
-
${
childItem
.
ChirdNeedBedNum
}
) *
${
OrderPrice
.
ChildNoNeedPrice
}
)`
Price10
=
(
childItem
.
ChirdNum
-
childItem
.
ChirdNeedBedNum
)
*
OrderPrice
.
ChildNoNeedPrice
console
.
log
(
String10
,
Price10
,
'------String10'
)
String11
=
`+(
${
OrderPrice
.
GoAddPrice
}
+
${
OrderPrice
.
BackAddPrice
}
)`
Price11
=
OrderPrice
.
GoAddPrice
+
OrderPrice
.
BackAddPrice
console
.
log
(
String11
,
Price11
,
'------String11'
)
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
console
.
log
(
datas
,
'----datas'
)
console
.
log
(
Total
,
'----Total'
)
return
{
datas
,
Total
}
},
CalculationDetails
()
{
this
.
loading
=
true
this
.
apipost
(
"order_post_GetOrderPrice"
,
{
OrderId
:
this
.
OrderId
},
(
res
)
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
.
OrderPrice
this
.
childItem
=
res
.
data
.
data
.
OrderModel
this
.
OrderPrice
=
{
AddCostPrice
:
data
.
AddCostPrice
?
data
.
AddCostPrice
:
0
,
AddSellPrice
:
data
.
AddSellPrice
?
data
.
AddSellPrice
:
0
,
AirticketMoney
:
data
.
AirticketMoney
?
data
.
AirticketMoney
:
0
,
B2BMemberPrice
:
data
.
B2BMemberPrice
?
data
.
B2BMemberPrice
:
0
,
B2BPrice
:
data
.
B2BPrice
?
data
.
B2BPrice
:
0
,
B2CMemberPrice
:
data
.
B2CMemberPrice
?
data
.
B2CMemberPrice
:
0
,
B2CPrice
:
data
.
B2CPrice
?
data
.
B2CPrice
:
0
,
BabyChargePrice
:
data
.
BabyChargePrice
?
data
.
BabyChargePrice
:
0
,
BabyPrice
:
data
.
BabyPrice
?
data
.
BabyPrice
:
0
,
BackAddPrice
:
data
.
BackAddPrice
?
data
.
BackAddPrice
:
0
,
BackVisaPrice
:
data
.
BackVisaPrice
?
data
.
BackVisaPrice
:
0
,
ChildNeedPrice
:
data
.
ChildNeedPrice
?
data
.
ChildNeedPrice
:
0
,
ChildNoNeedPrice
:
data
.
ChildNoNeedPrice
?
data
.
ChildNoNeedPrice
:
0
,
DiscountPrice
:
data
.
DiscountPrice
?
data
.
DiscountPrice
:
0
,
GoAddPrice
:
data
.
GoAddPrice
?
data
.
GoAddPrice
:
0
,
ID
:
data
.
ID
,
MinUnitPrice
:
data
.
MinUnitPrice
?
data
.
MinUnitPrice
:
0
,
OldManChargePrice
:
data
.
OldManChargePrice
?
data
.
OldManChargePrice
:
0
,
OrderId
:
data
.
OrderId
,
OtherPrice
:
data
.
OtherPrice
?
data
.
OtherPrice
:
0
,
RB_Branch_id
:
data
.
RB_Branch_id
,
RB_Group_id
:
data
.
RB_Group_id
,
RebatePrice
:
data
.
RebatePrice
?
data
.
RebatePrice
:
0
,
SafeMoney
:
data
.
SafeMoney
?
data
.
SafeMoney
:
0
,
SingleDMCPrice
:
data
.
SingleDMCPrice
?
data
.
SingleDMCPrice
:
0
,
SingleRoomPrice
:
data
.
SingleRoomPrice
?
data
.
SingleRoomPrice
:
0
,
TCID
:
data
.
TCID
,
VisaPrice
:
data
.
VisaPrice
?
data
.
VisaPrice
:
0
,
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
(
err
)
=>
{})
}
},
mounted
()
{
},
watch
:
{
obj
:
{
handler
(
newVal
)
{
console
.
log
(
this
.
obj
.
PreferPrice
,
'======'
)
},
deep
:
true
,
immediate
:
true
,
},
OrderId
:
{
handler
(
newVal
)
{
},
deep
:
true
,
immediate
:
true
,
},
},
};
</
script
>
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