فهرست منبع

经销商拜访

zhujindu 9 ماه پیش
والد
کامیت
1c1c19cd30
4فایلهای تغییر یافته به همراه40 افزوده شده و 34 حذف شده
  1. 5 4
      src/views/home/index.vue
  2. 7 6
      src/views/home/visitHistory.vue
  3. 13 11
      src/views/home/visitHistoryDetail.vue
  4. 15 13
      src/views/home/visitedTaskDetail.vue

+ 5 - 4
src/views/home/index.vue

@@ -831,10 +831,11 @@ export default {
         buryingPointName: '客户信息',
         buryingPointPosition: this.tabVal == 1 ? '我的' : '销售部',
       });
-      this.$router.push({
-        path: '/storeDetail',
-        query: { id: val.chainId, detilId: 'a' },
-      });
+      window.location.href =
+        process.env.VUE_APP_SSB_LINK +
+        '/order/storeDetail/list?customerCode=' +
+        item.chainCode +
+        '&status=jxs';
     },
     // 拜访信息
     Visit(val) {

+ 7 - 6
src/views/home/visitHistory.vue

@@ -21,7 +21,7 @@
       <div style="color: #999; font-size: 12px; padding: 10px; background-color: #f5f5f5">
         <van-icon name="info-o" />&nbsp;历史拜访。
       </div>
-      <div class="card history">
+      <div class="card history" v-if="list.length">
         <div
           class="info"
           v-for="(item, index) in list"
@@ -73,8 +73,8 @@ export default {
       this.$router.push({
         path: '/visitHistoryDetail',
         query: {
-          visitsId: item.visitsId,
-          chainId: this.chainId,
+          id: item.id,
+          ...this.urlParameter,
         },
       });
     },
@@ -170,12 +170,13 @@ export default {
   color: #0057ba;
 }
 .history {
-  padding: 8px 0;
-  border-bottom: 1px solid #666;
+  // border-bottom: 1px solid #666;
   display: flex;
   align-items: center;
   .info {
     width: 100%;
+    margin-left: 10px;
+    padding: 8px 0;
   }
   .item {
     display: flex;
@@ -190,7 +191,7 @@ export default {
       }
     }
     .icon {
-      margin-right: 5px;
+      margin-right: 10px;
     }
   }
 }

+ 13 - 11
src/views/home/visitHistoryDetail.vue

@@ -9,14 +9,16 @@
       <div class="lineGrey"></div>
       <div class="card mt10">
         <div class="title">
-          {{ list.chainName }}(<span style="color: #1989fa">{{ list.chainCode }}</span
+          {{ urlParameter.chainName }}(<span style="color: #1989fa">{{
+            urlParameter.chainCode
+          }}</span
           >)
         </div>
-        <div class="info">客户分类:{{ verifyChainType(list.typeCode2) }}</div>
-        <div class="info">实际经营者:{{ list.customerManager }}</div>
-        <div class="info">开户日期:{{ list.openDate }}</div>
-        <div class="info">是否冻结:{{ list.freeze }}</div>
-        <div class="info">是否关户:{{ list.close }}</div>
+        <div class="info">客户分类:{{ verifyChainType(urlParameter.typeCode2) }}</div>
+        <div class="info">实际经营者:{{ urlParameter.customerManager }}</div>
+        <div class="info">开户日期:{{ urlParameter.openDate }}</div>
+        <div class="info">是否冻结:{{ urlParameter.freeze }}</div>
+        <div class="info">是否关户:{{ urlParameter.close }}</div>
       </div>
       <div style="padding: 10px 16px; font-size: 16px; font-weight: bold">任务</div>
       <div class="card" v-if="list.visitSource != 2">
@@ -80,11 +82,11 @@ export default {
       updateTimeShow: false,
       insert: true,
       list: '',
+      urlParameter: null,
     };
   },
   created() {
-    this.chainId = this.$route.query.chainId;
-    this.visitsId = this.$route.query.visitsId;
+    this.urlParameter = this.$route.query;
     this.getVisitsDetailFn();
     this.getPhotoTypeList();
   },
@@ -95,7 +97,7 @@ export default {
       });
     },
     getVisitsDetailFn() {
-      getVisitsDetail({ visitsId: this.visitsId }).then((res) => {
+      getVisitsDetail({ visitsId: this.urlParameter.id }).then((res) => {
         if (res.code == 200) {
           this.list = res.data;
           if (res.data.stopTime != res.data.updateTime) {
@@ -125,8 +127,8 @@ export default {
     },
     historiStoreVisit(val, index) {
       this.$router.push({
-        path: '/historiStoreVisit',
-        query: { visitId: this.visitsId, ids: index, taskType: val.taskType },
+        path: '/visitedTaskDetail',
+        query: { ...this.urlParameter, activatedIndex: index, taskType: val.taskType },
       });
       sessionStorage.setItem('collectionItemList', JSON.stringify(val.collectionItemList));
     },

+ 15 - 13
src/views/home/visitedTaskDetail.vue

@@ -258,8 +258,9 @@
 </template>
 
 <script>
-import { getCollectionShowHistory, getPhotoTypeList, getVisitsDetail } from '@/api/index';
+import { getCollectionShowHistory, getPhotoTypeList } from '@/api/index';
 import deleteUploadImg from '@/components/deleteUploadImg';
+import { getVisitsDetail } from '@/api/home';
 
 export default {
   name: 'abnormalVisit',
@@ -289,7 +290,7 @@ export default {
       storeGroupId: '',
       taskId: '',
       collectionId: '',
-      storeId: '',
+      chainId: '',
       collectionAnswerlisd: [],
       tableData1: [],
       taskType: 1,
@@ -298,21 +299,23 @@ export default {
       checkShow: false,
       infoData: {},
       putInCode: '',
+      urlParameter: null,
     };
   },
   created() {
+    this.urlParameter = this.$route.query;
     this.taskType = this.$route.query.taskType;
     this.PhotoType = this.$route.query.photoType;
-    this.visitId = this.$route.query.visitId + '';
+    this.visitId = this.$route.query.id + '';
     this.taskId = this.$route.query.taskId + '';
-    this.storeId = this.$route.query.storeId + '';
+    this.chainId = this.$route.query.chainId + '';
     this.storeGroupId = this.$route.query.storeGroupId + '';
     if (this.$route.query.photoType != null) {
       this.indexselect = 0;
     } else {
       this.indexselect = 1;
     }
-    this.getPhotoTypeList();
+    // this.getPhotoTypeList();
     this.info();
   },
   methods: {
@@ -337,7 +340,7 @@ export default {
     // 历史回显
     getCollectionShowHistory(id) {
       getCollectionShowHistory({
-        storeId: this.infoData.storeId,
+        chainId: this.infoData.chainId,
         collectionId: id.collectionId,
         visitsId: this.$route.query.visitId,
         storeGroupId: this.$route.query.storeGroupId,
@@ -363,17 +366,16 @@ export default {
     info() {
       getVisitsDetail({ visitsId: this.visitId }).then((res) => {
         this.infoData = res.data;
-        var collectionItemLists = res.data.sfaTaskList[this.$route.query.ids].collectionItemList;
-        if (res.data.sfaTaskList[this.$route.query.ids].checkUnManage == 'Y') {
+        var collectionItemLists =
+          res.data.sfaTaskList[this.$route.query.activatedIndex].collectionItemList;
+        if (res.data.sfaTaskList[this.$route.query.activatedIndex].checkUnManage == 'Y') {
           this.checkShow = true;
         } else {
           this.checkShow = false;
         }
-        // this.deviceCode=res.data.deviceCode;
-        // this.putInCode=res.data.putInCode;
-        this.deviceCode = res.data.sfaTaskList[this.$route.query.ids].deviceCode || ''; // 设备编号
-        this.putInCode = res.data.sfaTaskList[this.$route.query.ids].putInCode || ''; // 投放编号
-        if (res.data.sfaTaskList[this.$route.query.ids].inspectionType == 'buy') {
+        this.deviceCode = res.data.sfaTaskList[this.$route.query.activatedIndex].deviceCode || ''; // 设备编号
+        this.putInCode = res.data.sfaTaskList[this.$route.query.activatedIndex].putInCode || ''; // 投放编号
+        if (res.data.sfaTaskList[this.$route.query.activatedIndex].inspectionType == 'buy') {
           this.showCode = true;
         } else {
           this.showCode = false;