diff --git a/src/views/flow/payList.vue b/src/views/flow/payList.vue index 4ca0d10..dd054e8 100644 --- a/src/views/flow/payList.vue +++ b/src/views/flow/payList.vue @@ -57,7 +57,7 @@ icon="el-icon-edit" @click="handleBatchPay" >批量支付 - + @@ -135,7 +135,49 @@ -
+
+ + + + + + + + 查询 -
+
+ + + + + + + + 查询 ({ @@ -706,11 +818,21 @@ export default { }, async getReceivedList() { try { - const res = await receiveList({ + const params = { page: this.receivedPage, page_size: this.receivedPageSize, is_receive: 1, - }) + } + if (this.receivedQuery.creator_department_id) { + params.creator_department_id = this.receivedQuery.creator_department_id + } + if (this.receivedQuery.created_by) { + params.created_by = this.receivedQuery.created_by + } + if (this.receivedQuery.keywords) { + params.keywords = this.receivedQuery.keywords + } + const res = await receiveList(params) this.receivedTotal = res.total || 0 // 映射数据到表格字段 this.receivedRows = (res.data || []).map(item => ({ @@ -762,13 +884,25 @@ export default { this.receivedPageSize = 10 } - // 重置待采购查询条件 + // 重置查询条件 if (newTab === 'pending') { this.pendingQuery = { creator_department_id: '', created_by: '', keywords: '', } + } else if (newTab === 'processing') { + this.processingQuery = { + creator_department_id: '', + created_by: '', + keywords: '', + } + } else if (newTab === 'received') { + this.receivedQuery = { + creator_department_id: '', + created_by: '', + keywords: '', + } } // 清空所有表格的选中项(使用双重 nextTick 确保表格已渲染)