洗车预约取消车牌号校验

This commit is contained in:
zzyuan 2025-01-23 13:26:14 +08:00
parent ad829040d9
commit 627942df78
1 changed files with 11 additions and 7 deletions

View File

@ -629,15 +629,19 @@
alertTip("请输入车牌号"); alertTip("请输入车牌号");
return return
} else { } else {
if (this.licensePlateList.includes(this.carId)) {
if (licensePlateReg.test(this.carId) === false) { if (licensePlateReg.test(this.carId) === false) {
alertTip("车牌号格式不正确"); alertTip("车牌号格式不正确");
return; return;
} }
} else { // if (this.licensePlateList.includes(this.carId)) {
alertTip("车牌号未配置"); // if (licensePlateReg.test(this.carId) === false) {
return; // alertTip("");
} // return;
// }
// } else {
// alertTip("");
// return;
// }
} }