shish 2 år sedan
förälder
incheckning
1a0aaaf8af
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      hdApp/src/pagesPurchase/shopping.vue

+ 1 - 3
hdApp/src/pagesPurchase/shopping.vue

@@ -81,13 +81,12 @@ export default {
     })
   },
   methods: {
-    // tab切换
     change(e) {
 			if (this.tabIndex == e.index) {
 				return false;
 			} else {
+        this.resetList()
 				this.tabIndex = e.index;
-        console.log(e.item.key)
         this.status = e.item.key
         this.getpurchaseList()
 			}
@@ -95,7 +94,6 @@ export default {
     init() {
       this.getpurchaseList()
     },
-    // 获取采购记录列表
     getpurchaseList () {
       return purchaseList({ status: this.status,page: this.list.page }).then(res => {
         this.completes(res)