Sfoglia il codice sorgente

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

carver 2 anni fa
parent
commit
5fc10d8909

+ 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("身份证格式不正确!");
 				}