| | |
| | | title: '物料名称', |
| | | }, |
| | | { |
| | | field: 'purchaseType', |
| | | field: 'purchaseTypeDesc', |
| | | title: '采购类型', |
| | | formatter: ({ cellValue }) => { |
| | | // You'll need to map the enum values to display text |
| | | const purchaseTypeMap = { |
| | | 0: '类型1', |
| | | 1: '类型2', |
| | | // Add all enum values |
| | | } |
| | | return purchaseTypeMap[cellValue] || cellValue |
| | | }, |
| | | }, |
| | | { |
| | | field: 'materialType', |
| | | field: 'materialTypeDesc', |
| | | title: '物料类型', |
| | | formatter: ({ cellValue }) => { |
| | | // Map material type enum to display text |
| | | const materialTypeMap = { |
| | | 0: '类型A', |
| | | 1: '类型B', |
| | | // Add all enum values |
| | | } |
| | | return materialTypeMap[cellValue] || cellValue |
| | | }, |
| | | }, |
| | | { |
| | | field: 'primaryUnit', |
| | |
| | | title: '长度(m)', |
| | | }, |
| | | { |
| | | field: 'isMainBranch', |
| | | title: '主支管', |
| | | formatter: ({ cellValue }) => (cellValue ? '是' : '否'), |
| | | field: 'isMainBranchDesc', |
| | | title: '是否主支管', |
| | | }, |
| | | { |
| | | field: 'factory', |
| | |
| | | { |
| | | field: 'certification', |
| | | title: '证书编号', |
| | | }, |
| | | { |
| | | field: 'sort', |
| | | title: '排序', |
| | | }, |
| | | { |
| | | field: 'remark', |