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