|
@@ -361,7 +361,7 @@
|
|
|
}
|
|
|
clearInterval(this.timer)
|
|
|
// submitState: 提交状态
|
|
|
- this.getPageList({pageSize:20,pageNum:1}, 'all'); // 综合数据
|
|
|
+ this.getPageList({pageSize:20,pageNo:1}, 'all'); // 综合数据
|
|
|
// recycleBin
|
|
|
// this.getPageList({ submitState: 0 }, 'draftsBox'); // 草稿箱数据
|
|
|
// this.getPageList({ submitState: 1 }, 'smt'); // 已提交数据
|
|
@@ -369,9 +369,15 @@
|
|
|
}
|
|
|
pagination(e:any){
|
|
|
console.log(e);
|
|
|
- api.pageList(e.page, 'supplyPurchaseOrder').then((res : any) => {
|
|
|
+ let query = {
|
|
|
+ pageNo:e.page.pageNum,
|
|
|
+ pageSize:e.page.pageSize,
|
|
|
+ };
|
|
|
+ let loading = this.$loading({ target: '.main-container' })
|
|
|
+ api.pageList(query, 'supplyPurchaseOrder').then((res : any) => {
|
|
|
if (res.code === 200) {
|
|
|
(this.$refs.bill as any).setTabTableValue(e.type, res.data.records);
|
|
|
+ loading.close()
|
|
|
} else this.failHandle(res)
|
|
|
})
|
|
|
}
|