[update] 企业管理--审核

This commit is contained in:
zhaoxiao
2021-09-15 18:40:48 +08:00
parent 95aceef30b
commit 350e4245b5
4 changed files with 152 additions and 7 deletions
+3 -2
View File
@@ -599,8 +599,9 @@ export function addZero(e) {
// console.log(e.target.value)
// 判断是否包含 .
let value = e.target.value
// 判断是否包含小数点
// 判断是否有数据
if (value && value !== '') {
// 判断是否包含小数点
if (value.includes('.')) {
// 获取索引
let index = value.indexOf('.')
@@ -614,7 +615,7 @@ export function addZero(e) {
e.target.value = beforePointValue + afterPointValue
}else {
// 不足2位补0
afterPointValue = afterPointValue.padEnd(2,'0')
afterPointValue = afterPointValue.padEnd(2,'0')
e.target.value = beforePointValue + afterPointValue
}
}else {