Browse Source

获取门店拜访任务失败依然返回拜访id,取消拜访使用

zhujindu 4 days ago
parent
commit
4e6b1f2f09
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/agentList/visitPage.vue

+ 3 - 1
src/views/agentList/visitPage.vue

@@ -345,6 +345,7 @@ export default {
               that.timeN = setInterval(that.animation, 16);
               that.visitsRemarks = res.data.visitsRemarks;
             } else {
+              that.visitId = res.data;
               that.$toast(res.msg);
             }
           });
@@ -388,10 +389,11 @@ export default {
               that.timeN = setInterval(that.animation, 16);
               that.visitsRemarks = res.data.visitsRemarks;
             } else {
+              that.visitId = res.data;
               that.$toast(res.msg);
             }
           });
-        }
+        },
       );
     },
     visitTask(val, index) {