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
61df50fe
Commit
61df50fe
authored
Mar 25, 2021
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
融租合同创建 部分计算逻辑调整
parent
f948cd84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
currencyInput.vue
src/components/currencyInput.vue
+8
-3
creat-rent-info.vue
src/pages/contractCreate/creat-rent-info.vue
+12
-1
No files found.
src/components/currencyInput.vue
View file @
61df50fe
...
@@ -71,10 +71,15 @@ export default {
...
@@ -71,10 +71,15 @@ export default {
},
},
onInput
(
value
)
{
onInput
(
value
)
{
// if (this.disable) return
// if (this.disable) return
this
.
newVal
=
this
.
value
if
(
this
.
value
===
'0'
||
this
.
value
===
'0.00'
)
{
if
(
this
.
newVal
.
includes
(
'.'
)
&&
value
===
'.'
)
{
this
.
newVal
=
''
}
else
{
this
.
newVal
+=
(
''
+
value
)
this
.
newVal
+=
(
''
+
value
)
}
else
{
this
.
newVal
=
this
.
value
if
(
this
.
newVal
.
includes
(
'.'
)
&&
value
===
'.'
)
{
}
else
{
this
.
newVal
+=
(
''
+
value
)
}
}
}
this
.
$emit
(
'input'
,
this
.
newVal
)
this
.
$emit
(
'input'
,
this
.
newVal
)
},
},
...
...
src/pages/contractCreate/creat-rent-info.vue
View file @
61df50fe
...
@@ -916,7 +916,18 @@ export default {
...
@@ -916,7 +916,18 @@ export default {
this
.
saveInfo
.
deposit_ratio_n
=
`
${(
this
.
saveInfo
.
deposit
/
this
.
saveInfo
.
equip_price
).
toFixed
(
2
)
*
100
}
`
this
.
saveInfo
.
deposit_ratio_n
=
`
${(
this
.
saveInfo
.
deposit
/
this
.
saveInfo
.
equip_price
).
toFixed
(
2
)
*
100
}
`
},
},
changeLeaseCharge
()
{
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
))
*
100
).
toFixed
(
6
)}
`
let
vm
=
this
if
(
!
this
.
saveInfo
.
equip_price
||
this
.
saveInfo
.
equip_price
===
''
||
this
.
saveInfo
.
equip_price
===
0
||
this
.
saveInfo
.
equip_price
===
0.00
){
hlsPopup
.
showPopup
({
title
:
"提示"
,
content
:
'请先输入设备单价'
,
onConfirm
:
function
()
{
vm
.
saveInfo
.
lease_charge
=
0
}
})
}
else
{
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
()
{
rentList
()
{
...
...
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