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 }}
+
+
+ 列设置
+
+
+
@@ -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;