浏览代码

Merge branch '20220602_sun客户信息新增修改身份证号报错问题' of sckj/mz-cloud into master

sckj 2 年之前
父节点
当前提交
b212c9b9eb
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      ruoyi-ui/src/views/organization/kugl/khjbxx/index.vue

+ 4 - 2
ruoyi-ui/src/views/organization/kugl/khjbxx/index.vue

@@ -984,7 +984,7 @@
           ],
           zjhm: [
             { required: true, message: '证件号码不能为空', trigger: 'blur' },
-            { max: 18, message: '证件号码最大长度18个字符', trigger: 'blur' },
+            { max: 18, message: '证件号码最大长度18个字符', trigger: 'change' },
             { validator: idCard, trigger: 'blur' }
           ],
           mz: [
@@ -1617,11 +1617,13 @@
         if (value == Constant.IDTYPE) {
           this.rules.zjhm = [
             { required: true, message: '证件号码不能为空', trigger: 'blur' },
+            { max: 18, message: '证件号码最大长度18个字符', trigger: 'change' },
             { validator: idCard, trigger: 'blur' }
           ]
         } else {
           this.rules.zjhm = [
-            { required: true, message: '证件号码不能为空', trigger: 'blur' }
+            { required: true, message: '证件号码不能为空', trigger: 'blur' },
+            { max: 18, message: '证件号码最大长度18个字符', trigger: 'change' },
           ]
         }
       },