From cc5f417ae4c3dc2f0da4b65fb1983d1e2282e938 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期六, 30 五月 2026 13:13:59 +0800
Subject: [PATCH] fix: bom的单位产出所需数量保留四位小数
---
src/views/productionManagement/processRoute/processRouteItem/index.vue | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/views/productionManagement/processRoute/processRouteItem/index.vue b/src/views/productionManagement/processRoute/processRouteItem/index.vue
index 3c52410..41e2109 100644
--- a/src/views/productionManagement/processRoute/processRouteItem/index.vue
+++ b/src/views/productionManagement/processRoute/processRouteItem/index.vue
@@ -340,7 +340,6 @@
style="margin: 0">
<el-input-number v-model="row.unitQuantity"
:min="0"
- :precision="2"
:step="1"
controls-position="right"
style="width: 100%"
@@ -358,7 +357,6 @@
style="margin: 0">
<el-input-number v-model="row.demandedQuantity"
:min="0"
- :precision="2"
:step="1"
controls-position="right"
style="width: 100%"
@@ -1203,7 +1201,7 @@
if (!Number.isFinite(numberValue)) {
return 0;
}
- return Number(numberValue.toFixed(2));
+ return Number(numberValue.toFixed(4));
};
const syncDemandedQuantityTree = (items, parentDemandedQuantity = null) => {
--
Gitblit v1.9.3