From 41a639a4a4b6fbf35db7903b5ee3c068c8644430 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期二, 21 四月 2026 10:45:56 +0800
Subject: [PATCH] feat: 统一数值精度为三位小数并添加保养项目字段
---
src/views/procurementManagement/procurementInvoiceLedger/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/procurementManagement/procurementInvoiceLedger/index.vue b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
index d82e3e7..9b88bbf 100644
--- a/src/views/procurementManagement/procurementInvoiceLedger/index.vue
+++ b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
@@ -185,7 +185,7 @@
prop: "taxInclusiveTotalPrice",
width: 200,
formatData: (cell) => {
- return cell ? parseFloat(cell).toFixed(2) : 0;
+ return cell ? parseFloat(cell).toFixed(3) : 0;
},
},
{
@@ -198,7 +198,7 @@
prop: "ticketsAmount",
width: 200,
formatData: (cell) => {
- return cell ? parseFloat(cell).toFixed(2) : 0;
+ return cell ? parseFloat(cell).toFixed(3) : 0;
},
},
{
@@ -206,7 +206,7 @@
prop: "unTicketsPrice",
width: 200,
formatData: (cell) => {
- return cell ? parseFloat(cell).toFixed(2) : 0;
+ return cell ? parseFloat(cell).toFixed(3) : 0;
},
},
{
@@ -242,6 +242,9 @@
param,
["ticketsAmount", "unTicketsPrice", "invoiceAmount"],
{
+ ticketsAmount: { decimalPlaces: 3 },
+ unTicketsPrice: { decimalPlaces: 3 },
+ invoiceAmount: { decimalPlaces: 3 },
ticketsNum: { noDecimal: true },
futureTickets: { noDecimal: true },
}
@@ -260,7 +263,7 @@
(c) => c.property === "taxInclusiveTotalPrice"
);
if (taxInclusiveIndex !== -1) {
- sums[taxInclusiveIndex] = taxInclusiveSum.toFixed(2);
+ sums[taxInclusiveIndex] = taxInclusiveSum.toFixed(3);
}
return sums;
};
--
Gitblit v1.9.3