linwenxin 9 miesięcy temu
rodzic
commit
84236d14cc
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      src/packageMaterial/pages/stock/buyRecord.vue

+ 5 - 0
src/packageMaterial/pages/stock/buyRecord.vue

@@ -107,6 +107,10 @@ export default {
     this.getList();
   },
 
+  onShow(){
+    this.getCount();
+  },
+
   methods: {
     getCount() {
     	this.$api.post('/material/salses/count')
@@ -132,6 +136,7 @@ export default {
     		  this.loadStatus = 2;
     		}
     		this.dataList = this.dataList.concat(list);
+        this.getCount();
     	}).catch(() => {
     		this.loadStatus = 2;
     	}).finally(res => {