zhujindu il y a 1 an
Parent
commit
8ab4807fb7
2 fichiers modifiés avec 15 ajouts et 11 suppressions
  1. 11 10
      src/components/imageAIVerifyErr.vue
  2. 4 1
      src/components/uploadVNormal.vue

+ 11 - 10
src/components/imageAIVerifyErr.vue

@@ -137,7 +137,7 @@ export default {
       vanPopup: true,
       shopSignChange: 0,
       npkpiData: null,
-      feedbackMessage: '',
+      feedbackMessage: '', //反馈图像识别不正确原因
     };
   },
   methods: {
@@ -175,12 +175,12 @@ export default {
           return;
         }
         // 识别次数大于等于3先确认是否仍要上传,仍要上传在校验是否和历史照片一致
-        if (this.shotsNum >= 3) {
-          return;
-        } else {
-          // 照片和历史照片是否一致
-          this.comparisonImage();
-        }
+        // if (this.shotsNum >= 3) {
+        //   return;
+        // } else {
+        // 照片和历史照片是否一致
+        this.comparisonImage();
+        // }
       }
     },
     // 照片和历史照片是否一致
@@ -211,6 +211,7 @@ export default {
         this.$emit('confirmUpload', {
           data: this.imageAIVerifyData,
           isUpdate: isUpdate ? 'true' : null,
+          feedbackMessage: this.feedbackMessage,
         });
       }
     },
@@ -290,13 +291,13 @@ export default {
       font-size: 14px;
       color: red;
       text-align: center;
-      border-top: 1px solid #ccc;
+      /* border-top: 1px solid #ccc; */
     }
     .uploadImgAIVerify {
       display: flex;
       align-items: center;
       justify-content: space-between;
-      padding: 5px 0;
+      padding: 8px 0;
       border-top: 1px solid #ccc;
       .labelAIVerify {
         font-size: 14px;
@@ -315,7 +316,7 @@ export default {
     padding: 5px 0;
   }
   .uploadBtnAIVerify {
-    border-top: 1px solid #ccc;
+    /* border-top: 1px solid #ccc; */
     display: flex;
     align-items: center;
     justify-content: center;

+ 4 - 1
src/components/uploadVNormal.vue

@@ -350,7 +350,10 @@ export default {
           url: res.data.url, //	String	当前拍摄图片的url
           businessId: res.data.businessId, // 当前拍摄图片id
         };
-        if (res.isUpdate) form.isUpdate = 'true';
+        if (res.isUpdate) {
+          form.isUpdate = 'true';
+          form.feedbackMessage = res.feedbackMessage;
+        }
         addPhotoToDB(form).then((resData) => {
           if (resData.code == 200) {
             console.log(resData);