Browse Source

Merge branch 'feature_20241120_图像识别' into uat(dev)

# Conflicts:
#	src/views/week/index.vue
zhujindu 9 months ago
parent
commit
d9c9e6c71a
1 changed files with 12 additions and 12 deletions
  1. 12 12
      src/views/AIImage/AIImageDetail.vue

+ 12 - 12
src/views/AIImage/AIImageDetail.vue

@@ -127,23 +127,23 @@ export default {
         this.toastLoading().clear();
         this.toastLoading().clear();
         if (res.code == 200) {
         if (res.code == 200) {
           this.data = res.data;
           this.data = res.data;
-          this.approveState = res.data.approveState;
+          this.approveState = res.data.approveState; //反馈状态:0 未审批 1已审批
           if (this.approveState == '0') {
           if (this.approveState == '0') {
-            this.$dialog
-              .confirm({
-                title: '系统提示',
-                message:
-                  res.data.approveTime +
-                  '时间已反馈该店拜访照异常原因及解决方案,此次拜访照仍异常,请及时跟进',
-                confirmButtonText: '确定',
-                showCancelButton: false,
-              })
-              .then(() => {});
             let latestPhotoApprove = res.data.latestPhotoApprove;
             let latestPhotoApprove = res.data.latestPhotoApprove;
             if (latestPhotoApprove) {
             if (latestPhotoApprove) {
               this.AIResult = latestPhotoApprove.resultCorrect || '1';
               this.AIResult = latestPhotoApprove.resultCorrect || '1';
               this.causeMessage =
               this.causeMessage =
                 latestPhotoApprove.reasonsSolutions || latestPhotoApprove.feedbackError;
                 latestPhotoApprove.reasonsSolutions || latestPhotoApprove.feedbackError;
+              this.$dialog
+                .confirm({
+                  title: '系统提示',
+                  message:
+                    latestPhotoApprove.approveTime +
+                    '时间已反馈该店拜访照异常原因及解决方案,此次拜访照仍异常,请及时跟进',
+                  confirmButtonText: '确定',
+                  showCancelButton: false,
+                })
+                .then(() => {});
             }
             }
           } else {
           } else {
             this.AIResult = res.data.resultCorrect || '1';
             this.AIResult = res.data.resultCorrect || '1';
@@ -167,7 +167,7 @@ export default {
         feedbackError: this.AIResult == '2' ? this.causeMessage : '', //	string	反馈AI识别不正确
         feedbackError: this.AIResult == '2' ? this.causeMessage : '', //	string	反馈AI识别不正确
       }).then((res) => {
       }).then((res) => {
         if (res.code == 200) {
         if (res.code == 200) {
-          this.$toast('提交成功');
+          this.$toast('已反馈给本部');
           this.onClickLeft();
           this.onClickLeft();
         } else {
         } else {
           this.$toast('提交失败');
           this.$toast('提交失败');