zhujindu 1 неделя назад
Родитель
Сommit
827bc68ad9

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

@@ -1423,6 +1423,7 @@ export default {
         //     buryingPointPosition: '销售部',
         //   });
         // }
+        localStorage.setItem('getRequestFlage', 'true');
         if (res.code == 200 || val.stateString.indexOf('拜访中') != -1) {
           if (localStorage.getItem('loginType') == 'cs') {
             var lat = '';

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

@@ -916,6 +916,7 @@ export default {
         //   buryingPointName: '进店拜访',
         //   buryingPointPosition: '计划内',
         // });
+        localStorage.setItem('getRequestFlage', 'true');
         if (res.code == 200 || val.stateString.indexOf('拜访中') != -1) {
           if (localStorage.getItem('loginType') == 'cs') {
             var lat = '';

+ 0 - 5
src/views/deviceWithin/storeVisit.vue

@@ -253,7 +253,6 @@ export default {
     next();
   },
   activated() {
-    console.log(11111);
     // 是否请求任务列表接口
     let getRequestFlage = localStorage.getItem('getRequestFlage');
     if (getRequestFlage != 'true') return;
@@ -392,7 +391,6 @@ export default {
       return Math.round((arrtime2 - arrtime1) / 1000);
     },
     addVisits() {
-      console.log(222);
       var that = this;
       var insert = '';
       var postType = localStorage.getItem('postType');
@@ -474,7 +472,6 @@ export default {
             });
             that.list = [];
             getVisitTasks(params).then((res) => {
-              console.log(333);
               loading2.clear();
               if (res.code == 200) {
                 that.notes = res.data.notes;
@@ -532,7 +529,6 @@ export default {
               forbidClick: true,
             });
             that.list = [];
-            console.log(444);
             getVisitTasks(params).then((res) => {
               loading2.clear();
               if (res.code == 200) {
@@ -565,7 +561,6 @@ export default {
           }
         },
         function (err) {
-          console.log(555);
           if (that.$route.query.type == 'edit') {
             var params = {
               storeId: that.storeId,