From 1c0f01cc462d37e146c34127d2883ca51e26d508 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期二, 24 六月 2025 17:12:32 +0800
Subject: [PATCH] fix: 修复PIMTable不支持懒加载问题。修复【来票登记】金额格式化显示NaN问题。 style: 重构来票登记页面。 feat: 完善文件上传组件功能。【来票台账】底部添加合计。【来票登记】添加上传附件

---
 src/views/procurementManagement/procurementInvoiceLedger/index.vue |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/src/views/procurementManagement/procurementInvoiceLedger/index.vue b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
index c0e11d6..d161978 100644
--- a/src/views/procurementManagement/procurementInvoiceLedger/index.vue
+++ b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
@@ -42,23 +42,22 @@
     </el-form>
     <div class="table_list">
       <PIMTable
+        rowKey="id"
         :column="columns"
         :tableLoading="loading"
         :tableData="dataList"
         :isSelection="true"
+        height="calc(100vh - 18.5em)"
+        :isShowSummary="true"
+        :summaryMethod="summarizeMainTable"
         :page="{
           current: pagination.currentPage,
           size: pagination.pageSize,
           total: pagination.total,
         }"
-        :handleSelectionChange="handleSelectionChange"
+        @selection-change="handleSelectionChange"
         @pagination="onCurrentChange"
       >
-        <!-- <template #operation>
-          <el-button type="primary" text @click="handleEdit" size="small">
-            缂栬緫
-          </el-button>
-        </template> -->
       </PIMTable>
     </div>
   </div>
@@ -177,6 +176,23 @@
   }
 );
 
+// 涓昏〃鍚堣鏂规硶
+const summarizeMainTable = (param) => {
+  return proxy.summarizeTable(
+    param,
+    [
+      "taxInclusiveTotalPrice",
+      "ticketsAmount",
+      "unTicketsPrice",
+      "invoiceAmount",
+    ],
+    {
+      ticketsNum: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
+      futureTickets: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
+    }
+  );
+};
+
 const handleSelectionChange = (val) => {
   multipleVal.value = val;
 };

--
Gitblit v1.9.3