|
|
@@ -84,13 +84,13 @@ export default {
|
|
|
{ title: '物料', name: 'Input', serverName: 'title', placeholder: '请输入物料', value: '' }
|
|
|
],
|
|
|
tableColums: [
|
|
|
- { title: '序号', type: 'index', align: 'center', key: '', fixed: 'left', width: '100' },
|
|
|
- { title: '材料分类名称', align: 'center', key: 'm_title', minWidth: 150 },
|
|
|
- { title: '物料名称', align: 'center', key: 'title', minWidth: 150 },
|
|
|
- { title: '单位', align: 'center', key: 'unit', minWidth: 100 },
|
|
|
- { title: '厚', align: 'center', key: 'high', minWidth: 100 },
|
|
|
- { title: '描述', align: 'center', key: 'remark', minWidth: 200 },
|
|
|
- { title: '操作', align: 'center', slot: 'set', fixed: 'right', width: '150' },
|
|
|
+ { title: '序号', type: 'index', align: 'center', key: '', resizable:true, width: 150 },
|
|
|
+ { title: '材料分类名称', align: 'center', key: 'm_title', resizable:true, width: 250 },
|
|
|
+ { title: '物料名称', align: 'center', key: 'title', resizable:true, width: 250 },
|
|
|
+ { title: '单位', align: 'center', key: 'unit', resizable:true, width: 200 },
|
|
|
+ { title: '厚', align: 'center', key: 'high',resizable:true, width: 200 },
|
|
|
+ { title: '描述', align: 'center', key: 'remark', resizable:true, width: 300 },
|
|
|
+ { title: '操作', align: 'center', slot: 'set', fixed: 'right', minWidth: 150 },
|
|
|
],
|
|
|
tableData: [],
|
|
|
pageIndex: 1,
|
|
|
@@ -119,22 +119,22 @@ export default {
|
|
|
});
|
|
|
if (this.basic_type_id == 4 || this.basic_type_id == 5 || this.basic_type_id == 6) {
|
|
|
this.tableColums = [
|
|
|
- { title: '序号', type: 'index', align: 'center', key: '', fixed: 'left', width: '100' },
|
|
|
- { title: '材料分类名称', align: 'center', key: 'm_title', minWidth: 150 },
|
|
|
- { title: '物料名称', align: 'center', key: 'title', minWidth: 150 },
|
|
|
- { title: '单位', align: 'center', key: 'unit', minWidth: 100 },
|
|
|
- { title: '描述', align: 'center', key: 'remark', minWidth: 200 },
|
|
|
- { title: '操作', align: 'center', slot: 'set', fixed: 'right', width: '150' },
|
|
|
+ { title: '序号', type: 'index', align: 'center', key: '', resizable:true, width: 150 },
|
|
|
+ { title: '材料分类名称', align: 'center', key: 'm_title', resizable:true, width: 250 },
|
|
|
+ { title: '物料名称', align: 'center', key: 'title', resizable:true, width: 250 },
|
|
|
+ { title: '单位', align: 'center', key: 'unit',resizable:true, width: 200 },
|
|
|
+ { title: '描述', align: 'center', key: 'remark',resizable:true, width: 300 },
|
|
|
+ { title: '操作', align: 'center', slot: 'set', fixed: 'right', minWidth: 150 },
|
|
|
]
|
|
|
} else {
|
|
|
this.tableColums = [
|
|
|
- { title: '序号', type: 'index', align: 'center', key: '', fixed: 'left', width: '100' },
|
|
|
- { title: '材料分类名称', align: 'center', key: 'm_title', minWidth: 150 },
|
|
|
- { title: '物料名称', align: 'center', key: 'title', minWidth: 150 },
|
|
|
- { title: '单位', align: 'center', key: 'unit', minWidth: 100 },
|
|
|
- { title: '厚', align: 'center', key: 'high', minWidth: 100 },
|
|
|
- { title: '描述', align: 'center', key: 'remark', minWidth: 200 },
|
|
|
- { title: '操作', align: 'center', slot: 'set', fixed: 'right', width: '150' },
|
|
|
+ { title: '序号', type: 'index', align: 'center', key: '', resizable:true, width: 150 },
|
|
|
+ { title: '材料分类名称', align: 'center', key: 'm_title', resizable:true, width: 250 },
|
|
|
+ { title: '物料名称', align: 'center', key: 'title', resizable:true, width: 250 },
|
|
|
+ { title: '单位', align: 'center', key: 'unit',resizable:true, width: 200 },
|
|
|
+ { title: '厚', align: 'center', key: 'high', resizable:true, width: 200 },
|
|
|
+ { title: '描述', align: 'center', key: 'remark',resizable:true, width: 300 },
|
|
|
+ { title: '操作', align: 'center', slot: 'set', fixed: 'right', minWidth: 150 },
|
|
|
]
|
|
|
}
|
|
|
}
|