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
9569775f
Commit
9569775f
authored
Dec 25, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
4820c716
Changes
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 @
9569775f
...
@@ -49,43 +49,43 @@
...
@@ -49,43 +49,43 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
设备单价
</div>
<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>
<item>
<item>
<div
slot=
"name"
>
融资金额
</div>
<div
slot=
"name"
>
融资金额
</div>
<CurrencyInput
slot=
"content"
v-model=
"
saveInfo.finance_amount"
placeholder=
"暂无信息
"
/>
<CurrencyInput
slot=
"content"
v-model=
"
finance_amount"
placeholder=
"0
"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
首付比例
</div>
<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>
<item>
<item>
<div
slot=
"name"
>
首付款
</div>
<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>
<item>
<item>
<div
slot=
"name"
>
保证金比例
</div>
<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>
<item>
<item>
<div
slot=
"name"
>
保证金
</div>
<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>
<item>
<item>
<div
slot=
"name"
>
手续费比例
</div>
<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>
<item>
<item>
<div
slot=
"name"
>
手续费
</div>
<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>
<item>
<item>
<div
slot=
"name"
>
GPS费用
</div>
<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>
<item>
<item>
<div
slot=
"name"
>
保险押金
</div>
<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>
<item
class=
"date-check"
@
click
.
native=
"showTime('YYYY-MM-DD')"
>
<item
class=
"date-check"
@
click
.
native=
"showTime('YYYY-MM-DD')"
>
<div
slot=
"name"
>
预计付款日
</div>
<div
slot=
"name"
>
预计付款日
</div>
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
年利率
</div>
<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>
<item
:showArrow=
"true"
@
click
.
native=
"selectPayWay"
>
<item
:showArrow=
"true"
@
click
.
native=
"selectPayWay"
>
<div
slot=
"name"
>
支付方式
</div>
<div
slot=
"name"
>
支付方式
</div>
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
逾期日利率
</div>
<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>
<item>
<item>
<div
slot=
"name"
>
留购价
</div>
<div
slot=
"name"
>
留购价
</div>
...
@@ -270,6 +270,11 @@ export default {
...
@@ -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
:
{
watch
:
{
policyKeyWord
(
newVal
,
oldVal
)
{
policyKeyWord
(
newVal
,
oldVal
)
{
this
.
searchBusinessPolicy
()
this
.
searchBusinessPolicy
()
...
@@ -277,6 +282,20 @@ export default {
...
@@ -277,6 +282,20 @@ export default {
keyWordProduct
(
newVal
,
oldVal
)
{
keyWordProduct
(
newVal
,
oldVal
)
{
this
.
searchProduct
()
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
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
next
(
vm
=>
{
...
@@ -297,6 +316,15 @@ export default {
...
@@ -297,6 +316,15 @@ export default {
})
})
},
},
methods
:
{
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
)
{
selectBusinessPolicy
(
e
)
{
let
vm
=
this
let
vm
=
this
vm
.
saveInfo
.
product_plan_id
=
e
.
product_plan_id
vm
.
saveInfo
.
product_plan_id
=
e
.
product_plan_id
...
@@ -317,6 +345,10 @@ export default {
...
@@ -317,6 +345,10 @@ export default {
save
()
{
save
()
{
let
vm
=
this
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'prj_lease_info_save'
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
=
{
let
param
=
{
master
:
vm
.
saveInfo
,
master
:
vm
.
saveInfo
,
}
}
...
@@ -646,7 +678,7 @@ export default {
...
@@ -646,7 +678,7 @@ export default {
name
:
'ContractRepayPlan'
,
name
:
'ContractRepayPlan'
,
params
:
{
params
:
{
product_num
:
this
.
productInfo
.
product_num
,
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