Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
xugong
hls-xcmg-vue-app
Commits
68104076
Commit
68104076
authored
Jan 07, 2021
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决租赁申请创建时,因手续费过小,导致手续费比例不正常的问题
parent
5c9fd23f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
creat-rent-info.vue
src/pages/contractCreate/creat-rent-info.vue
+7
-7
No files found.
src/pages/contractCreate/creat-rent-info.vue
View file @
68104076
...
...
@@ -529,9 +529,9 @@ export default {
// 'saveInfo.down_payment' (newVal, oldVal) {
// this.saveInfo.down_payment_ratio_n = `${(newVal / this.saveInfo.equip_price * 100).toFixed(2)}%`
// },
'saveInfo.lease_charge_ratio_n'
(
newVal
,
oldVal
)
{
this
.
saveInfo
.
lease_charge
=
parseFloat
((
this
.
saveInfo
.
equip_price
-
this
.
saveInfo
.
equip_price
*
this
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
)
*
(
this
.
saveInfo
.
lease_charge_ratio_n
.
replace
(
'%'
,
''
)
/
100
)).
toFixed
(
2
)
},
//
'saveInfo.lease_charge_ratio_n' (newVal, oldVal) {
//
this.saveInfo.lease_charge = parseFloat((this.saveInfo.equip_price - this.saveInfo.equip_price * this.saveInfo.down_payment_ratio_n.replace('%', '') / 100) * (this.saveInfo.lease_charge_ratio_n.replace('%', '') / 100)).toFixed(2)
//
},
'downNum'
(
newVal
,
oldVal
)
{
if
(
!
newVal
)
{
this
.
vehicleImg
=
''
...
...
@@ -916,7 +916,7 @@ export default {
this
.
saveInfo
.
deposit_ratio_n
=
`
${(
this
.
saveInfo
.
deposit
/
this
.
saveInfo
.
equip_price
).
toFixed
(
2
)
*
100
}
`
},
changeLeaseCharge
()
{
this
.
saveInfo
.
lease_charge_ratio_n
=
`
${(
this
.
saveInfo
.
lease_charge
/
(
this
.
saveInfo
.
equip_price
-
this
.
saveInfo
.
equip_price
*
this
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
)).
toFixed
(
2
)
*
100
}
`
this
.
saveInfo
.
lease_charge_ratio_n
=
`
${(
(
this
.
saveInfo
.
lease_charge
/
(
this
.
saveInfo
.
equip_price
-
this
.
saveInfo
.
equip_price
*
this
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
))
*
100
).
toFixed
(
6
)
}
`
},
// 租赁物列表
rentList
()
{
...
...
@@ -986,7 +986,7 @@ export default {
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'prj_lease_info_save'
vm
.
saveInfo
.
down_payment_ratio
=
(
vm
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
lease_charge_ratio
=
(
vm
.
saveInfo
.
lease_charge_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
lease_charge_ratio
=
(
vm
.
saveInfo
.
lease_charge_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
8
)
vm
.
saveInfo
.
deposit_ratio
=
(
vm
.
saveInfo
.
deposit_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
finance_amount
=
vm
.
finance_amount
let
param
=
{
...
...
@@ -1044,7 +1044,7 @@ export default {
}
else
{
let
url
=
process
.
env
.
basePath
+
'prj_lease_info_save'
vm
.
saveInfo
.
down_payment_ratio
=
(
vm
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
lease_charge_ratio
=
(
vm
.
saveInfo
.
lease_charge_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
lease_charge_ratio
=
(
vm
.
saveInfo
.
lease_charge_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
8
)
vm
.
saveInfo
.
deposit_ratio
=
(
vm
.
saveInfo
.
deposit_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
int_rate
=
(
vm
.
saveInfo
.
int_rate_n
.
replace
(
'%'
,
''
)
/
100
)
vm
.
saveInfo
.
finance_amount
=
vm
.
finance_amount
...
...
@@ -1111,7 +1111,7 @@ export default {
}
else
{
let
url
=
process
.
env
.
basePath
+
'prj_lease_info_save'
vm
.
saveInfo
.
down_payment_ratio
=
(
vm
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
lease_charge_ratio
=
(
vm
.
saveInfo
.
lease_charge_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
lease_charge_ratio
=
(
vm
.
saveInfo
.
lease_charge_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
8
)
vm
.
saveInfo
.
deposit_ratio
=
(
vm
.
saveInfo
.
deposit_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
finance_amount
=
vm
.
finance_amount
let
param
=
{
...
...
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