From eff6f48a92f9318a95e95cc76c1685d4635d2040 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期六, 24 五月 2025 16:38:33 +0800
Subject: [PATCH] 供应商往来分页
---
src/views/procurementManagement/paymentLedger/index.vue | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/views/procurementManagement/paymentLedger/index.vue b/src/views/procurementManagement/paymentLedger/index.vue
index a5a4c40..7ee2a3f 100644
--- a/src/views/procurementManagement/paymentLedger/index.vue
+++ b/src/views/procurementManagement/paymentLedger/index.vue
@@ -96,7 +96,6 @@
import {getInfo} from "@/api/login.js";
const rowClick = (row) => {
tableDataSon.value = Array.isArray(row.details) ? row.details : [];
- console.log("111",tableDataSon.value);
};
@@ -127,9 +126,8 @@
});
const totalSon = ref(0);
const isShowSummarySon = ref(true);
-
-
-
+const detailPageNum = ref(1);
+const detailPageSize = ref(10);
/** 鎼滅储鎸夐挳鎿嶄綔 */
const handleQuery = () => {
@@ -148,11 +146,16 @@
};
const getList = () => {
tableLoading.value = false;
- paymentLedgerList({ ...searchForm.value, ...page }).then((res) => {
- let result = res.data
+ paymentLedgerList({
+ ...searchForm.value,
+ ...page,
+ detailPageNum: detailPageNum.value, // 鏂板
+ detailPageSize: detailPageSize.value // 鏂板
+ }).then((res) => {
+ let result = res.data;
tableLoading.value = false;
- tableData.value = result;
- total.value = result.total;
+ tableData.value = result.records || [];
+ total.value = result.total || 0;
});
};
// 琛ㄦ牸閫夋嫨鏁版嵁
--
Gitblit v1.9.3