From fda152b544ed0b3ceb8309df5b7eca2de888f3f1 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期二, 10 六月 2025 11:39:55 +0800
Subject: [PATCH] 开票登记编辑功能开发
---
src/views/procurementManagement/paymentHistory/index.vue | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/src/views/procurementManagement/paymentHistory/index.vue b/src/views/procurementManagement/paymentHistory/index.vue
index 08cd462..13b5100 100644
--- a/src/views/procurementManagement/paymentHistory/index.vue
+++ b/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>
@@ -20,9 +22,10 @@
import { ref } from 'vue'
import { Search } from "@element-plus/icons-vue";
import {
- paymentHistoryList
+ paymentHistoryListPage
} from "@/api/procurementManagement/paymentEntry.js";
const { proxy } = getCurrentInstance()
+const isShowSummarySon = ref(true);
const tableColumn = ref([
{
label: '浠樻鏃ユ湡',
@@ -57,7 +60,7 @@
const tableLoading = ref(false)
const page = reactive({
current: 1,
- size: 10,
+ size: 100,
})
const total = ref(0)
const data = reactive({
@@ -73,19 +76,26 @@
page.current = 1
getList()
}
-const pagination = ({ current, limit }) => {
- page.current = current;
- page.size = limit;
+const pagination = (obj) => {
+ page.current = obj.page;
+ page.size = obj.limit;
getList()
}
const getList = () => {
tableLoading.value = true
- paymentHistoryList({ ...searchForm.value, ...page }).then(res => {
+ paymentHistoryListPage({ ...searchForm.value, ...page }).then(res => {
tableLoading.value = false
- tableData.value = res.rows
+ tableData.value = res.records
total.value = res.total
})
}
+// 瀛愯〃鍚堣鏂规硶
+const summarizeMainTable1 = (param) => {
+ return proxy.summarizeTable(param, ['currentPaymentAmount'], {
+ ticketsNum: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
+ futureTickets: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
+ });
+};
// 琛ㄦ牸閫夋嫨鏁版嵁
const handleSelectionChange = (selection) => {
selectedRows.value = selection
--
Gitblit v1.9.3