Explorar el Código

同城店铺新建流程重构

zhujindu hace 1 año
padre
commit
8b7a990955

+ 1 - 1
src/views/storeManagement/index.vue

@@ -393,7 +393,7 @@ export default {
     };
   },
   activated() {
-    // 是否从下单成功页面跳转过来
+    // 是否从下单成功页面跳转过来,下单成功后点击上传陈列照直接跳转到编辑页面
     let id = localStorage.getItem('successStoreId');
     if (this.$route.query.source == 'successPage' && id) {
       // 跳转到详情页

+ 35 - 24
src/views/storeManagement/storeDetail.vue

@@ -560,30 +560,41 @@ export default {
     };
   },
   activated() {
-    this.showmap = false;
-    this.img = '';
-    this.detilId = this.$route.query.detilId;
-    this.type = this.$route.query.type; // type:address 拜访时位置偏差过大,可以修改地址(只能修改地址)
-    this.getCustomerInfoList();
-    this.getManagementModelList();
-    this.getMainRelationList();
-    this.getMainProjectList();
-    this.getCustomerNatureList();
-    this.getTCFXList();
-    this.getSJSList();
-    this.getQGJZist();
-    this.getStoreType();
-    this.getpotentialCustomerTypeList();
-    this.visitListList = [];
-    this.getStreetQuery('');
-    window.scrollTo(0, 0);
-    this.poiAddress = '';
-    this.myLat = '';
-    this.poiLat = '';
-    this.poiLon = '';
-    this.poiId = '';
-    this.myLon = '';
-    this.poiName = '';
+    // 下单成功后点击上传陈列照直接跳转到编辑页面
+    let id = localStorage.getItem('successStoreId');
+    if (id) {
+      // 跳转到编辑页
+      this.$router.push({
+        path: '/storeEdit',
+        query: { id: id },
+      });
+      localStorage.removeItem('successStoreId');
+    } else {
+      this.showmap = false;
+      this.img = '';
+      this.detilId = this.$route.query.detilId;
+      this.type = this.$route.query.type; // type:address 拜访时位置偏差过大,可以修改地址(只能修改地址)
+      this.getCustomerInfoList();
+      this.getManagementModelList();
+      this.getMainRelationList();
+      this.getMainProjectList();
+      this.getCustomerNatureList();
+      this.getTCFXList();
+      this.getSJSList();
+      this.getQGJZist();
+      this.getStoreType();
+      this.getpotentialCustomerTypeList();
+      this.visitListList = [];
+      this.getStreetQuery('');
+      window.scrollTo(0, 0);
+      this.poiAddress = '';
+      this.myLat = '';
+      this.poiLat = '';
+      this.poiLon = '';
+      this.poiId = '';
+      this.myLon = '';
+      this.poiName = '';
+    }
   },
   methods: {
     newimgarr1(val) {

+ 1 - 1
src/views/storeManagement/success.vue

@@ -95,7 +95,7 @@ export default {
       //   window.location.origin + '/mobile/storeDetail?id=' + this.fromValue.storeId
       // );
       localStorage.setItem('successStoreId', this.fromValue.storeId);
-      // 跳转到列表在跳到详情页
+      // 跳转到列表在跳到详情页在跳编辑页
       window.location.replace(
         window.location.origin + '/mobile/storemanagementlist?source=successPage'
       );