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
1d6292a1
Commit
1d6292a1
authored
Dec 25, 2019
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liuxin' into develop
parents
ceb09ad3
9569775f
Pipeline
#4319
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
13 deletions
+45
-13
creat-rent-info.vue
src/pages/contractCreate/creat-rent-info.vue
+45
-13
No files found.
src/pages/contractCreate/creat-rent-info.vue
View file @
1d6292a1
...
...
@@ -49,43 +49,43 @@
</item>
<item>
<div
slot=
"name"
>
设备单价
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.equip_price"
placeholder=
"
暂无信息
"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.equip_price"
placeholder=
"
0
"
/>
</item>
<item>
<div
slot=
"name"
>
融资金额
</div>
<CurrencyInput
slot=
"content"
v-model=
"
saveInfo.finance_amount"
placeholder=
"暂无信息
"
/>
<CurrencyInput
slot=
"content"
v-model=
"
finance_amount"
placeholder=
"0
"
/>
</item>
<item>
<div
slot=
"name"
>
首付比例
</div>
<input
slot=
"content"
v-model=
"saveInfo.down_payment_ratio_n"
placeholder=
"
暂无信息
"
>
<input
slot=
"content"
v-model=
"saveInfo.down_payment_ratio_n"
placeholder=
"
%
"
>
</item>
<item>
<div
slot=
"name"
>
首付款
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.down_payment"
placeholder=
"
暂无信息
"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.down_payment"
placeholder=
"
0"
@
input=
"changeRatio
"
/>
</item>
<item>
<div
slot=
"name"
>
保证金比例
</div>
<input
slot=
"content"
v-model=
"saveInfo.deposit_ratio_n"
placeholder=
"
暂无信息
"
>
<input
slot=
"content"
v-model=
"saveInfo.deposit_ratio_n"
placeholder=
"
%
"
>
</item>
<item>
<div
slot=
"name"
>
保证金
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.deposit"
placeholder=
"
暂无信息"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.deposit"
placeholder=
"
0"
@
input=
"changeDeposit"
/>
</item>
<item>
<div
slot=
"name"
>
手续费比例
</div>
<input
slot=
"content"
v-model=
"saveInfo.lease_charge_ratio_n"
placeholder=
"
暂无信息
"
>
<input
slot=
"content"
v-model=
"saveInfo.lease_charge_ratio_n"
placeholder=
"
%
"
>
</item>
<item>
<div
slot=
"name"
>
手续费
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.lease_charge"
placeholder=
"
暂无信息"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.lease_charge"
placeholder=
"
0"
@
input=
"changeLeaseCharge"
/>
</item>
<item>
<div
slot=
"name"
>
GPS费用
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.gps_fee"
placeholder=
"
暂无信息
"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.gps_fee"
placeholder=
"
0
"
/>
</item>
<item>
<div
slot=
"name"
>
保险押金
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.insurance_fee"
placeholder=
"
暂无信息
"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.insurance_fee"
placeholder=
"
0
"
/>
</item>
<item
class=
"date-check"
@
click
.
native=
"showTime('YYYY-MM-DD')"
>
<div
slot=
"name"
>
预计付款日
</div>
...
...
@@ -101,7 +101,7 @@
</item>
<item>
<div
slot=
"name"
>
年利率
</div>
<input
slot=
"content"
v-model=
"saveInfo.int_rate_n"
readonly
placeholder=
"
暂无信息
"
>
<input
slot=
"content"
v-model=
"saveInfo.int_rate_n"
readonly
placeholder=
"
%
"
>
</item>
<item
:showArrow=
"true"
@
click
.
native=
"selectPayWay"
>
<div
slot=
"name"
>
支付方式
</div>
...
...
@@ -109,7 +109,7 @@
</item>
<item>
<div
slot=
"name"
>
逾期日利率
</div>
<input
slot=
"content"
v-model=
"saveInfo.penalty_rate_n"
readonly
placeholder=
"
暂无信息
"
>
<input
slot=
"content"
v-model=
"saveInfo.penalty_rate_n"
readonly
placeholder=
"
%
"
>
</item>
<item>
<div
slot=
"name"
>
留购价
</div>
...
...
@@ -270,6 +270,11 @@ export default {
},
}
},
computed
:
{
'finance_amount'
()
{
// 融资金额
return
parseFloat
(
this
.
saveInfo
.
equip_price
-
this
.
saveInfo
.
equip_price
*
this
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
},
},
watch
:
{
policyKeyWord
(
newVal
,
oldVal
)
{
this
.
searchBusinessPolicy
()
...
...
@@ -277,6 +282,20 @@ export default {
keyWordProduct
(
newVal
,
oldVal
)
{
this
.
searchProduct
()
},
'saveInfo.equip_price'
()
{
this
.
saveInfo
.
down_payment
=
(
this
.
saveInfo
.
equip_price
*
this
.
saveInfo
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
this
.
saveInfo
.
deposit
=
(
this
.
saveInfo
.
equip_price
*
this
.
saveInfo
.
deposit_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
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.deposit_ratio_n'
(
newVal
,
oldVal
)
{
this
.
saveInfo
.
deposit
=
(
this
.
saveInfo
.
equip_price
*
newVal
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
},
'saveInfo.down_payment_ratio_n'
(
newVal
,
oldVal
)
{
this
.
saveInfo
.
down_payment
=
(
this
.
saveInfo
.
equip_price
*
newVal
.
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
)
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
...
...
@@ -297,6 +316,15 @@ export default {
})
},
methods
:
{
changeRatio
()
{
this
.
saveInfo
.
down_payment_ratio_n
=
`
${(
this
.
saveInfo
.
down_payment
/
this
.
saveInfo
.
equip_price
).
toFixed
(
2
)
*
100
}
%`
},
changeDeposit
()
{
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
}
%`
},
selectBusinessPolicy
(
e
)
{
let
vm
=
this
vm
.
saveInfo
.
product_plan_id
=
e
.
product_plan_id
...
...
@@ -317,6 +345,10 @@ export default {
save
()
{
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
.
deposit_ratio
=
(
vm
.
saveInfo
.
deposit_ratio_n
.
replace
(
'%'
,
''
)
/
100
).
toFixed
(
2
)
vm
.
saveInfo
.
finance_amount
=
vm
.
finance_amount
let
param
=
{
master
:
vm
.
saveInfo
,
}
...
...
@@ -646,7 +678,7 @@ export default {
name
:
'ContractRepayPlan'
,
params
:
{
product_num
:
this
.
productInfo
.
product_num
,
project_id
:
this
.
project_id
,
project_id
:
window
.
localStorage
.
project_id
,
},
})
},
...
...
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