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/productionManagement/processRoute/processRouteItem/index.vue | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/src/views/productionManagement/processRoute/processRouteItem/index.vue b/src/views/productionManagement/processRoute/processRouteItem/index.vue
index 3c52410..d5dfce5 100644
--- a/src/views/productionManagement/processRoute/processRouteItem/index.vue
+++ b/src/views/productionManagement/processRoute/processRouteItem/index.vue
@@ -340,7 +340,7 @@
style="margin: 0">
<el-input-number v-model="row.unitQuantity"
:min="0"
- :precision="2"
+ :precision="4"
:step="1"
controls-position="right"
style="width: 100%"
@@ -358,7 +358,7 @@
style="margin: 0">
<el-input-number v-model="row.demandedQuantity"
:min="0"
- :precision="2"
+ :precision="4"
:step="1"
controls-position="right"
style="width: 100%"
@@ -1203,17 +1203,11 @@
if (!Number.isFinite(numberValue)) {
return 0;
}
- return Number(numberValue.toFixed(2));
+ return Number(numberValue.toFixed(4));
};
const syncDemandedQuantityTree = (items, parentDemandedQuantity = null) => {
items.forEach(item => {
- if (parentDemandedQuantity !== null) {
- item.demandedQuantity = toQuantityNumber(
- parentDemandedQuantity * toQuantityNumber(item.unitQuantity)
- );
- }
-
if (Array.isArray(item.children) && item.children.length > 0) {
syncDemandedQuantityTree(
item.children,
--
Gitblit v1.9.3