Browse Source

Merge branch 'feature_20250114_新增同城分销店增加去下单提示' into uat(dev)

zhujindu 10 months ago
parent
commit
7390d29f47
1 changed files with 4 additions and 12 deletions
  1. 4 12
      src/views/storeManagement/storeAdd.vue

+ 4 - 12
src/views/storeManagement/storeAdd.vue

@@ -1712,11 +1712,7 @@ export default {
         }
       }
       this.fromValue.orderProductStoreList = arrList;
-      let loading1 = this.$toast.loading({
-        duration: 0,
-        message: '加载中...',
-        forbidClick: true,
-      });
+      this.toastLoading(0, '上传中...', true);
       var fromValue = this.fromValue;
       var telrg = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
       if (fromValue.orgId == '') {
@@ -1851,7 +1847,7 @@ export default {
         this.verifyStoreType(this.fromValue.storeCategory) &&
         this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
       ) {
-        loading1.clear();
+        this.toastLoading().clear();
         this.$dialog
           .confirm({
             title: '系统提示',
@@ -1860,11 +1856,7 @@ export default {
             cancelButtonText: '修改门店信息',
           })
           .then(() => {
-            let loading1 = this.$toast.loading({
-              duration: 0,
-              message: '加载中...',
-              forbidClick: true,
-            });
+            this.toastLoading(0, '上传中...', true);
             this.addStoreFun();
           });
       } else {
@@ -1874,7 +1866,7 @@ export default {
     // 添加门店
     addStoreFun() {
       addStore(this.fromValue).then((res) => {
-        loading1.clear();
+        this.toastLoading().clear();
         if (res.code == 200) {
           if (res.data.serverCode) {
             this.fromValue.storeCode = res.data.sfaStore.storeCode;