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/procurementInvoiceLedger/index.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/procurementManagement/procurementInvoiceLedger/index.vue b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
index 5c01e3a..d719591 100644
--- a/src/views/procurementManagement/procurementInvoiceLedger/index.vue
+++ b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
@@ -78,7 +78,7 @@
           >
             缂栬緫
           </el-button>
-					<el-button link type="primary" size="small" @click="downLoadFile(row)">闄勪欢</el-button>
+					<el-button link type="primary" @click="downLoadFile(row)">闄勪欢</el-button>
           <el-button
             type="primary"
 						link
@@ -119,6 +119,7 @@
 import useUserStore from "@/store/modules/user.js";
 import dayjs from "dayjs";
 import FileList from "./fileList.vue";
+import { truncate } from "@/utils/index.js";
 
 defineOptions({
   name: "鏉ョエ鍙拌处",
@@ -177,7 +178,7 @@
       prop: "taxInclusiveTotalPrice",
       width: 200,
       formatData: (cell) => {
-        return cell ? parseFloat(cell).toFixed(2) : 0;
+        return cell ? truncate(parseFloat(cell), 3) : 0;
       },
     },
     {
@@ -190,7 +191,7 @@
       prop: "ticketsAmount",
       width: 200,
       formatData: (cell) => {
-        return cell ? parseFloat(cell).toFixed(2) : 0;
+        return cell ? truncate(parseFloat(cell), 3) : 0;
       },
     },
     {
@@ -198,7 +199,7 @@
       prop: "unTicketsPrice",
       width: 200,
       formatData: (cell) => {
-        return cell ? parseFloat(cell).toFixed(2) : 0;
+        return cell ? truncate(parseFloat(cell), 3) : 0;
       },
     },
     {

--
Gitblit v1.9.3