银行卡号正则

This commit is contained in:
zoujiandong 2024-12-03 09:27:05 +08:00
parent 4fb84be298
commit d0a363c0d4

View File

@ -1345,7 +1345,7 @@ const showCheckedAll=ref(true);
return false
}
if (modalForm.bank_card_code) {
const reg = /^([1-9]{1})(\d{15}|\d{18})$/;
const reg = /^[0-9]{9,18}$/;
if (!reg.test(modalForm.bank_card_code)) {
proxy.$notification.error("请输入正确的银行卡号");
return false
@ -1390,7 +1390,7 @@ const showCheckedAll=ref(true);
return false
}
if (modalForm.bank_card_code) {
const reg = /^([1-9]{1})(\d{15}|\d{18})$/;
const reg = /^[0-9]{9,18}$/;
if (!reg.test(modalForm.bank_card_code)) {
proxy.$notification.error("请输入正确的银行卡号");
return false