From 3ab45f295fb26c7794b4829976f3fb20c68a012e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 22 一月 2026 10:33:41 +0800
Subject: [PATCH] 新疆海川开心 1.采购模块的计算都改为保留三位小数并且不四舍五入

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

diff --git a/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue b/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue
index 24a368a..63f31c3 100644
--- a/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue
+++ b/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue
@@ -14,7 +14,8 @@
 <script setup>
 import { usePaginationApi } from "@/hooks/usePaginationApi";
 import { productList } from "@/api/procurementManagement/procurementLedger.js";
-import { nextTick } from "vue";
+import { nextTick, getCurrentInstance } from "vue";
+import { truncate } from "@/utils/index.js";
 const { proxy } = getCurrentInstance();
 
 defineOptions({
@@ -61,7 +62,7 @@
       prop: "taxInclusiveUnitPrice",
 			width:200,
       formatData: (val) => {
-        return val ? parseFloat(val).toFixed(2) : "-";
+        return val ? truncate(parseFloat(val), 3) : "-";
       },
     },
     {
@@ -69,7 +70,7 @@
       prop: "taxInclusiveTotalPrice",
 			width:200,
       formatData: (val) => {
-        return val ? parseFloat(val).toFixed(2) : "-";
+        return val ? truncate(parseFloat(val), 3) : "-";
       },
     },
     {
@@ -77,7 +78,7 @@
       prop: "taxExclusiveTotalPrice",
 			width:200,
       formatData: (val) => {
-        return val ? parseFloat(val).toFixed(2) : "-";
+        return val ? truncate(parseFloat(val), 3) : "-";
       },
     },
     {
@@ -85,7 +86,7 @@
       prop: "ticketsAmount",
 			width:200,
       formatData: (val) => {
-        return val ? parseFloat(val).toFixed(2) : "-";
+        return val ? truncate(parseFloat(val), 3) : "-";
       },
     },
     {
@@ -97,7 +98,7 @@
       prop: "futureTicketsAmount",
 			width:200,
       formatData: (val) => {
-        return val ? parseFloat(val).toFixed(2) : "-";
+        return val ? truncate(parseFloat(val), 3) : "-";
       },
     },
   ],

--
Gitblit v1.9.3