From fa636229ea3feb32cdbe6fef3233bcbd19ddd623 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 03 七月 2026 16:14:24 +0800
Subject: [PATCH] fix: 去除2位小数点限制

---
 src/views/procurementManagement/invoiceEntry/components/Modal.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/procurementManagement/invoiceEntry/components/Modal.vue b/src/views/procurementManagement/invoiceEntry/components/Modal.vue
index 33d5144..15f9d42 100644
--- a/src/views/procurementManagement/invoiceEntry/components/Modal.vue
+++ b/src/views/procurementManagement/invoiceEntry/components/Modal.vue
@@ -293,7 +293,7 @@
 		prop: "taxInclusiveUnitPrice",
 		width: 150,
 		formatData: (val) => {
-			return val ? parseFloat(val).toFixed(2) : 0;
+			return val ? parseFloat(val).toFixed(4) : 0;
 		},
 	},
 	{
@@ -341,10 +341,10 @@
 ];
 const formattedNumber = (row, column, cellValue) => {
 	if (cellValue == 0) {
-		return parseFloat(cellValue).toFixed(2);
+		return parseFloat(cellValue).toFixed(column.property === "taxInclusiveUnitPrice" ? 4 : 2);
 	}
 	if (cellValue) {
-		return parseFloat(cellValue).toFixed(2);
+		return parseFloat(cellValue).toFixed(column.property === "taxInclusiveUnitPrice" ? 4 : 2);
 	} else {
 		return cellValue;
 	}

--
Gitblit v1.9.3