Przeglądaj źródła

显示采购单的数量

shish 2 lat temu
rodzic
commit
15a1a86760
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      ghsApp/src/pagesPurchase/order.vue

+ 2 - 1
ghsApp/src/pagesPurchase/order.vue

@@ -114,7 +114,8 @@ export default {
 			let status = this.tabs[this.tabIndex].key
 			let options = { page: this.list.page, status: status, ghsId:ghsId,location:0,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime }
 			return getPurchaseListApi(options) .then(res => {
-					this.completes(res);
+				this.completes(res)
+				this.tabs[this.tabIndex].value = res.data.totalNum?res.data.totalNum:0
 			})
 		},
 		changeTabEvent(info) {