Showing
1 changed file
with
0 additions
and
14 deletions
| ... | @@ -133,20 +133,6 @@ export const inputBlurValidate = { | ... | @@ -133,20 +133,6 @@ export const inputBlurValidate = { |
| 133 | } | 133 | } |
| 134 | } | 134 | } |
| 135 | }, | 135 | }, |
| 136 | - validateNumber(number) { | ||
| 137 | - // 首先检查是否为合法数字 | ||
| 138 | - if (isNaN(number)) { | ||
| 139 | - return "请输入有效数字"; | ||
| 140 | - } | ||
| 141 | - | ||
| 142 | - // 然后检查是否大于0 | ||
| 143 | - if (number <= 0) { | ||
| 144 | - return "请输入大于0的数字"; | ||
| 145 | - } | ||
| 146 | - | ||
| 147 | - // 如果通过了以上两个条件,则表示数字合法 | ||
| 148 | - return "数字合法"; | ||
| 149 | - }, | ||
| 150 | // 人民币最小申报价值 | 136 | // 人民币最小申报价值 |
| 151 | inputCNYBlurMin({ target }, customVal) { | 137 | inputCNYBlurMin({ target }, customVal) { |
| 152 | // 申报价值最小值和最大值都为空的情况下 | 138 | // 申报价值最小值和最大值都为空的情况下 | ... | ... |
-
Please register or login to post a comment