|
@@ -78,13 +78,13 @@ function header(props) {
|
78
|
78
|
align: 'center',
|
79
|
79
|
},
|
80
|
80
|
{
|
81
|
|
- title: '消费组织',
|
|
81
|
+ title: '公司',
|
82
|
82
|
dataIndex: 'miniAppName',
|
83
|
83
|
key: 'miniAppName',
|
84
|
84
|
align: 'center',
|
85
|
85
|
},
|
86
|
86
|
{
|
87
|
|
- title: '消费金额',
|
|
87
|
+ title: '金额',
|
88
|
88
|
dataIndex: 'amount',
|
89
|
89
|
key: 'amount',
|
90
|
90
|
align: 'center',
|
|
@@ -97,26 +97,26 @@ function header(props) {
|
97
|
97
|
align: 'center',
|
98
|
98
|
render: (x, row) => <><span>{row.consumeType == 'RedPacket' ? '红包' : ''}</span></>
|
99
|
99
|
},
|
|
100
|
+ // {
|
|
101
|
+ // title: '活动名称',
|
|
102
|
+ // dataIndex: 'activityName',
|
|
103
|
+ // key: 'activityName',
|
|
104
|
+ // align: 'center',
|
|
105
|
+ // },
|
100
|
106
|
{
|
101
|
|
- title: '活动名称',
|
102
|
|
- dataIndex: 'activityName',
|
103
|
|
- key: 'activityName',
|
104
|
|
- align: 'center',
|
105
|
|
- },
|
106
|
|
- {
|
107
|
|
- title: '消费下单时间',
|
|
107
|
+ title: '下单时间',
|
108
|
108
|
dataIndex: 'createDate',
|
109
|
109
|
key: 'createDate',
|
110
|
110
|
align: 'center',
|
111
|
111
|
render: (x, row) => <><span>{`${moment(row.createDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
|
112
|
112
|
},
|
113
|
|
- {
|
114
|
|
- title: '接收人手机号',
|
115
|
|
- dataIndex: 'phone',
|
116
|
|
- key: 'phone',
|
117
|
|
- align: 'center',
|
118
|
|
- render: (x, row) => <><span className={styles.blue} onClick={() => Info(row)}>{row.phone || '13160056114'}</span></>
|
119
|
|
- },
|
|
113
|
+ // {
|
|
114
|
+ // title: '接收人手机号',
|
|
115
|
+ // dataIndex: 'phone',
|
|
116
|
+ // key: 'phone',
|
|
117
|
+ // align: 'center',
|
|
118
|
+ // render: (x, row) => <><span className={styles.blue} onClick={() => Info(row)}>{row.phone || '13160056114'}</span></>
|
|
119
|
+ // },
|
120
|
120
|
{
|
121
|
121
|
title: '消费状态',
|
122
|
122
|
dataIndex: 'tradingStatus',
|
|
@@ -124,6 +124,19 @@ function header(props) {
|
124
|
124
|
align: 'center',
|
125
|
125
|
render: (x, row) => <><span>{row.tradingStatus == 'success' ? '成功' : '失败'}</span></>
|
126
|
126
|
},
|
|
127
|
+ {
|
|
128
|
+ title: '操作',
|
|
129
|
+ dataIndex: 'handle',
|
|
130
|
+ key: 'handle',
|
|
131
|
+ align: 'center',
|
|
132
|
+ render: (x, row) => (
|
|
133
|
+ <>
|
|
134
|
+ <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEdit(row.tradeNo, row.orgId, row.consumeType)}>
|
|
135
|
+ 查看详情
|
|
136
|
+ </span>
|
|
137
|
+ </>
|
|
138
|
+ ),
|
|
139
|
+ },
|
127
|
140
|
|
128
|
141
|
];
|
129
|
142
|
const Info = (row) => {
|
|
@@ -133,6 +146,17 @@ function header(props) {
|
133
|
146
|
})
|
134
|
147
|
}
|
135
|
148
|
|
|
149
|
+ const toEdit = (tradeNo, orgId, consumeType) => () => {
|
|
150
|
+ router.push({
|
|
151
|
+ pathname: '/fundManagement/ConsumeOrderDetail',
|
|
152
|
+ query: {
|
|
153
|
+ tradeNo,
|
|
154
|
+ orgId,
|
|
155
|
+ consumeType
|
|
156
|
+ },
|
|
157
|
+ });
|
|
158
|
+ }
|
|
159
|
+
|
136
|
160
|
function handleReset() {
|
137
|
161
|
props.form.resetFields();
|
138
|
162
|
getList({ pageNum: 1, pageSize: 10, orderType: 'RedPacket' })
|
|
@@ -163,7 +187,7 @@ function header(props) {
|
163
|
187
|
}
|
164
|
188
|
const { getFieldDecorator } = props.form
|
165
|
189
|
|
166
|
|
- const lastColumns = props.organize == 'hidden' ? columns.filter(x => x.title != '消费组织') : columns
|
|
190
|
+ const lastColumns = props.organize == 'hidden' ? columns.filter(x => x.title != '公司') : columns
|
167
|
191
|
return (
|
168
|
192
|
|
169
|
193
|
<>
|
|
@@ -196,13 +220,13 @@ function header(props) {
|
196
|
220
|
{getFieldDecorator('miniAppName')(
|
197
|
221
|
<Input
|
198
|
222
|
prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
|
199
|
|
- placeholder="消费组织"
|
|
223
|
+ placeholder="公司"
|
200
|
224
|
/>,
|
201
|
225
|
)}
|
202
|
226
|
</Form.Item>
|
203
|
227
|
}
|
204
|
228
|
<Form.Item>
|
205
|
|
- <span style={{ marginRight: '10px' }}>消费时间段:</span>
|
|
229
|
+ <span style={{ marginRight: '10px' }}>下单时间段:</span>
|
206
|
230
|
{getFieldDecorator('LocalDate')(
|
207
|
231
|
<RangePicker placeholder={['开始时间', '结束时间']} />
|
208
|
232
|
)}
|