From 5176c8034401a0cfcce50481ec3eae6012ae3e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Thu, 4 Jun 2026 11:10:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor(mes/wms):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=A4=9A=E5=A4=84=E6=97=A5=E6=9C=9F=E5=A4=84=E7=90=86=E4=B8=8E?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=88=97=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 移除磨工页面字典表格的"值"列 2. 修复TimeInput组件日期格式化逻辑,补全月份日期补零处理 3. 为卷料录入页面添加日期格式化方法,替换直接赋值逻辑并新增生产时长计算 --- klp-ui/src/components/TimeInput.vue | 5 ++++- klp-ui/src/views/mes/roll/grind/index.vue | 1 - klp-ui/src/views/wms/coil/typing.vue | 21 +++++++++++++++++---- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/klp-ui/src/components/TimeInput.vue b/klp-ui/src/components/TimeInput.vue index 2ca612e4..a96da4ea 100644 --- a/klp-ui/src/components/TimeInput.vue +++ b/klp-ui/src/components/TimeInput.vue @@ -48,7 +48,10 @@ export default { } const date = new Date(dateTimeStr); if (!isNaN(date.getTime())) { - this.dateValue = date.toISOString().split('T')[0]; + const year = date.getFullYear(); + const month = String(date.getMonth() + 1).padStart(2, '0'); + const day = String(date.getDate()).padStart(2, '0'); + this.dateValue = `${year}-${month}-${day}`; this.hourValue = date.getHours(); this.minuteValue = date.getMinutes(); } diff --git a/klp-ui/src/views/mes/roll/grind/index.vue b/klp-ui/src/views/mes/roll/grind/index.vue index 32082c53..fe8362cd 100644 --- a/klp-ui/src/views/mes/roll/grind/index.vue +++ b/klp-ui/src/views/mes/roll/grind/index.vue @@ -342,7 +342,6 @@ -