From 440e70ee82c1d258dc076eb3a6ae2544bc1ebb3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Thu, 16 Apr 2026 10:18:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BB=84=E4=BB=B6):=20=E4=B8=BA=E5=A4=9A?= =?UTF-8?q?=E9=80=89=E7=BB=84=E4=BB=B6=E6=B7=BB=E5=8A=A0=E5=85=A8=E9=80=89?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=B9=B6=E7=A7=BB=E9=99=A4=E6=9D=BF=E9=9D=A2?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在多选组件中增加全选选项和功能 - 移除异常管理中的板面校验逻辑 - 修复保存按钮加载状态显示问题 --- klp-ui/src/components/MutiSelect/index.vue | 55 +++++++++++-------- .../wms/coil/components/AbnormalForm.vue | 8 +-- .../wms/coil/components/ExceptionManager.vue | 12 ++-- 3 files changed, 43 insertions(+), 32 deletions(-) diff --git a/klp-ui/src/components/MutiSelect/index.vue b/klp-ui/src/components/MutiSelect/index.vue index a06ee71c..4daac80b 100644 --- a/klp-ui/src/components/MutiSelect/index.vue +++ b/klp-ui/src/components/MutiSelect/index.vue @@ -1,25 +1,34 @@ @@ -114,7 +123,9 @@ methods: { // 处理选择变化 handleChange(val) { - this.$emit('change', val.join(',')); + // 过滤掉 'selectAll' 选项 + const filteredVal = val.filter(item => item !== 'selectAll'); + this.$emit('change', filteredVal.join(',')); }, // 处理复选框变化 handleCheckboxChange(val) { diff --git a/klp-ui/src/views/wms/coil/components/AbnormalForm.vue b/klp-ui/src/views/wms/coil/components/AbnormalForm.vue index 0d27262c..3509be1c 100644 --- a/klp-ui/src/views/wms/coil/components/AbnormalForm.vue +++ b/klp-ui/src/views/wms/coil/components/AbnormalForm.vue @@ -82,10 +82,10 @@ export default { { required: true, message: '请选择位置', trigger: 'change' }, { validator: this.validateArray, trigger: 'change' } ], - plateSurface: [ - { required: true, message: '请选择上下板面', trigger: 'change' }, - { validator: this.validateArray, trigger: 'change' } - ], + // plateSurface: [ + // { required: true, message: '请选择上下板面', trigger: 'change' }, + // { validator: this.validateArray, trigger: 'change' } + // ], startPosition: [ { required: true, message: '请输入开始位置', trigger: ['blur', 'change'] }, { validator: this.validateStartPosition, trigger: ['blur', 'change'] } diff --git a/klp-ui/src/views/wms/coil/components/ExceptionManager.vue b/klp-ui/src/views/wms/coil/components/ExceptionManager.vue index e849d913..a78a9f85 100644 --- a/klp-ui/src/views/wms/coil/components/ExceptionManager.vue +++ b/klp-ui/src/views/wms/coil/components/ExceptionManager.vue @@ -56,7 +56,7 @@

异常记录

- 保存 + 保存 刷新 @@ -291,10 +291,10 @@ export default { this.$message.error(`第${rowIndex}行:请选择断面位置`) return } - if (!row.plateSurface || row.plateSurface.length === 0) { - this.$message.error(`第${rowIndex}行:请选择上下板面`) - return - } + // if (!row.plateSurface || row.plateSurface.length === 0) { + // this.$message.error(`第${rowIndex}行:请选择上下板面`) + // return + // } if (!row.defectCode) { this.$message.error(`第${rowIndex}行:请选择缺陷代码`) return @@ -445,7 +445,7 @@ export default { .exception-section { background-color: #fafafa; - border-radius: 4px; + border-radius: 4px; padding: 16px; border: 1px solid #e4e7ed; }