Commit 0744c914 authored by wjc's avatar wjc

融租方案跳转

parent f11e6654
...@@ -25,6 +25,10 @@ export default { ...@@ -25,6 +25,10 @@ export default {
// type: Boolean, // type: Boolean,
// default: true, // default: true,
// }, // },
readonly: {
type: Boolean,
default: false,
},
content: { content: {
type: String, type: String,
default: '', default: '',
...@@ -59,22 +63,24 @@ export default { ...@@ -59,22 +63,24 @@ export default {
methods: { methods: {
keyboradShow () { keyboradShow () {
let vm = this let vm = this
hlsPopup.showNumberKeyborad({ if (!vm.readonly) {
title: '数字键盘', hlsPopup.showNumberKeyborad({
keyDown: (text) => { title: '数字键盘',
vm.onInput(text) keyDown: (text) => {
}, vm.onInput(text)
keyDelete: () => { },
vm.onDelete() keyDelete: () => {
}, vm.onDelete()
}) },
})
}
}, },
onInput (value) { onInput (value) {
// if (this.disable) return // if (this.disable) return
if(this.value === '0' || this.value === '0.00') { if (this.value === '0' || this.value === '0.00') {
this.newVal = '' this.newVal = ''
this.newVal += ('' + value) this.newVal += ('' + value)
}else{ } else {
this.newVal = this.value this.newVal = this.value
if (this.newVal.includes('.') && value === '.') { if (this.newVal.includes('.') && value === '.') {
} else { } else {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment