领用核算:去分页
This commit is contained in:
@@ -12,15 +12,14 @@ export function initProject() {
|
||||
})
|
||||
}
|
||||
// 初始化项目金额统计表
|
||||
export function searchReceiveCheck(pageCurrent, pageSize, check, num) {
|
||||
export function searchReceiveCheck(check, num) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '采购管理_领用核算_查询数据',
|
||||
param: `项目流水号_check=${check}&项目流水号=${num}`,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
param: `项目流水号_check=${check}&项目流水号=${num}`
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -19,8 +19,10 @@
|
||||
height="440"
|
||||
size="mini"
|
||||
show-summary
|
||||
highlight-current-row
|
||||
stripe
|
||||
border>
|
||||
<el-table-column align="center" label="序号" type="index">
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="项目名称">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.项目名称 }}
|
||||
@@ -62,16 +64,6 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin-top: 10px;">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent"
|
||||
:page-sizes="[10, 20, 30, 40, 50]"
|
||||
:page-size="pageSize"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"/>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
@@ -111,20 +103,10 @@ export default {
|
||||
if (!this.projectValue) {
|
||||
this.$message.error('请选择项目')
|
||||
} else {
|
||||
searchReceiveCheck(this.pageCurrent, this.pageSize, 1, this.projectValue).then(response => {
|
||||
this.tableData1 = response.data.rows
|
||||
this.total = response.data.total
|
||||
searchReceiveCheck(1, this.projectValue).then(response => {
|
||||
this.tableData1 = response.data
|
||||
})
|
||||
}
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
this.pageSize = val
|
||||
this.pageCurrent = 1
|
||||
this.searchProject()
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
this.pageCurrent = val
|
||||
this.searchProject()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user