|
@@ -1,3 +1,86 @@
|
|
1
|
+import React, { useState, useEffect } from 'react';
|
|
2
|
+import { Button, Modal, Form, Select } from 'antd';
|
|
3
|
+import { PageHeaderWrapper } from '@ant-design/pro-layout';
|
|
4
|
+import moment from 'moment';
|
|
5
|
+import PageTable from '@/components/PageTable';
|
|
6
|
+import { getAccountLogList } from '@/services/accountLog'
|
|
7
|
+
|
|
8
|
+const formatterTime = (val) => {
|
|
9
|
+ return val ? moment(val).format('YYYY-MM-DD HH:mm:ss') : '';
|
|
10
|
+};
|
|
11
|
+const FormItem = Form.Item;
|
|
12
|
+const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 } };
|
|
13
|
+const { Option } = Select;
|
|
14
|
+
|
1
|
15
|
export default (props) => {
|
2
|
|
- return <div>平台流水</div>;
|
|
16
|
+ const [show, setShow] = useState(false)
|
|
17
|
+ const [evaluation, setEval] = useState()
|
|
18
|
+ const [machineryTypeList, setMachineryTypeList] = useState([]);
|
|
19
|
+ const [cooperativeList, setCooperativeList] = useState([]);
|
|
20
|
+
|
|
21
|
+ const columns = [
|
|
22
|
+ {
|
|
23
|
+ title: '订单号',
|
|
24
|
+ dataIndex: 'orderNo',
|
|
25
|
+ key: 'orderNo',
|
|
26
|
+ },
|
|
27
|
+ {
|
|
28
|
+ title: '下单人',
|
|
29
|
+ dataIndex: 'personName',
|
|
30
|
+ key: 'personName',
|
|
31
|
+ },
|
|
32
|
+ {
|
|
33
|
+ title: '手机号',
|
|
34
|
+ dataIndex: 'phone',
|
|
35
|
+ key: 'phone',
|
|
36
|
+ },
|
|
37
|
+ {
|
|
38
|
+ title: '发生时间',
|
|
39
|
+ dataIndex: 'payDate',
|
|
40
|
+ key: 'payDate',
|
|
41
|
+ search: false,
|
|
42
|
+ render: (t) => formatterTime(t),
|
|
43
|
+ },
|
|
44
|
+ {
|
|
45
|
+ title: '支付方式',
|
|
46
|
+ dataIndex: 'feeType',
|
|
47
|
+ key: 'feeType',
|
|
48
|
+ search: false,
|
|
49
|
+ render: (t) => t == 1 ? '微信' : '支付宝',
|
|
50
|
+ },
|
|
51
|
+ {
|
|
52
|
+ title: '到账时间',
|
|
53
|
+ dataIndex: 'date',
|
|
54
|
+ key: 'date',
|
|
55
|
+ render: (t) => '',
|
|
56
|
+ search: false
|
|
57
|
+ },
|
|
58
|
+ {
|
|
59
|
+ title: '到账方式',
|
|
60
|
+ dataIndex: 'Type',
|
|
61
|
+ key: 'Type',
|
|
62
|
+ search: false,
|
|
63
|
+ render: (t) => '',
|
|
64
|
+ },
|
|
65
|
+ {
|
|
66
|
+ title: '费用',
|
|
67
|
+ dataIndex: 'money',
|
|
68
|
+ key: 'money',
|
|
69
|
+ render: (t) => t / 100,
|
|
70
|
+ search: false
|
|
71
|
+ },
|
|
72
|
+ ];
|
|
73
|
+
|
|
74
|
+ return (
|
|
75
|
+ <PageHeaderWrapper>
|
|
76
|
+ <PageTable
|
|
77
|
+ request={getAccountLogList}
|
|
78
|
+ // expfunc={exportPersonList}
|
|
79
|
+ columns={columns}
|
|
80
|
+ rowKey="logId"
|
|
81
|
+ options={false}
|
|
82
|
+ scroll={{ x: 1500 }}
|
|
83
|
+ />
|
|
84
|
+ </PageHeaderWrapper>
|
|
85
|
+ );
|
3
|
86
|
};
|