| | |
| | | width: 200 |
| | | } |
| | | ]; |
| | | export const customColumns: VxeGridProps['columns'] = [ |
| | | { type: 'checkbox', width: 60, fixed: 'left' }, |
| | | { |
| | | title: '工具名称', |
| | | field: 'fixtureName', |
| | | minWidth: 100, |
| | | fixed: 'left', |
| | | slots: { default: 'fixtureName' } |
| | | }, |
| | | { |
| | | title: '借用状态', |
| | | field: 'status', |
| | | sortable: true, |
| | | slots: { |
| | | default: ({ row }) => { |
| | | if (row.status === null || row.status === '') { |
| | | return ''; |
| | | } |
| | | return renderDict(row.status, DictEnum.FIXTURE_BORROW_RECORD_STATUS); |
| | | } |
| | | }, |
| | | minWidth: 100, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '借用部门', |
| | | field: 'borrowDeptName', |
| | | minWidth: 120 |
| | | }, |
| | | { |
| | | title: '借用人', |
| | | field: 'borrowUserName', |
| | | minWidth: 100 |
| | | }, |
| | | { |
| | | title: '经办人', |
| | | field: 'agentUserName', |
| | | minWidth: 100 |
| | | }, |
| | | { |
| | | title: '借用时间', |
| | | field: 'borrowTime', |
| | | minWidth: 120 |
| | | }, |
| | | { |
| | | title: '借用原因', |
| | | field: 'borrowReason', |
| | | minWidth: 140 |
| | | }, |
| | | { |
| | | title: '预计归还时间', |
| | | field: 'planReturnTime', |
| | | minWidth: 160 |
| | | }, |
| | | { |
| | | title: '实际归还时间', |
| | | field: 'returnTime', |
| | | minWidth: 160 |
| | | } |
| | | ]; |
| | | |
| | | |
| | | |
| | | export const drawerSchema: FormSchemaGetter = () => [ |
| | | { |