소스 검색

企业认证提示修改

cuixq 3 년 전
부모
커밋
4018df8f87
1개의 변경된 파일16개의 추가작업 그리고 1개의 파일을 삭제
  1. 16 1
      front-vue/src/views/system/company/certification.vue

+ 16 - 1
front-vue/src/views/system/company/certification.vue

@@ -669,7 +669,7 @@
                   clearable
                   remote
                   reserve-keyword
-                  placeholder="请选择银行姓名"
+                  placeholder="请选择开户银行"
                   :remote-method="getBankList"
                 >
                   <el-option
@@ -1369,6 +1369,11 @@ export default {
     //营业执照上传
     yyzzRequest(param) {
       let fileObj = param.file; // 相当于input里取得的files
+      const isLt2M = fileObj.size / 1024 / 1024 < 2;
+      if (!isLt2M) {
+        this.$message.error("上传图片大小不能超过 2MB!");
+        loading.close();
+      }
       let fd = new FormData(); // FormData 对象
       fd.append("file", fileObj); // 文件对象
       const loading = this.$loading({
@@ -1410,6 +1415,11 @@ export default {
     //法人身份证正面ocr识别
     fsfzzRequest(param) {
       let fileObj = param.file; // 相当于input里取得的files
+      const isLt2M = fileObj.size / 1024 / 1024 < 2;
+      if (!isLt2M) {
+        this.$message.error("上传图片大小不能超过 2MB!");
+        loading.close();
+      }
       let fd = new FormData(); // FormData 对象
       fd.append("file", fileObj); // 文件对象
       fd.append("fileType", "00"); // 文件类型
@@ -1457,6 +1467,11 @@ export default {
     //经办人身份证正面
     jsfzzRequest(param) {
       let fileObj = param.file; // 相当于input里取得的files
+      const isLt2M = fileObj.size / 1024 / 1024 < 2;
+      if (!isLt2M) {
+        this.$message.error("上传图片大小不能超过 2MB!");
+        loading.close();
+      }
       let fd = new FormData(); // FormData 对象
       fd.append("file", fileObj); // 文件对象
       fd.append("fileType", "01"); // 文件类型