|
@ -1613,7 +1613,7 @@ function validateTaxRate(rule, value, callback) { |
|
|
|
|
|
|
|
|
const validateGoldenTaxInvoiceNumber = (rule, value, callback) => { |
|
|
const validateGoldenTaxInvoiceNumber = (rule, value, callback) => { |
|
|
const reg = /^[1-9][0-9]*$/ |
|
|
const reg = /^[1-9][0-9]*$/ |
|
|
if (!reg||reg.test(value)) { |
|
|
if (!value||reg.test(value)) { |
|
|
callback() |
|
|
callback() |
|
|
}else{ |
|
|
}else{ |
|
|
callback(new Error('只能是数字')) |
|
|
callback(new Error('只能是数字')) |
|
|