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 |   50 +++++++++++++++++++-------------------------------
 1 files changed, 19 insertions(+), 31 deletions(-)

diff --git a/src/views/procurementManagement/paymentLedger/index.vue b/src/views/procurementManagement/paymentLedger/index.vue
index e7a576c..7ee2a3f 100644
--- a/src/views/procurementManagement/paymentLedger/index.vue
+++ b/src/views/procurementManagement/paymentLedger/index.vue
@@ -2,7 +2,7 @@
   <div class="app-container">
     <div class="search_form">
       <div>
-        <span class="search_title">浠樻鍙拌处锛�</span>
+        <span class="search_title">渚涘簲鍟嗗悕绉�:</span>
         <el-input
           v-model="searchForm.supplierNameOrContractNo"
           style="width: 240px"
@@ -94,36 +94,20 @@
 
 
 import {getInfo} from "@/api/login.js";
-const rowClick = async (row) => {
-  /* let res = await getInfo(row.id)
-  if (res.code === 200) {
-    proxy.$modal.msgSuccess("鑾峰彇鎴愬姛")
-    if(res.data == "" || res.data == null){
-      proxy.$modal.msgError("娌℃湁鏁版嵁")
-      return
-    }
-    rightShow.value = !rightShow.value
-    form.value = res.data
-
-  } else {
-    proxy.$modal.msgError(res.msg)
-  } */
-  tableDataSon.value.push(row);
-  if(tableDataSon.value.length > 10) {
-    tableDataSon.value = []
-  }
-}
+const rowClick = (row) => {
+  tableDataSon.value = Array.isArray(row.details) ? row.details : [];
+};
 
 
 // 瀛愭ā鍧�
 const tableColumnSon = ref([
   {
-    label: "渚涘簲鍟嗗悕绉�",
-    prop: "supplierName",
+    label: "浠樻鏃ユ湡",
+    prop: "paymentDate",
   },
   {
-    label: "鍙戠エ閲戦(鍏�)",
-    prop: "invoiceAmount",
+    label: "寮�绁ㄦ暟",
+    prop: "voteCount",
   },
   {
     label: "浠樻閲戦(鍏�)",
@@ -142,9 +126,8 @@
 });
 const totalSon = ref(0);
 const isShowSummarySon = ref(true);
-
-
-
+const detailPageNum = ref(1);
+const detailPageSize = ref(10);
 
 /** 鎼滅储鎸夐挳鎿嶄綔 */
 const handleQuery = () => {
@@ -163,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