From 0d458be6dadad2c9b5e9cbb70eea035ab6634dbc Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 29 May 2026 09:43:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A6=85=E9=81=93400/411?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogbw_check_table.vue | 98 ++++++++++++++++++++----- 1 file changed, 80 insertions(+), 18 deletions(-) diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index 3b411156..f4503047 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -22,8 +22,8 @@ 检验 批量操作 -
-
+
+
{{ test_file_name }} + + +
+
+ {{ col.label }} +
+
+
@@ -43,14 +61,14 @@ 序号 - 物料批次 - 物料编号 - 生产设备 - 扭转日期 - 工装 - {{ item.testitem_name }} - {{ item.defect_name }} - 备注 + 物料批次 + 物料编号 + 生产设备 + 扭转日期 + 工装 + {{ item.testitem_name }} + {{ item.defect_name }} + 备注 操作 @@ -62,16 +80,16 @@ {{ index + 1 }} - + {{ row.mlogb__batch }} - + {{ row.number }} ——{{ row.wpr_number_out }} - + {{ row.equip_name }}{{ row.equip_number }} - +
{{ row.work_start_time}}
- + {{ getToolingName(row.wpr_pre_info?.tooling) || row.tooling_name }} - + {{ row[item.testitem_name] }} @@ -110,10 +128,10 @@ - + - + {{ row.note }} @@ -407,6 +425,8 @@ export default { selectedAll:false, checkAll: false, hideAdd: false, + hiddenColumns: [], + columnSettingVisible: false, visible: false, isSaveing:false, setVisible:false, @@ -455,6 +475,29 @@ export default { }; }, watch: {}, + computed: { + allColumnOptions() { + const cols = [ + { key: 'batch', label: '物料批次' }, + { key: 'number', label: '物料编号' }, + ]; + if (this.route_code === 'niuzhuan') { + cols.push({ key: 'equip', label: '生产设备' }); + cols.push({ key: 'time', label: '扭转日期' }); + } + if (this.mgroupName === '喷码') { + cols.push({ key: 'tooling', label: '工装' }); + } + this.qct_testitems.forEach(item => { + cols.push({ key: 'testitem_' + item.id, label: item.testitem_name }); + }); + this.qct_defects.forEach(item => { + cols.push({ key: 'defect_' + item.id, label: item.defect_name }); + }); + cols.push({ key: 'note', label: '备注' }); + return cols; + }, + }, mounted() { let that = this; if(that.test_file!==''&&that.test_file!==null){ @@ -515,6 +558,17 @@ export default { } }, methods: { + isColVisible(key) { + return !this.hiddenColumns.includes(key); + }, + toggleColumn(key) { + const idx = this.hiddenColumns.indexOf(key); + if (idx > -1) { + this.hiddenColumns.splice(idx, 1); + } else { + this.hiddenColumns.push(key); + } + }, refreshfun(){ this.getList(); }, @@ -1417,6 +1471,14 @@ tbody tr:nth-child(odd) .sticky-cell{ .more-menu-btn:hover{ background: #fef0f0; } +.col-setting-panel{ + max-height: 300px; + overflow-y: auto; +} +.col-setting-item{ + padding: 4px 0; + line-height: 1.6; +} .btn{ margin:0 5px; border: none;