diff options
Diffstat (limited to 'src/services.js')
-rw-r--r-- | src/services.js | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/src/services.js b/src/services.js index 7187519..dfb166e 100644 --- a/src/services.js +++ b/src/services.js @@ -68,16 +68,37 @@ const services: ServiceParams[] = [ { key: 'operation', label: 'Операция', transform: op => operationNames[op] }, { key: 'amount', label: 'Сумма' }, ], - actions: [{ - name: 'Загрузить выписку', - route: 'upload', - variant: 'outlined', - }], + actions: [ + { + name: 'Загрузить выписку', + route: '/transfers/upload', + variant: 'outlined', + }, + { + name: 'Добавить', + route: '/transfers/add', + }, + ], default: { operation: 'in', records: [], }, }, + { + route: 'account', + name: 'Рассчётный счёт', + tableFields: [ + { key: 'date', label: 'Дата', transform: date => new Date(date).toLocaleDateString() }, + { key: 'amount', label: 'Сумма' }, + ], + actions: [ + { + name: 'Загрузить выписку', + route: '/transfers/upload', + }, + ], + rowLink: item => `/transfers?date=${item.date}`, + }, ]; export default services; |