Browse Source

图像识别

zhujindu 9 tháng trước cách đây
mục cha
commit
1e5ba47406
2 tập tin đã thay đổi với 13 bổ sung12 xóa
  1. 12 12
      src/views/AIImage/AIImageDetail.vue
  2. 1 0
      src/views/week/index.vue

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

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

+ 1 - 0
src/views/week/index.vue

@@ -64,6 +64,7 @@
         </van-cell>
       </van-cell-group>
       <!--拜访照片识别异常反馈 部主管及以上-->
+      {{ this.deptLevel }}
       <van-cell-group inset class="mtb10" v-if="this.deptLevel >= 2">
         <van-cell title="拜访照片识别异常反馈" to="/AIImage">
           <template #icon>