Jelajahi Sumber

去掉身份证图片校验

yaoyao 2 tahun lalu
induk
melakukan
37a0613f46
1 mengubah file dengan 16 tambahan dan 13 penghapusan
  1. 16 13
      src/views/Task/daikeComponents/KtLetter1.vue

+ 16 - 13
src/views/Task/daikeComponents/KtLetter1.vue

@@ -5857,8 +5857,11 @@ export default {
                   });
 
                   if (data) {
-                    this.productId =  data.productid
+                    this.productId = this.productId || data.productid
                     res.data.forEach((val, index) => {
+                      if(!data.insAreaCompanyEditingDtos) {
+                        return
+                      }
                       data.insAreaCompanyEditingDtos.forEach((ele) => {
                         if (val.namesimple == ele.inscompany) {
                           if (ele.inscompany == "中国人寿" && ele.companyId) {
@@ -11958,30 +11961,30 @@ export default {
       //OCR识别
       switch (this.userIndex) {
         case 2:
-          if (!this.C02File || !this.D02File) {
-            this.$message.warning('请上传照片')
-            return
-          }
+          // if (!this.C02File || !this.D02File) {
+          //   this.$message.warning('请上传照片')
+          //   return
+          // }
           const params1 = new FormData(); // 声明formData数据类型
           params1.append("image1", this.C02File);
           params1.append("image2", this.D02File);
           this.userOCRjoggle(params1);
           break;
         case 3:
-          if (!this.C03File || !this.D03File) {
-            this.$message.warning('请上传照片')
-            return
-          }
+          // if (!this.C03File || !this.D03File) {
+          //   this.$message.warning('请上传照片')
+          //   return
+          // }
           const params2 = new FormData(); // 声明formData数据类型
           params2.append("image1", this.C03File);
           params2.append("image2", this.D03File);
           this.userOCRjoggle(params2);
           break;
         case 4:
-          if (!this.C04File || !this.D04File) {
-            this.$message.warning('请上传照片')
-            return
-          }
+          // if (!this.C04File || !this.D04File) {
+          //   this.$message.warning('请上传照片')
+          //   return
+          // }
           const params3 = new FormData(); // 声明formData数据类型
           params3.append("image1", this.C04File);
           params3.append("image2", this.D04File);