index.ts
1.49 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import {FormSchema} from "/@/components/Form";
import {useI18n} from "/@/hooks/web/useI18n";
import {BasicColumn} from "/@/components/Table";
const { t } = useI18n();
export const columns: BasicColumn[] = [
{
title: t('spare.equip.nameCode'),
dataIndex: 'code',
},
{
title: t('spare.equip.nameText'),
dataIndex: 'name',
},
{
title: t('spare.equip.specifications'),
dataIndex: 'name',
},
{
title: t('spare.equip.typeText'),
dataIndex: 'type',
slots: { customRender: 'type' },
},
{
title: t('spare.equip.unitText'),
dataIndex: 'unit',
slots: { customRender: 'unit' },
},
{
title: t('spare.equip.factoryText'),
dataIndex: 'factory',
},
{
title: t('spare.equip.operatorText'),
dataIndex: 'operator',
},
{
title: t('spare.equip.operaDate'),
dataIndex: 'operaDate',
},
];
export const searchFormSchema: FormSchema[] = [
{
field: 'name',
label: t('spare.equip.nameText'),
component: 'Input',
colProps: { span: 6 },
},
{
field: 'code',
label: t('spare.equip.nameCode'),
component: 'Input',
colProps: { span: 6 },
},
{
field: 'type',
label: t('spare.equip.typeText'),
component: 'Select',
colProps: { span: 6 },
},
{
field: 'specifications',
label: t('spare.equip.specifications'),
component: 'Input',
colProps: { span: 6 },
},
{
field: 'factory',
label: t('spare.equip.factoryText'),
component: 'Input',
colProps: { span: 6 },
}
];