Explorar el Código

重复门店经销商维护

zhujindu hace 9 meses
padre
commit
1ea032c163

+ 5 - 0
src/router/index.js

@@ -111,6 +111,11 @@ const router = new VueRouter({
           name: 'success',
           component: () => import('@/views/storeManagement/success.vue'),
         },
+        {
+          path: '/chainMaintain',
+          name: 'chainMaintain',
+          component: () => import('@/views/storeManagement/chainMaintain.vue'),
+        },
       ],
     },
     {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1131 - 0
src/views/storeManagement/chainMaintain.vue


+ 17 - 0
src/views/storeManagement/storeAdd.vue

@@ -1865,6 +1865,23 @@ export default {
     },
     // 添加门店
     addStoreFun() {
+      // 门店重复判断
+      if (true) {
+        this.$dialog
+          .confirm({
+            title: '门店已存在',
+            message: `res.message`,
+            confirmButtonText: '维护',
+            cancelButtonText: '取消',
+          })
+          .then(() => {
+            this.$router.push({
+              path: '/chainMaintain',
+              query: { id: 'res.id' },
+            });
+          });
+      }
+      return;
       addStore(this.fromValue).then((res) => {
         this.toastLoading().clear();
         if (res.code == 200) {