Browse Source

确认出入库调用失败时重新请求详情接口

Qukatie 1 week ago
parent
commit
5e0aac8033

+ 6 - 0
src/views/tirePartsMall/purchaseService/outStorage/detailsPage.vue

@@ -634,6 +634,9 @@ export default {
                 this.refresh(this.form.id, true);
               }
             })
+            .catch(() => {
+              this.refresh(this.form.id);
+            })
             .finally(() => {
               loading.close();
             });
@@ -714,6 +717,9 @@ export default {
                     this.$message.success("出库完成");
                     this.refresh(this.form.id);
                   })
+                  .catch(() => {
+                    this.refresh(this.form.id);
+                  })
                   .finally(() => {
                     loading.close();
                   });

+ 7 - 1
src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/detailsPage.vue

@@ -1084,6 +1084,9 @@ export default {
                 this.refresh(this.form.id, true);
               }
             })
+            .catch(() => {
+              this.refresh(this.form.id);
+            })
             .finally(() => {
               loading.close();
             });
@@ -1157,6 +1160,9 @@ export default {
                     this.refresh(res.data.data.id);
                     this.$message.success("入库完成");
                   })
+                  .catch(() => {
+                    this.refresh(this.form.id);
+                  })
                   .finally(() => {
                     loading.close();
                   });
@@ -1293,7 +1299,7 @@ export default {
         let multiList = this.selectionMultilist;
         let arr = this.form.shipItemsList;
         // 获取有id 的数据
-        const itemsWithId = multiList.filter(item => item.id);;
+        const itemsWithId = multiList.filter(item => item.id);
         let arrIds = itemsWithId.map(item => item.id); // 获取id 数据
         // 把选中的删除掉
         multiList.forEach(item => {

+ 6 - 0
src/views/tirePartsMall/salesManagement/outboundWorkOrderL/detailsPage.vue

@@ -1084,6 +1084,9 @@ export default {
               this.$message.success("撤销成功");
               this.refresh(this.form.id, true);
             })
+            .catch(() => {
+              this.refresh(this.form.id);
+            })
             .finally(() => {
               loading.close();
             });
@@ -1197,6 +1200,9 @@ export default {
                   this.$message.success("调拨完成");
                   this.refresh(this.form.id);
                 })
+                .catch(() => {
+                  this.refresh(this.form.id);
+                })
                 .finally(() => {
                   loading.close();
                 });

+ 7 - 1
src/views/tirePartsMall/salesService/inStorage/detailsPage.vue

@@ -1108,6 +1108,9 @@ export default {
                 this.refresh(this.form.id, true);
               }
             })
+            .catch(() => {
+              this.refresh(this.form.id);
+            })
             .finally(() => {
               loading.close();
             });
@@ -1182,6 +1185,9 @@ export default {
                     this.refresh(this.form.id);
                     this.$message.success("入库完成");
                   })
+                  .catch(() => {
+                    this.refresh(this.form.id);
+                  })
                   .finally(() => {
                     loading.close();
                   });
@@ -1339,7 +1345,7 @@ export default {
         let multiList = this.selectionMultilist;
         let arr = this.form.shipItemsList;
         // 获取有id 的数据
-        const itemsWithId = multiList.filter(item => item.id);;
+        const itemsWithId = multiList.filter(item => item.id);
         let arrIds = itemsWithId.map(item => item.id); // 获取id 数据
         // 把选中的删除掉
         multiList.forEach(item => {