From ac00bb7b8eae1bf6aabb7f1ae67c2e5aa5b8ae90 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 12 六月 2026 10:21:12 +0800
Subject: [PATCH] 宝东 1.样式问题
---
src/views/financialManagement/assets/fixedAssets.vue | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/views/financialManagement/assets/fixedAssets.vue b/src/views/financialManagement/assets/fixedAssets.vue
index 24b4cc3..a37baaf 100644
--- a/src/views/financialManagement/assets/fixedAssets.vue
+++ b/src/views/financialManagement/assets/fixedAssets.vue
@@ -117,7 +117,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="璧勪骇鍘熷��" prop="originalValue">
- <el-input-number v-model="form.originalValue" :min="0" :precision="2" style="width: 100%;" @change="calculateNetValue" />
+ <el-input-number v-model="form.originalValue" :min="0" :precision="4" style="width: 100%;" @change="calculateNetValue" />
</el-form-item>
</el-col>
</el-row>
@@ -130,7 +130,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="娈嬪�肩巼" prop="residualRate">
- <el-input-number v-model="form.residualRate" :min="0" :max="10" :precision="2" style="width: 100%;" />
+ <el-input-number v-model="form.residualRate" :min="0" :max="10" :precision="4" style="width: 100%;" />
<span style="margin-left: 10px;">%</span>
</el-form-item>
</el-col>
@@ -286,7 +286,9 @@
const formatMoney = (value) => {
if (value === undefined || value === null) return "0.00";
- return Number(value).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
+ const parts = Number(value).toFixed(4).split(".");
+ parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
+ return parts.join(".");
};
const getCategoryLabel = (category) => {
@@ -315,7 +317,7 @@
const calculateNetValue = () => {
const originalValue = Number(form.originalValue || 0);
const accumulatedDepreciation = Number(form.accumulatedDepreciation || 0);
- form.netValue = Number((originalValue - accumulatedDepreciation).toFixed(2));
+ form.netValue = Number((originalValue - accumulatedDepreciation).toFixed(4));
};
// 鑱旇皟绾﹀畾锛氬垎椤靛弬鏁板浐瀹氫负 current/size锛岃繑鍥� data.records/data.total
--
Gitblit v1.9.3