import Form from './WaybillForm'; import Panel from './WaybillPanel'; import { transformOperation, transformStatus } from '../transforms'; import { ServiceParams } from '../../containers/Service/ServiceContext'; const service: ServiceParams = { route: 'waybills', name: 'Накладные', nameSingular: 'Накладная', tableFields: [ { key: 'status', label: 'Статус', transform: transformStatus }, { key: 'operation', label: 'Операция', transform: transformOperation }, { key: 'total', label: 'Сумма' }, { key: 'contractor.name', label: 'Контрагент' }, ], default: { operation: 'in', records: [], }, Form, Panel, }; export default service;