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
496ff208
Commit
496ff208
authored
Aug 07, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
5a923f8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+34
-1
No files found.
src/components/Hotel/roomReservationsDetails.vue
View file @
496ff208
...
...
@@ -279,6 +279,9 @@
<!-- 金额总计 -->
<td
v-if=
"childIndex==0"
:rowspan=
"6"
style=
"white-space:nowrap;"
>
{{subItem.TotalPrice}}
<
template
v-if=
"subItem.NewTotalPrice"
>
<br
/>
{{
subItem
.
NewTotalPrice
}}
</
template
>
</td>
<!-- 付款方式 -->
<td
v-if=
"childIndex==0"
:rowspan=
"6"
>
...
...
@@ -286,7 +289,8 @@
<tr>
<td
width=
"70"
style=
"text-align:right;"
>
币种:
</td>
<td>
<el-select
v-model=
"subItem.CurrencyId"
placeholder=
"请选择"
class=
'w135 sel'
>
<el-select
v-model=
"subItem.CurrencyId"
placeholder=
"请选择"
class=
'w135 sel'
@
change=
"calculationPrice(subItem)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'0'
></el-option>
<el-option
v-for=
"(item,index) in allCurrencyList"
:key=
"index"
:label=
"item.Name"
:value=
"item.ID"
>
...
...
@@ -346,6 +350,7 @@
<el-option
label=
'实物抵扣'
:value=
'3'
></el-option>
<el-option
label=
'预付'
:value=
'4'
></el-option>
<el-option
label=
'预付款抵扣'
:value=
'5'
></el-option>
<el-option
label=
'领队导游垫付'
:value=
'10'
></el-option>
</el-select>
</td>
</tr>
...
...
@@ -365,6 +370,7 @@
<el-option
label=
'预付'
:value=
'4'
></el-option>
<el-option
label=
'预付款抵扣'
:value=
'5'
></el-option>
<el-option
label=
'公司合团支付'
:value=
'6'
></el-option>
<el-option
label=
'领队导游垫付'
:value=
'10'
></el-option>
</el-select>
</td>
</tr>
...
...
@@ -754,6 +760,19 @@
},
calculationPrice
(
obj
)
{
let
totalPrice
=
0
;
//获取当前选中的对象
let
currentObj
=
{};
if
(
obj
.
CurrencyId
!=
0
)
{
currentObj
=
this
.
allCurrencyList
.
find
(
item
=>
{
return
item
.
ID
===
obj
.
CurrencyId
;
//筛选出匹配数据
});
}
//日元
let
jpaObj
=
this
.
allCurrencyList
.
find
(
item
=>
{
return
item
.
ID
===
3
;
//筛选出匹配数据
});
//this.allCurrencyList
obj
.
OrderDetailsList
.
forEach
((
item
,
index
)
=>
{
var
tempPrice
=
0
;
var
coefficient
=
1
;
...
...
@@ -771,6 +790,20 @@
})
totalPrice
+=
obj
.
ParkFee
+
obj
.
CityTax
+
obj
.
InTangTax
;
obj
.
TotalPrice
=
totalPrice
.
toFixed
(
2
);
if
(
currentObj
&&
currentObj
.
ID
>
0
)
{
//人民币
if
(
currentObj
.
ID
==
1
)
{
obj
.
NewTotalPrice
=
currentObj
.
Name
+
":"
+
(
totalPrice
*
jpaObj
.
PayRate
).
toFixed
(
2
);
}
//日元
else
if
(
currentObj
.
ID
==
3
)
{
obj
.
NewTotalPrice
=
""
;
}
else
{
obj
.
NewTotalPrice
=
currentObj
.
Name
+
":"
+
(
totalPrice
/
currentObj
.
PayRate
).
toFixed
(
2
);
}
}
else
{
obj
.
NewTotalPrice
=
""
;
}
this
.
$forceUpdate
();
},
getHotelList
(
obj
)
{
...
...
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