1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import Form from './WaybillForm';
import Panel from './WaybillPanel';
import { transformOperation, transformStatus } from '../transforms';
import { ServiceParams } from '../../lib/ServiceContext';
import { Waybill } from '../types';
const service: ServiceParams<Waybill> = {
route: 'waybills',
name: 'Накладные',
nameSingular: 'Накладная',
tableFields: [
{ key: 'status', label: 'Статус', transform: transformStatus },
{ key: 'operation', label: 'Операция', transform: transformOperation },
{ key: 'total', label: 'Сумма' },
{ key: 'contractor.name', label: 'Контрагент' },
],
filters: ['status', 'operation', 'contractor.name'],
default: {
operation: 'in',
records: [],
},
Form,
Panel,
};
export default service;
|