瀏覽代碼

1. 优化

MONSTER-ygh 5 月之前
父節點
當前提交
8b2b8be2e4

+ 5 - 1
src/views/distribution/recordMr/index.vue

@@ -292,7 +292,11 @@ export default {
           this.dataList = response.data.rows;
           this.total = response.data.total;
           this.loading = false;
-      });
+      }).catch(()=>{
+        this.dataList = [];
+        this.total = 0;
+        this.loading = false;
+      })
     },
     // 取消按钮
     cancel() {

+ 5 - 1
src/views/finance/InvoiceRecords/index.vue

@@ -213,7 +213,11 @@ export default {
           this.total = response.data.total;
           this.loading = false;
         }
-      );
+      ).catch(()=>{
+        this.dataList = [];
+        this.total = 0;
+        this.loading = false;
+      })
     },
     // 取消按钮
     cancel() {

+ 7 - 0
src/views/finance/flowingWaterMr/index.vue

@@ -291,6 +291,13 @@ export default {
       }
       delete params.performDate
       delete params.time
+      if(params.id && params.id.length > 19) {
+        this.$message.error('订单号不存在!!!');
+        this.dataList = [];
+        this.total = 0;
+        this.loading = false;
+        return
+      }
       pageList(params)
       .then(response => {
           this.dataList = response.data.rows;

+ 5 - 1
src/views/finance/refundMr/index.vue

@@ -234,7 +234,11 @@ export default {
           this.total = response.data.total;
           this.loading = false;
         }
-      );
+      ).catch(()=>{
+        this.dataList = [];
+        this.total = 0;
+        this.loading = false;
+      })
     },
     // 取消按钮
     cancel() {

+ 5 - 1
src/views/order/writeOffMr/index.vue

@@ -161,7 +161,11 @@ export default {
           this.dataList = response.data.rows;
           this.total = response.data.total;
           this.loading = false;
-      });
+      }).catch(()=>{
+        this.dataList = [];
+        this.total = 0;
+        this.loading = false;
+      })
     },
     // 取消按钮
     cancel() {