From efdd816c74c5910d20e9133461154116cdd5334c Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 19 八月 2026 17:53:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_天津_阳光印刷' into dev_天津_阳光印刷
---
src/views/salesManagement/salesLedger/index.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index 1e5a0fe..7bb01c6 100644
--- a/src/views/salesManagement/salesLedger/index.vue
+++ b/src/views/salesManagement/salesLedger/index.vue
@@ -647,7 +647,7 @@
:min="0"
v-model="productForm.taxInclusiveUnitPrice"
style="width: 100%"
- :precision="4"
+ :precision="5"
placeholder="璇疯緭鍏�"
clearable
@change="calculateFromQuantity" />
@@ -1179,6 +1179,12 @@
if (Number.isNaN(num)) return "0.0000";
return num.toFixed(4);
};
+ const formatAmount5 = value => {
+ if (value === undefined || value === null || value === "") return "0.00000";
+ const num = Number(value);
+ if (Number.isNaN(num)) return "0.00000";
+ return num.toFixed(5);
+ };
const findLedgerRecordByRow = row => {
if (!row) return null;
if (
@@ -1663,7 +1669,7 @@
productForm.value.taxInclusiveUnitPrice !== null &&
productForm.value.taxInclusiveUnitPrice !== ""
) {
- productForm.value.taxInclusiveUnitPrice = formatAmount4(
+ productForm.value.taxInclusiveUnitPrice = formatAmount5(
productForm.value.taxInclusiveUnitPrice
);
}
@@ -2298,7 +2304,7 @@
productForm.value.taxInclusiveTotalPrice = totalPrice.toFixed(4);
// 璁$畻鍚◣鍗曚环 = 鍚◣鎬讳环 / 鏁伴噺
- productForm.value.taxInclusiveUnitPrice = (totalPrice / quantity).toFixed(4);
+ productForm.value.taxInclusiveUnitPrice = (totalPrice / quantity).toFixed(5);
// 濡傛灉鏈夌◣鐜囷紝璁$畻涓嶅惈绋庢�讳环
if (productForm.value.taxRate) {
@@ -2342,7 +2348,7 @@
// 璁$畻鍚◣鍗曚环 = 鍚◣鎬讳环 / 鏁伴噺
productForm.value.taxInclusiveUnitPrice = (
inclusiveTotalPrice / quantity
- ).toFixed(4);
+ ).toFixed(5);
isCalculating.value = false;
};
--
Gitblit v1.9.3