diff --git a/klp-ui/src/modules/dashboardBig/assets/scss/style.scss b/klp-ui/src/modules/dashboardBig/assets/scss/style.scss index 300e99dc..4ad6156a 100644 --- a/klp-ui/src/modules/dashboardBig/assets/scss/style.scss +++ b/klp-ui/src/modules/dashboardBig/assets/scss/style.scss @@ -20,7 +20,7 @@ body { background-color: #f1f1f1; margin: 0; padding: 0; - overflow: hidden; + // overflow: hidden; } a { diff --git a/klp-ui/src/views/mes/qc/book/index.vue b/klp-ui/src/views/mes/qc/book/index.vue index 22d840d4..9a542152 100644 --- a/klp-ui/src/views/mes/qc/book/index.vue +++ b/klp-ui/src/views/mes/qc/book/index.vue @@ -57,28 +57,75 @@ - - - - - - - - - + +
+ + + + + +
+ + 缺陷信息 +
+ +
+ +
+ 主键: + {{ item.defectId }} +
+ + +
+ 缺陷名称: + {{ item.defectName }} +
+ + +
+ 备注: + {{ item.remark || '无' }} +
+
+ + +
+ 修改 + 删除 +
+
+
+
+ + +
+ +
+
{ this.commonDefectList = response.rows; this.total = response.total; + // 重置选中状态 + this.selectedIds = {}; + this.ids = []; + this.updateSelectionStatus(); this.loading = false; }); }, + + /** 处理复选框变化 */ + handleCheckChange(item, checked) { + if (checked) { + // 选中时添加到数组 + this.ids.push(item.defectId); + this.selectedIds[item.defectId] = true; + } else { + // 取消选中时从数组移除 + this.ids = this.ids.filter(id => id !== item.defectId); + this.selectedIds[item.defectId] = false; + } + this.updateSelectionStatus(); + }, + + /** 更新选择状态(单个/多个) */ + updateSelectionStatus() { + this.single = this.ids.length !== 1; + this.multiple = this.ids.length === 0; + }, + // 取消按钮 cancel() { this.open = false; @@ -188,12 +262,6 @@ export default { this.resetForm("queryForm"); this.handleQuery(); }, - // 多选框选中数据 - handleSelectionChange(selection) { - this.ids = selection.map(item => item.defectId) - this.single = selection.length!==1 - this.multiple = !selection.length - }, /** 新增按钮操作 */ handleAdd() { this.reset(); @@ -204,7 +272,7 @@ export default { handleUpdate(row) { this.loading = true; this.reset(); - const defectId = row.defectId || this.ids + const defectId = row.defectId || this.ids[0]; // 取第一个选中项 getCommonDefect(defectId).then(response => { this.loading = false; this.form = response.data; @@ -239,8 +307,8 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const defectIds = row.defectId || this.ids; - this.$modal.confirm('是否确认删除常见缺陷编号为"' + defectIds + '"的数据项?').then(() => { + const defectIds = row ? [row.defectId] : this.ids; + this.$modal.confirm(`是否确认删除选中的${defectIds.length}条常见缺陷数据?`).then(() => { this.loading = true; return delCommonDefect(defectIds); }).then(() => { @@ -261,3 +329,66 @@ export default { } }; + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/coil/panels/LabelRender/index.vue b/klp-ui/src/views/wms/coil/panels/LabelRender/index.vue index ce7f7694..452779ba 100644 --- a/klp-ui/src/views/wms/coil/panels/LabelRender/index.vue +++ b/klp-ui/src/views/wms/coil/panels/LabelRender/index.vue @@ -1,10 +1,7 @@ @@ -105,18 +106,17 @@ export default {