瀏覽代碼

经销商

zhujindu 8 月之前
父節點
當前提交
6869771779

+ 36 - 0
src/api/agentList.js

@@ -68,3 +68,39 @@ export function addVisits(data) {
     data,
   });
 }
+
+//提交拜访
+export function endVisits(data) {
+  return request({
+    url: 'mobile/chainsGroup/endVisits',
+    method: 'post',
+    data,
+  });
+}
+
+//拜访时长
+export function editDwellTime(data) {
+  return request({
+    url:
+      'mobile/storeGroup/editDwellTime?dwellTime=' + data.dwellTime + '&visitsId=' + data.visitsId,
+    method: 'post',
+  });
+}
+
+// 结束拜访
+export function stopVisit(query) {
+  return request({
+    url: 'mobile/storeGroup/stopVisit',
+    method: 'get',
+    params: query,
+  });
+}
+
+// 回显历史
+export function getCollectionShowHistory(query) {
+  return request({
+    url: '/mobile/storeGroup/getCollectionShowHistory',
+    method: 'get',
+    params: query,
+  });
+}

+ 0 - 15
src/api/index.js

@@ -64,14 +64,6 @@ export function removePhoto(data) {
   });
 }
 
-export function editDwellTime(data) {
-  return request({
-    url:
-      'mobile/storeGroup/editDwellTime?dwellTime=' + data.dwellTime + '&visitsId=' + data.visitsId,
-    method: 'post',
-  });
-}
-
 export function getStoreGroupTask(data) {
   return request({
     url: 'mobile/storeGroup/getStoreGroupTask',
@@ -721,13 +713,6 @@ export function joinInPlan(query) {
     params: query,
   });
 }
-export function getCollectionShowHistory(query) {
-  return request({
-    url: '/mobile/storeGroup/getCollectionShowHistory',
-    method: 'get',
-    params: query,
-  });
-}
 export function getProjectList(query) {
   return request({
     url: '/mobile/storeGroup/getProjectList',

+ 2 - 15
src/views/agentList/index.vue

@@ -452,13 +452,7 @@
 </template>
 
 <script>
-import {
-  addVisitsPosition,
-  mobileReposition,
-  getStoreLabels,
-  buryingPoint,
-  getItemList,
-} from '@/api/index';
+import { addVisitsPosition, mobileReposition, buryingPoint, getItemList } from '@/api/index';
 import { getPosition, getTicketFun } from '@/utils/TXApiFun';
 import { mapState } from 'vuex';
 import store from '@/store';
@@ -664,13 +658,6 @@ export default {
       this.showPickerChainsList = false;
       this.moreTypeShow = false;
     },
-    getStoreLabels() {
-      if (this.StoreLabels.length == 0) {
-        getStoreLabels().then((res) => {
-          this.StoreLabels = res.data;
-        });
-      }
-    },
     onConfirm(value) {
       this.showPicker = false;
       this.onSearchm();
@@ -691,7 +678,7 @@ export default {
     },
     searchFn() {
       //获取门店类型  //获取门店标签
-      Promise.all([this.setChainTypeList(), this.getStoreLabels()]).then(() => {
+      Promise.all([this.setChainTypeList()]).then(() => {
         this.showPicker = true;
         this.CustomerName = '';
       });

+ 2 - 2
src/views/agentList/visitAbnormal.vue

@@ -72,8 +72,8 @@
 <script>
 import uploadImg from '@/components/uploadVvisit';
 import deleteUploadImg from '@/components/deleteUploadImg1';
-import { endVisits, getPhotoTypeList1, stopVisit } from '@/api/index';
-import { addVisits } from '@/api/agentList';
+import { getPhotoTypeList1 } from '@/api/index';
+import { addVisits, endVisits, stopVisit } from '@/api/agentList';
 
 export default {
   name: 'outabnormalVisit',

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

@@ -92,16 +92,7 @@
 </template>
 
 <script>
-import {
-  getStoreGroupTask,
-  endVisits,
-  editDwellTime,
-  suishenbangStoreSale,
-  stopVisit,
-  buryingPoint,
-} from '@/api/index';
-import { getChainsGroupTask } from '@/api/agentList';
-import { saveVisitsParams, getOrderUrlByStoreId } from '@/api/inventory';
+import { getChainsGroupTask, endVisits, stopVisit, editDwellTime } from '@/api/agentList';
 import store from '@/store';
 export default {
   name: 'visitPage',
@@ -219,45 +210,6 @@ export default {
           });
         });
     },
-    overbookingFn(val) {
-      buryingPoint({
-        systemModel: '拜访页',
-        buryingPointType: 1,
-        buryingPointValue: valchainsName + '(' + val.chainCode + ')',
-        buryingPointName: '去下单',
-        buryingPointPosition: '拜访页',
-      });
-      this.toastLoading(0, '加载中...', true);
-      getOrderUrlByStoreId({
-        chainId: this.$route.query.chainId,
-        from: this.$route.query.from,
-      }).then((res) => {
-        this.toastLoading().clear();
-        if (res.code == 200 && res.data) {
-          window.location.href = res.data;
-        } else {
-          this.Toast({
-            message: res.msg,
-            duration: 5000,
-          });
-        }
-      });
-    },
-    visitFn(val) {
-      var that = this;
-      suishenbangStoreSale({ chainCode: val }).then((res) => {
-        if (res.code == 200) {
-          if (res.data.num != '0') {
-            window.location.href =
-              process.env.VUE_APP_SSB_LINK + '/order/storeDetail/index?shopCode=' + val;
-          } else {
-            that.$toast(res.data.msg);
-          }
-        } else {
-          that.$toast(res.msg);
-        }
-      });
-    },
     getLocation() {
       this.toastLoading(0, '加载中...', true);
       // 授权

+ 0 - 13
src/views/agentList/visitTask.vue

@@ -3773,18 +3773,6 @@ export default {
       this.PhotoTypeText = val.text;
       this.showPicker = false;
     },
-    getPhotoTypeList() {
-      getPhotoTypeList({}).then((res) => {
-        var PhotoTypeLists = [];
-        for (var p = 0; p < res.data.length; p++) {
-          PhotoTypeLists.push({
-            dictValue: res.data[p].dictValue,
-            text: res.data[p].dictLabel,
-          });
-        }
-        this.PhotoTypeList = PhotoTypeLists;
-      });
-    },
     imgClick(
       val,
       type,
@@ -4675,7 +4663,6 @@ export default {
     },
     // 图片类型选择
     selectImgType() {
-      this.getPhotoTypeList();
       this.showPicker = true;
     },
     onClickLeft() {

+ 1 - 15
src/views/agentList/visitedTaskDetail.vue

@@ -258,9 +258,8 @@
 </template>
 
 <script>
-import { getCollectionShowHistory, getPhotoTypeList } from '@/api/index';
 import deleteUploadImg from '@/components/deleteUploadImg';
-import { getVisitsDetail } from '@/api/agentList';
+import { getVisitsDetail, getCollectionShowHistory } from '@/api/agentList';
 
 export default {
   name: 'abnormalVisit',
@@ -315,7 +314,6 @@ export default {
     } else {
       this.indexselect = 1;
     }
-    // this.getPhotoTypeList();
     this.info();
   },
   methods: {
@@ -456,18 +454,6 @@ export default {
         }
       });
     },
-    getPhotoTypeList() {
-      getPhotoTypeList({}).then((res) => {
-        var PhotoTypeLists = [];
-        for (var p = 0; p < res.data.length; p++) {
-          PhotoTypeLists.push({
-            dictValue: res.data[p].dictValue,
-            text: res.data[p].dictLabel,
-          });
-        }
-        this.PhotoTypeList = PhotoTypeLists;
-      });
-    },
     onClickLeft() {
       this.$router.go(-1);
     },

+ 1 - 0
src/views/home/visitCollapse.vue

@@ -81,6 +81,7 @@ export default {
       .child-targetName {
         padding-bottom: 5px;
         font-weight: 600;
+        color: #000;
       }
       .target-box {
         overflow: hidden;