Quellcode durchsuchen

fix: 修复港澳台身份证格式校验

carver vor 2 Jahren
Ursprung
Commit
5fc10d8909
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      antbuilder/industry/hospitalV2/components/edit-patient/index.js

+ 1 - 1
antbuilder/industry/hospitalV2/components/edit-patient/index.js

@@ -275,7 +275,7 @@ Component(
 					return this.showTip("将页面上的信息填写完整!");
 				}
 
-				if (!checkIdCard(idCardNo)) {
+				if (idCardType === "中国大陆居民身份证" && !checkIdCard(idCardNo)) {
 					return this.showTip("身份证格式不正确!");
 				}