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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
| import { buildProTableDataSource } from '@/utils/antdUtils';
| import { PageContainer, ProTable } from '@ant-design/pro-components';
| import { Button, Space } from 'antd';
| import { useRef } from 'react';
| import { Access, useAccess, history } from 'umi';
| import moment from 'moment';
| import { getList } from './service';
|
| const Account = () => {
| const actionRef = useRef();
| const access = useAccess();
| const formRef = useRef();
|
| const columns = [
| {
| title: '述求号',
| dataIndex: 'reportUserName',
| order: 8,
| },
| {
| title: '录入人',
| dataIndex: 'reportUserName',
| order: 7,
| },
| {
| title: '录入联系方式',
| dataIndex: 'reportUserPhone',
| order: 6,
| },
| {
| title: '申请人',
| dataIndex: 'name',
| order: 5,
| },
| {
| title: '申请时间',
| dataIndex: 'name',
| hideInTable: true,
| valueType: 'dateRange',
| order: 3,
| },
| {
| title: '审批时间',
| dataIndex: 'name',
| valueType: 'dateRange',
| order: 2,
| },
| {
| title: '审批人',
| dataIndex: 'name',
| order: 4,
| },
| {
| title: '驳回理由',
| dataIndex: 'contactNumber',
| hideInSearch: true,
| },
| {
| title: '状态',
| dataIndex: 'status',
| order: 1,
| valueEnum: {
| 0: '正在办理',
| 1: '延期办理',
| 2: '超时办理',
| 3: '已办结',
| 4: '上报待审核',
| },
| render: (text, record) => {
| return Number(record.status) == 0 ? '正在办理' : record.status == 1 ? '延期办理' : record.status == 2 ? '超时办理' : record.status == 3 ? '已办结' : record.status == 4 ? '上报待审核' : '已办结';
| }
| },
| {
| title: '操作',
| hideInSearch: true,
| render: (text, record) => {
| return (
| <Space>
| {
| <Access accessible={access['/complaint/detail']}>
| <Button
| type="link"
| onClick={() => {
| history.push('/appeal-management/detail?id=' + record.id)
| }}
| >
| 查看详情
| </Button>
| </Access>
| }
| </Space>
| );
| },
| },
| ];
| return (
| <div>
| <PageContainer header={{
| breadcrumb: {},
| }}
| title={'问题驳回统计'}
| >
| <ProTable
| rowKey="id"
| actionRef={actionRef}
| columns={columns}
| formRef={formRef}
| request={async (params) => {
|
| if (params.time && params.time.length > 0) {
| params.startTime = moment(params.time[0]).format('YYYY-MM-DD HH:mm:ss');
| params.endTime = moment(params.time[1]).format('YYYY-MM-DD 23:59:59');
| delete params.time
| } else {
| delete params.startTime
| delete params.endTime
| }
|
|
| return buildProTableDataSource(getList, params);
| }}
| search={{ labelWidth: 'auto', defaultCollapsed: false }}
| />
| </PageContainer>
| </div>
| );
| };
|
| export default Account;
|
|