From 0e075fe5d4b72d5db50b66d32eb91e19ccfdd57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Thu, 9 Apr 2026 15:40:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor(wms):=20=E6=B8=85=E7=90=86=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=AE=A1=E7=90=86=E7=BB=84=E4=BB=B6=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BB=A3=E7=A0=81=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除ExceptionManager和AbnormalForm组件中已注释的旧代码 调整AbnormalForm组件字段顺序并添加缺陷描述字段 优化表单数据初始化逻辑 --- .../wms/coil/components/AbnormalForm.vue | 32 ++++------------ .../wms/coil/components/ExceptionManager.vue | 38 ------------------- 2 files changed, 8 insertions(+), 62 deletions(-) diff --git a/klp-ui/src/views/wms/coil/components/AbnormalForm.vue b/klp-ui/src/views/wms/coil/components/AbnormalForm.vue index dbb571a9..0d27262c 100644 --- a/klp-ui/src/views/wms/coil/components/AbnormalForm.vue +++ b/klp-ui/src/views/wms/coil/components/AbnormalForm.vue @@ -3,15 +3,14 @@ + + + - @@ -43,19 +42,17 @@ dict.label }} - + 是否为主缺陷 - - - + @@ -110,24 +107,11 @@ export default { formData: { get() { const data = this.value || {}; - // 接收时将CSV字符串解析成数组 - // if (data.plateSurface && typeof data.plateSurface === 'string') { - // data.plateSurface = data.plateSurface?.split(',') ?? []; - // } - // if (data.position && typeof data.position === 'string') { - // data.position = data.position?.split(',') ?? []; - // } return data; }, set(newVal) { // 发送时将数组转为CSV const data = { ...newVal }; - // if (data.plateSurface && Array.isArray(data.plateSurface)) { - // data.plateSurface = data.plateSurface?.join(',') ?? ''; - // } - // if (data.position && Array.isArray(data.position)) { - // data.position = data.position?.join(',') ?? ''; - // } this.$emit('input', data); } } @@ -148,8 +132,8 @@ export default { this.formData = { abnormalId: undefined, coilId: currentCoilId, - position: [], - plateSurface: [], + position: undefined, + plateSurface: undefined, startPosition: undefined, endPosition: undefined, length: undefined, diff --git a/klp-ui/src/views/wms/coil/components/ExceptionManager.vue b/klp-ui/src/views/wms/coil/components/ExceptionManager.vue index 3a611be7..e849d913 100644 --- a/klp-ui/src/views/wms/coil/components/ExceptionManager.vue +++ b/klp-ui/src/views/wms/coil/components/ExceptionManager.vue @@ -91,19 +91,12 @@ { label: '上板面', value: '上' }, { label: '下板面', value: '下' }]" type="checkbox"> - @@ -144,39 +137,8 @@ - - - -