index.ts
1.61 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
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('repair.history.orderCode'),
dataIndex: 'tkRepairOrderDTO',
// format: (text,record) => {
// return record.orderCode;
// },
},
{
title: t('repair.history.orderText'),
dataIndex: 'tkRepairOrderDTO',
// format: (text,record) => {
// return record.orderCode;
// },
},
{
title: t('repair.history.deviceNameText'),
dataIndex: 'reportDate',
},
{
title: t('repair.history.time'),
dataIndex: 'time',
},
{
title: t('repair.history.reportByName'),
dataIndex: 'reportByName',
},
{
title: t('repair.history.photo'),
dataIndex: 'photo',
},
{
title: t('repair.history.description'),
dataIndex: 'description',
},
{
title: t('repair.history.repairTime'),
dataIndex: 'repairTime',
slots: { customRender: 'repairTime' },
},
{
title: t('repair.history.repairByName'),
dataIndex: 'repairByName',
slots: { customRender: 'repairByName' },
},
{
title: t('repair.history.repairReason'),
dataIndex: 'repairReason',
slots: { customRender: 'repairReason' },
},
{
title: t('repair.history.repairDescription'),
dataIndex: 'repairDescription',
slots: { customRender: 'repairDescription' },
},
];
export const searchFormSchema: FormSchema[] = [
{
field: 'orderId',
label: t('repair.history.orderText'),
component: 'Select',
colProps: { span: 6 },
},
];