[update] 企业管理--审核
This commit is contained in:
+3
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user