From d420578cb8bc076be2f0c7dd5a4dbfca335d7cdb Mon Sep 17 00:00:00 2001
From: zhang_nuo <zhang_12370@163.com>
Date: 星期一, 17 八月 2026 21:44:51 +0800
Subject: [PATCH] feat(personnel,production): 新增年龄自动计算及工单数量支持小数
---
src/views/productionManagement/productionOrder/index.vue | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index 9c7682b..6e0c55a 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -125,7 +125,8 @@
<!-- 鏉ユ簮鏁版嵁寮圭獥 -->
<el-dialog v-model="sourceDataDialogVisible"
title="鏉ユ簮鏁版嵁"
- width="1200px">
+ width="1200px"
+ custom-class="source-data-dialog">
<div v-if="sourceRowData"
class="applyno-summary1">
<div class="summary-item">
@@ -487,7 +488,7 @@
if (!Number.isFinite(n)) return 0;
if (n <= 0) return 0;
if (n >= 100) return 100;
- return Math.round(n);
+ return parseFloat(n.toFixed(2));
};
// 30/50/80/100 鍒嗘棰滆壊锛氱孩/姗�/钃�/缁�
@@ -944,6 +945,17 @@
text-shadow: 0 1px 2px rgba(64, 158, 255, 0.2);
}
+ .source-data-dialog {
+ display: flex;
+ flex-direction: column;
+ max-height: 80vh;
+
+ .el-dialog__body {
+ overflow-y: auto;
+ flex: 1;
+ }
+ }
+
.source-table-container {
margin-top: 20px;
}
@@ -952,8 +964,6 @@
display: flex;
flex-direction: column;
gap: 16px;
- max-height: 500px;
- overflow-y: auto;
padding: 10px;
background-color: #f5f7fa;
border-radius: 4px;
--
Gitblit v1.9.3