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
1487a12d
Commit
1487a12d
authored
Jan 02, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed:input组件
parent
c623bff6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
19 deletions
+17
-19
currencyInput.vue
src/components/currencyInput.vue
+7
-9
creat-rent-info.vue
src/pages/contractCreate/creat-rent-info.vue
+10
-10
No files found.
src/components/currencyInput.vue
View file @
1487a12d
...
@@ -19,6 +19,10 @@ export default {
...
@@ -19,6 +19,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
content
:
{
type
:
String
,
default
:
''
,
},
},
},
data
()
{
data
()
{
...
@@ -36,7 +40,9 @@ export default {
...
@@ -36,7 +40,9 @@ export default {
formatValue
()
{
formatValue
()
{
let
currency
=
this
.
$options
.
filters
[
'currency'
]
let
currency
=
this
.
$options
.
filters
[
'currency'
]
if
(
!
this
.
focused
)
{
if
(
!
this
.
focused
)
{
if
(
this
.
value
!==
'0.00'
&&
this
.
value
!==
''
&&
this
.
value
!==
null
)
{
return
`¥
${
currency
(
this
.
value
)}
`
return
`¥
${
currency
(
this
.
value
)}
`
}
}
else
{
}
else
{
return
this
.
value
return
this
.
value
}
}
...
@@ -55,14 +61,6 @@ export default {
...
@@ -55,14 +61,6 @@ export default {
let
value
=
event
.
target
.
value
let
value
=
event
.
target
.
value
event
.
target
.
value
=
''
event
.
target
.
value
=
''
event
.
target
.
value
=
value
event
.
target
.
value
=
value
/* if (document.selection) {
var sel = value.createTextRange()
sel.moveStart('character', value.length)
sel.collapse()
sel.select()
} else if (typeof value.selectionStart === 'number' && typeof value.selectionEnd === 'number') {
value.selectionStart = value.selectionEnd = value.length
}*/
setTimeout
(
function
()
{
setTimeout
(
function
()
{
event
.
target
.
type
=
'number'
event
.
target
.
type
=
'number'
event
.
target
.
focus
()
event
.
target
.
focus
()
...
...
src/pages/contractCreate/creat-rent-info.vue
View file @
1487a12d
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
产品数量
</div>
<div
slot=
"name"
>
产品数量
</div>
<input
slot=
"content"
v-model=
"saveInfo.product_num"
:readonly=
"isReadOnly"
placeholder=
"请
填写
产品数量"
>
<input
slot=
"content"
v-model=
"saveInfo.product_num"
:readonly=
"isReadOnly"
placeholder=
"请
输入
产品数量"
>
</item>
</item>
</list-item>
</list-item>
<div
class=
"userInfo"
>
融资信息
</div>
<div
class=
"userInfo"
>
融资信息
</div>
...
@@ -61,11 +61,11 @@
...
@@ -61,11 +61,11 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
设备单价
</div>
<div
slot=
"name"
>
设备单价
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.equip_price"
:readonly=
"isReadOnly"
placeholder=
"
0
"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.equip_price"
:readonly=
"isReadOnly"
placeholder=
"
请输入设备单价
"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
融资金额
</div>
<div
slot=
"name"
>
融资金额
</div>
<CurrencyInput
slot=
"content"
v-model=
"finance_amount"
:readonly=
"isReadOnly"
placeholder=
"
0
"
/>
<CurrencyInput
slot=
"content"
v-model=
"finance_amount"
:readonly=
"isReadOnly"
placeholder=
"
请输入融资信息
"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
首付比例
</div>
<div
slot=
"name"
>
首付比例
</div>
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<item>
<item>
<div
slot=
"name"
>
首付款
</div>
<div
slot=
"name"
>
首付款
</div>
<CurrencyInput
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.down_payment"
:readonly=
"isReadOnly"
placeholder=
"
0
"
slot=
"content"
v-model=
"saveInfo.down_payment"
:readonly=
"isReadOnly"
placeholder=
"
请输入首付款
"
@
input=
"changeRatio"
/>
@
input=
"changeRatio"
/>
</item>
</item>
<item>
<item>
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
<item>
<item>
<div
slot=
"name"
>
保证金
</div>
<div
slot=
"name"
>
保证金
</div>
<CurrencyInput
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.deposit"
:readonly=
"isReadOnly"
placeholder=
"
0
"
slot=
"content"
v-model=
"saveInfo.deposit"
:readonly=
"isReadOnly"
placeholder=
"
请输入保证金
"
@
input=
"changeDeposit"
/>
@
input=
"changeDeposit"
/>
</item>
</item>
<item>
<item>
...
@@ -94,16 +94,16 @@
...
@@ -94,16 +94,16 @@
<item>
<item>
<div
slot=
"name"
>
手续费
</div>
<div
slot=
"name"
>
手续费
</div>
<CurrencyInput
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.lease_charge"
:readonly=
"isReadOnly"
placeholder=
"
0
"
slot=
"content"
v-model=
"saveInfo.lease_charge"
:readonly=
"isReadOnly"
placeholder=
"
请输入手续费
"
@
input=
"changeLeaseCharge"
/>
@
input=
"changeLeaseCharge"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
GPS费用
</div>
<div
slot=
"name"
>
GPS费用
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.gps_fee"
:readonly=
"isReadOnly"
placeholder=
"
0
"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.gps_fee"
:readonly=
"isReadOnly"
placeholder=
"
请输入GPS费用
"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
保险押金
</div>
<div
slot=
"name"
>
保险押金
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.insurance_fee"
:readonly=
"isReadOnly"
placeholder=
"
0
"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.insurance_fee"
:readonly=
"isReadOnly"
placeholder=
"
请输入保险押金
"
/>
</item>
</item>
<item
v-if=
"!isReadOnly"
class=
"date-check"
@
click
.
native=
"showTime('YYYY-MM-DD')"
>
<item
v-if=
"!isReadOnly"
class=
"date-check"
@
click
.
native=
"showTime('YYYY-MM-DD')"
>
<div
slot=
"name"
>
预计付款日
</div>
<div
slot=
"name"
>
预计付款日
</div>
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
租赁期数
</div>
<div
slot=
"name"
>
租赁期数
</div>
<input
slot=
"content"
v-model=
"saveInfo.lease_times"
:readonly=
"isReadOnly"
placeholder=
"请
填写
租赁期数"
>
<input
slot=
"content"
v-model=
"saveInfo.lease_times"
:readonly=
"isReadOnly"
placeholder=
"请
输入
租赁期数"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
年利率
</div>
<div
slot=
"name"
>
年利率
</div>
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
留购价
</div>
<div
slot=
"name"
>
留购价
</div>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.residual_value"
:readonly=
"isReadOnly"
placeholder=
"请
填写
留购价"
/>
<CurrencyInput
slot=
"content"
v-model=
"saveInfo.residual_value"
:readonly=
"isReadOnly"
placeholder=
"请
输入
留购价"
/>
</item>
</item>
<item
:showArrow=
"true"
@
click
.
native=
"goPlan"
>
<item
:showArrow=
"true"
@
click
.
native=
"goPlan"
>
<div
slot=
"name"
>
查看还款计划
</div>
<div
slot=
"name"
>
查看还款计划
</div>
...
...
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