Browse Source

Merge branch 'feature_20260330_拜访连拍速度优化' into uat(dev)

zhujindu 1 day ago
parent
commit
7dc9a128f1
1 changed files with 18 additions and 12 deletions
  1. 18 12
      src/views/deviceWithin/storeVisit.vue

+ 18 - 12
src/views/deviceWithin/storeVisit.vue

@@ -174,6 +174,7 @@ import {
   buryingPoint,
   buryingPoint,
   getMaterialHistory,
   getMaterialHistory,
   getVisitTasks,
   getVisitTasks,
+  getCljlaToDBLabel,
 } from '@/api/index';
 } from '@/api/index';
 import axios from 'axios';
 import axios from 'axios';
 import sp from './../../assets/sp.png';
 import sp from './../../assets/sp.png';
@@ -790,18 +791,23 @@ export default {
         }, 2000);
         }, 2000);
         localStorage.setItem('getRequestFlage', 'false');
         localStorage.setItem('getRequestFlage', 'false');
         if (val.taskType == '5') {
         if (val.taskType == '5') {
-          debugger;
-          this.$router.push({
-            path: '/taskPhotoTaking',
-            query: {
-              storeCode: this.urlParameter.storeCode,
-              visitsId: this.visitId,
-              taskIds: val.taskIds.join(','),
-              storeGroupId: this.storeGroupId,
-              photoType: val.photoType,
-              insert: true,
-              storeId: this.storeId,
-            },
+          getCljlaToDBLabel({ visitsId: this.visitId }).then((res) => {
+            if (res.code == 200) {
+              this.$router.push({
+                path: '/taskPhotoTaking',
+                query: {
+                  storeCode: this.urlParameter.storeCode,
+                  visitsId: this.visitId,
+                  taskIds: val.taskIds.join(','),
+                  storeGroupId: this.storeGroupId,
+                  photoType: val.photoType,
+                  insert: true,
+                  storeId: this.storeId,
+                },
+              });
+            } else {
+              this.$toast(res.msg);
+            }
           });
           });
         } else {
         } else {
           this.$router.push({
           this.$router.push({