gaoluyang
2025-06-06 89a87a389d1e1a1a363aa39637694c044511af98
src/views/procurementManagement/paymentHistory/index.vue
@@ -10,6 +10,8 @@
    </div>
    <div class="table_list">
      <PIMTable :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true"
                :isShowSummary="isShowSummarySon"
                :summaryMethod="summarizeMainTable1"
        :handleSelectionChange="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination"
        :total="total"></PIMTable>
    </div>
@@ -23,6 +25,7 @@
  paymentHistoryList
} from "@/api/procurementManagement/paymentEntry.js";
const { proxy } = getCurrentInstance()
const isShowSummarySon = ref(true);
const tableColumn = ref([
  {
    label: '付款日期',
@@ -86,6 +89,13 @@
    total.value = res.total
  })
}
// 子表合计方法
const summarizeMainTable1 = (param) => {
  return proxy.summarizeTable(param, ['currentPaymentAmount'], {
    ticketsNum: { noDecimal: true }, // 不保留小数
    futureTickets: { noDecimal: true }, // 不保留小数
  });
};
// 表格选择数据
const handleSelectionChange = (selection) => {
  selectedRows.value = selection