| | |
| | | export const columns: VxeGridProps['columns'] = [ |
| | | { type: 'checkbox', width: 60, fixed: 'left' }, |
| | | { |
| | | title: '设备(工具)名称', |
| | | sortable: true, |
| | | minWidth: 150, |
| | | fixed: 'left', |
| | | slots: { |
| | | default: ({ row }) => { |
| | | if (row.reqType === REPAIR_REQ_TYPE.EQU) { |
| | | return row.equName; |
| | | } else if (row.reqType === REPAIR_REQ_TYPE.FIXTURE) { |
| | | return row.fixtureName; |
| | | } else { |
| | | return ''; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | title: '报修单号', |
| | | field: 'code', |
| | | minWidth: 160, |
| | |
| | | minWidth: 200 |
| | | }, |
| | | { |
| | | title: '设备(工具)名称', |
| | | title: '发生时间', |
| | | field: 'occTime', |
| | | sortable: true, |
| | | minWidth: 150, |
| | | slots: { |
| | | default: ({ row }) => { |
| | | if (row.reqType === REPAIR_REQ_TYPE.EQU) { |
| | | return row.equName; |
| | | } else if (row.reqType === REPAIR_REQ_TYPE.FIXTURE) { |
| | | return row.fixtureName; |
| | | } else { |
| | | return ''; |
| | | } |
| | | } |
| | | } |
| | | minWidth: 200 |
| | | }, |
| | | { |
| | | title: '故障类别', |
| | |
| | | minWidth: 100, |
| | | slots: { |
| | | default: ({ row }) => { |
| | | if(!row.faultType){ |
| | | return '' |
| | | } |
| | | return renderDict(row.faultType, DictEnum.REPAIR_FAULT_TYPE); |
| | | } |
| | | } |
| | |
| | | getPopupContainer, |
| | | options: getDictOptions(DictEnum.REPAIR_REQ_STATUS) |
| | | }, |
| | | dependencies: { |
| | | show: () => false, |
| | | triggerFields: [''] |
| | | }, |
| | | fieldName: 'status', |
| | | defaultValue: '0', |
| | | label: '处理状态' |