zhujindu 1 年間 前
コミット
62ede74edf
1 ファイル変更16 行追加4 行削除
  1. 16 4
      src/components/imageAIVerifyErr.vue

+ 16 - 4
src/components/imageAIVerifyErr.vue

@@ -108,7 +108,7 @@
             <div class="confirmUploadAIVerify" @click="uploadImg">重新拍照</div>
             <div
               class="changeImageAIVerify"
-              @click="confirmUpload('isUpdate')"
+              @click="confirmUpDataImage()"
               style="background-color: #0057ba">
               更新门店照
             </div>
@@ -211,7 +211,7 @@ export default {
         this.contentMessage = '与历史照片不一致,请确认店招是否更换?';
         return false;
       } else {
-        this.confirmUpload('isUpdate');
+        this.confirmUpDataImage();
       }
     },
     // 重新拍照
@@ -221,11 +221,23 @@ export default {
     },
     // 照片是否入库,1.照片识别三次不通过仍要上传,2.照片识别通过
     // isUpdate:是否更新店招照片,只有门店店招需要更新
-    confirmUpload(isUpdate) {
+    confirmUpload() {
+      // 拜访店招 不合格或作弊三次先提示是否仍要上传,确认后在判断是否与历史照片一致
+      if (this.npkpiData.recognizeType == 1 && this.shotsNum >= 3) {
+        this.comparisonImage();
+      } else {
+        this.$emit('close');
+        this.$emit('confirmUpload', {
+          data: this.imageAIVerifyData,
+          feedbackMessage: this.feedbackMessage,
+        });
+      }
+    },
+    confirmUpDataImage() {
       this.$emit('close');
       this.$emit('confirmUpload', {
         data: this.imageAIVerifyData,
-        isUpdate: isUpdate ? 'true' : null,
+        isUpdate: 'true',
         feedbackMessage: this.feedbackMessage,
       });
     },