This commit is contained in:
熊成强 2020-11-04 14:21:07 +08:00
parent 0273196aaf
commit 07f4c8c64a

View File

@ -79,6 +79,7 @@ export function departGetForm (arr = []) {
export function handleInput (form) {
let value = this[form.split('.')[0]][form.split('.')[1]]
value = String(value)
if (value.split('.').length > 2) value = String(parseFloat(value))
this[form.split('.')[0]][form.split('.')[1]] = Number(value) > 100 ? 0 : value.replace(/[^.\d]/g, '')
}