import Form from './WaybillForm'; import Panel from './WaybillPanel'; import { waybillStatusNames, operationNames } from '../constants'; const service = { route: 'waybills', name: 'Накладные', nameSingular: 'Накладная', tableFields: [ { key: 'status', label: 'Статус', transform: (status: 'waiting' | 'executed' | 'cancelled') => waybillStatusNames[status], }, { key: 'operation', label: 'Операция', transform: (op: 'in' | 'out') => operationNames[op] }, { key: 'total', label: 'Сумма' }, { key: 'contractor.name', label: 'Контрагент' }, ], default: { operation: 'in', records: [], }, Form, Panel, }; export default service;