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
92b41698
Commit
92b41698
authored
May 04, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
1edbe564
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
roomReservationsDetailsNew.vue
src/components/Hotel/roomReservationsDetailsNew.vue
+18
-19
No files found.
src/components/Hotel/roomReservationsDetailsNew.vue
View file @
92b41698
...
...
@@ -1027,6 +1027,7 @@
},
err
=>
{})
},
calculationPrice
(
obj
)
{
console
.
log
(
'chacalculationPrice>>>nge'
,
obj
)
let
totalPrice
=
0
;
//获取当前选中的对象
let
currentObj
=
{};
...
...
@@ -1040,25 +1041,23 @@
let
jpaObj
=
this
.
allCurrencyList
.
find
(
item
=>
{
return
item
.
ID
===
3
;
//筛选出匹配数据
});
// obj.OrderDetailsList.forEach((item, index) => {
// var tempPrice = 0;
// var coefficient = 1;
// //税别
// if (obj.TaxType == 2) {
// coefficient = 1 + this.XiaoFeiTaxFee;
// }
// if (index == 4 && obj.DMCPayType == 9) {
// tempPrice = 0;
// } else {
// tempPrice = item.UnitPrice * (item.BookNum - item.HotelDiscount) * (coefficient - item.RebateRatio /
// 100);
// }
// totalPrice += tempPrice;
// })
// totalPrice += obj.ParkFee + obj.CityTax + obj.InTangTax;
const
item
=
obj
.
OrderDetailsList
.
find
(
item
=>
item
.
HouseType
===
2
)
||
{
TotalPrice
:
0
}
console
.
log
(
item
,
obj
.
OrderDetailsList
)
obj
.
TotalPrice
=
item
.
TotalPrice
.
toFixed
(
2
);
obj
.
OrderDetailsList
.
forEach
((
item
,
index
)
=>
{
var
tempPrice
=
0
;
var
coefficient
=
1
;
//税别
if
(
obj
.
TaxType
==
2
)
{
coefficient
=
1
+
this
.
XiaoFeiTaxFee
;
}
if
(
index
==
4
&&
obj
.
DMCPayType
==
9
)
{
tempPrice
=
0
;
}
else
{
tempPrice
=
item
.
UnitPrice
*
(
item
.
BookNum
-
item
.
HotelDiscount
)
*
(
coefficient
-
item
.
RebateRatio
/
100
);
}
totalPrice
+=
tempPrice
;
})
totalPrice
+=
obj
.
ParkFee
+
obj
.
CityTax
+
obj
.
InTangTax
;
obj
.
TotalPrice
=
totalPrice
;
if
(
this
.
LineId
==
14
)
{
if
(
currentObj
&&
currentObj
.
ID
>
0
)
{
//人民币
...
...
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