From ece2dfeb926d728b10db38038e4d12e9e9851c24 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期五, 06 六月 2025 17:38:10 +0800
Subject: [PATCH] 分页修改

---
 src/views/procurementManagement/procurementInvoiceLedger/index.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/views/procurementManagement/procurementInvoiceLedger/index.vue b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
index dca8d7b..6edbab3 100644
--- a/src/views/procurementManagement/procurementInvoiceLedger/index.vue
+++ b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
@@ -81,7 +81,7 @@
 import {ElMessageBox } from "element-plus";
 import {productRecordList} from "@/api/procurementManagement/procurementInvoiceLedger.js";
 import {
-  invoiceList
+  invoiceListPage
 } from "@/api/procurementManagement/procurementInvoiceLedger.js";
 const { proxy } = getCurrentInstance()
 const tableData = ref([])
@@ -117,16 +117,16 @@
   page.current = 1
   getList()
 }
-const paginationChange = ({ current, limit }) => {
-  page.current = current;
-  page.size = limit;
+const paginationChange = (obj) => {
+  page.current = obj.page;
+  page.size = obj.limit;
   getList()
 }
 const getList = () => {
   tableLoading.value = true
-  invoiceList({ ...searchForm.value, ...page }).then(res => {
+  invoiceListPage({ ...searchForm.value, ...page }).then(res => {
     tableLoading.value = false
-    tableData.value = res.rows
+    tableData.value = res.records
     tableData.value.map(item => {
       item.children = []
     })
@@ -193,4 +193,4 @@
 getList()
 </script>
 
-<style scoped lang="scss"></style>
\ No newline at end of file
+<style scoped lang="scss"></style>

--
Gitblit v1.9.3