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 | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/views/procurementManagement/procurementInvoiceLedger/index.vue b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
index 6ddc27e..d719591 100644
--- a/src/views/procurementManagement/procurementInvoiceLedger/index.vue
+++ b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
@@ -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