From 9e9b0e9bac9a6f3bd74bcaf345381c8bd2b90085 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 11 Nov 2025 12:53:28 +0800 Subject: [PATCH] =?UTF-8?q?2025-11-11=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/qc/qcPartAttribute.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/modules/qc/qcPartAttribute.vue b/src/views/modules/qc/qcPartAttribute.vue index 158839f..f57d42b 100644 --- a/src/views/modules/qc/qcPartAttribute.vue +++ b/src/views/modules/qc/qcPartAttribute.vue @@ -21,8 +21,8 @@ - - + + @@ -1266,7 +1266,7 @@ cinvSourceCode: '', sku: '', familyID: '', - familyName: '', + partType: '', buDesc: '', attributeType: 'A', page: 1, @@ -1442,7 +1442,7 @@ serialNumber: '301003Table1FamilyName', tableId: "301003Table1", tableName: "物料属性设置表", - columnProp: 'familyName', + columnProp: 'partType', headerAlign: "center", align: "left", columnLabel: '物料类别', @@ -2473,7 +2473,7 @@ this.$message.warning('请至少选择一项') return } - + this.$confirm(`确认删除选中的 ${this.selectedTemplates.length} 个检验模板吗?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -2483,23 +2483,23 @@ const deletePromises = this.selectedTemplates.map(row => { return deletePartAttributeDetails(row) }) - + // 并发执行所有删除请求 Promise.all(deletePromises).then(results => { // 检查是否所有请求都成功 const allSuccess = results.every(({data}) => data && data.code === 0) - + if (allSuccess) { this.$message.success('批量删除成功') } else { this.$message.warning('部分删除失败,请重试') } - + // 刷新列表 searchPartAttributeDetails(this.detailData).then(({data}) => { this.detailList = data.rows }) - + // 清空选中状态 this.$refs.templateTable.clearSelection() this.selectedTemplates = []