Explorar o código

增加失信被执行情况

sandm hai 1 ano
pai
achega
f074741bac
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      public/themes/default/views/app/recruit/sign_up.blade.php

+ 8 - 1
public/themes/default/views/app/recruit/sign_up.blade.php

@@ -1756,7 +1756,7 @@
                         @endif
                         @if(in_array('shixin',$module))
                         shixin:[
-                            {validator:this.validCNS, trigger: 'change'}
+                            {validator:this.validSX, trigger: 'change'}
                         ],
                         @endif
                     },
@@ -1906,6 +1906,13 @@
                         callback();
                     }
                 },
+                validSX(rule, value, callback){
+                    if(this.user.shixin.length == 0){
+                        callback(new Error('请上传失信被执行人查询信息页扫描件(需本人签字)'));
+                    }else{
+                        callback();
+                    }
+                },
                 beforeImageUpload(file) {
                     const isJPG = (file.type === 'image/jpeg' || file.type === 'image/png');
                     const isLt2M = file.size / 1024 / 1024 < 2;