| | |
| | | prop: 'standardNo', |
| | | dataType: 'slot', |
| | | slot: 'standardNoCell', |
| | | minWidth: 160, |
| | | width: 120, |
| | | align: 'center', |
| | | headerSlot: 'standardNoHeader' |
| | | }, |
| | | { |
| | | label: '标准名称', |
| | | prop: 'standardName', |
| | | minWidth: 180, |
| | | width: 120, |
| | | align: 'center', |
| | | headerSlot: 'standardNameHeader' |
| | | }, |
| | |
| | | label: '类别', |
| | | prop: 'inspectType', |
| | | headerSlot: 'inspectTypeHeader', |
| | | width: 120, |
| | | align: 'center', |
| | | dataType: 'tag', |
| | | formatData: (val) => { |
| | |
| | | return map[val] || val |
| | | } |
| | | }, |
| | | { |
| | | label: '工序', |
| | | prop: 'processId', |
| | | align: 'center', |
| | | dataType: 'tag', |
| | | formatData: (val) => { |
| | | const target = processOptions.value.find( |
| | | (item) => String(item.value) === String(val) |
| | | ) |
| | | return target?.label || val |
| | | } |
| | | }, |
| | | // { |
| | | // label: '工序', |
| | | // prop: 'processId', |
| | | // align: 'center', |
| | | // dataType: 'tag', |
| | | // formatData: (val) => { |
| | | // const target = processOptions.value.find( |
| | | // (item) => String(item.value) === String(val) |
| | | // ) |
| | | // return target?.label || val |
| | | // } |
| | | // }, |
| | | { |
| | | label: '状态', |
| | | prop: 'state', |
| | | width: 120, |
| | | headerSlot: 'stateHeader', |
| | | align: 'center', |
| | | dataType: 'tag', |