瀏覽代碼

重复门店经销商维护

zhujindu 9 月之前
父節點
當前提交
1ea032c163
共有 3 個文件被更改,包括 1153 次插入0 次删除
  1. 5 0
      src/router/index.js
  2. 1131 0
      src/views/storeManagement/chainMaintain.vue
  3. 17 0
      src/views/storeManagement/storeAdd.vue

+ 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'),
+        },
       ],
     },
     {

文件差異過大導致無法顯示
+ 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) {