فهرست منبع

新增网络请求加载界面

695593266@qq.com 7 ماه پیش
والد
کامیت
f32f6a8e9d

+ 7 - 7
src/views/beEntrusted/components/create-order.vue

@@ -488,21 +488,21 @@
             sourceType: 3
           };
 
-          // this.loading = this.$loading({
-          //   lock: true,
-          //   text: '加载中',
-          //   background: 'rgba(0, 0, 0, 0.7)'
-          // });
+          this.loading = this.$loading({
+            lock: true,
+            text: '加载中',
+            background: 'rgba(0, 0, 0, 0.7)'
+          });
 
           createProductionOrder(params)
             .then((res) => {
-              // this.loading.close();
+              this.loading.close();
               this.$message.success('成功');
               this.cancel();
               this.$emit('refresh');
             })
             .catch((e) => {
-              // this.loading.close();
+              this.loading.close();
             });
         });
       },

+ 7 - 7
src/views/beEntrusted/components/goodsDetail.vue

@@ -219,20 +219,20 @@
           }
         }
 
-        // this.loading = this.$loading({
-        //   lock: true,
-        //   text: '加载中',
-        //   background: 'rgba(0, 0, 0, 0.7)'
-        // });
+        this.loading = this.$loading({
+          lock: true,
+          text: '加载中',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
         confirmReceipt(this.goodsList)
           .then((res) => {
-            // this.loading.close();
+            this.loading.close();
             this.$message.success('收货成功');
             this.$emit('done');
             this.visible = false;
           })
           .catch(() => {
-            // this.loading.close();
+            this.loading.close();
           });
       },
 

+ 14 - 9
src/views/entrust/components/goodsDetail.vue

@@ -228,31 +228,36 @@
             return this.$message.warning('请先新增一条在制品数据!');
           }
 
-          // this.loading = this.$loading({
-          //   lock: true,
-          //   text: '加载中',
-          //   background: 'rgba(0, 0, 0, 0.7)'
-          // });
+          this.loading = this.$loading({
+            lock: true,
+            text: '加载中',
+            background: 'rgba(0, 0, 0, 0.7)'
+          });
           pleaseEntrustSaveDetail(this.goodsList)
             .then((res) => {
-              // this.loading.close();
+              this.loading.close();
               this.$message.success('发货成功');
               this.$emit('done');
               this.visible = false;
             })
             .catch(() => {
-              // this.loading.close();
+              this.loading.close();
             });
         } else if (this.type == 'receipt') {
+          this.loading = this.$loading({
+            lock: true,
+            text: '加载中',
+            background: 'rgba(0, 0, 0, 0.7)'
+          });
           pleaseTReceiveGoods(this.goodsList)
             .then((res) => {
-              // this.loading.close();
+              this.loading.close();
               this.$message.success('收货成功');
               this.$emit('done');
               this.visible = false;
             })
             .catch(() => {
-              // this.loading.close();
+              this.loading.close();
             });
         }
       },