From e211fcea54dc197a9524a9f461de70b3c8c3514a Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 17 Nov 2025 11:36:47 +0800 Subject: [PATCH] =?UTF-8?q?2025-11-17=20=E8=AE=A2=E5=8D=95=E4=BA=A7?= =?UTF-8?q?=E5=87=BA=E6=A0=87=E7=AD=BE=E6=8A=A5=E8=A1=A8=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../searchSfdcRollsReport.vue | 42 +++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue b/src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue index 0ce3f18..0a7e28f 100644 --- a/src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue +++ b/src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue @@ -90,6 +90,15 @@ + + @@ -236,6 +245,9 @@ import {updateInventoryStockAttribute} from "../../../../api/wms/wms"; }, dataList:[], dataListLoading: false, + pageIndex: 1, + pageSize: 50, + totalPage: 0, columnList: [ { userId: this.$store.state.user.name, @@ -575,9 +587,33 @@ import {updateInventoryStockAttribute} from "../../../../api/wms/wms"; }) }, getData(){ - searchSfdcRollsReport(this.searchData).then(({data}) => { - this.dataList = data.rows - }) + this.dataListLoading = true; + // 添加分页参数 + const params = { + ...this.searchData, + page: (this.pageIndex - 1) * this.pageSize, // OFFSET 参数 + limit: this.pageSize // FETCH NEXT 参数 + }; + searchSfdcRollsReport(params).then(({data}) => { + this.dataList = data.rows || []; + this.totalPage = data.total || 0; + this.dataListLoading = false; + }).catch(err => { + console.error('查询失败:', err); + this.$message.error('查询失败!'); + this.dataListLoading = false; + }); + }, + // 每页数 + sizeChangeHandle(val) { + this.pageSize = val; + this.pageIndex = 1; + this.getData(); + }, + // 当前页 + currentChangeHandle(val) { + this.pageIndex = val; + this.getData(); }, //导出excel createExportData() {