|
@@ -47,7 +47,7 @@ function header(props) {
|
47
|
47
|
submitValue.startDate = null
|
48
|
48
|
submitValue.endDate = null
|
49
|
49
|
}
|
50
|
|
- getList({ pageNum: 1, pageSize: 10, orderType: 'redPacket', ...submitValue })
|
|
50
|
+ getList({ pageNum: 1, pageSize: 10, orderType: 'RedPacket', ...submitValue })
|
51
|
51
|
}
|
52
|
52
|
});
|
53
|
53
|
}
|
|
@@ -62,7 +62,7 @@ function header(props) {
|
62
|
62
|
submitValue.startDate = null
|
63
|
63
|
submitValue.endDate = null
|
64
|
64
|
}
|
65
|
|
- getList({ pageNum: pageNumber, pageSize: 10, orderType: 'redPacket', ...submitValue })
|
|
65
|
+ getList({ pageNum: pageNumber, pageSize: 10, orderType: 'RedPacket', ...submitValue })
|
66
|
66
|
}
|
67
|
67
|
|
68
|
68
|
/**
|
|
@@ -123,7 +123,7 @@ function header(props) {
|
123
|
123
|
dataIndex: 'tradingStatus',
|
124
|
124
|
key: 'tradingStatus',
|
125
|
125
|
align: 'center',
|
126
|
|
- render: (x, row) => <><span>{row.tradingStatus == '1' ? '成功' : '失败'}</span></>
|
|
126
|
+ render: (x, row) => <><span>{row.tradingStatus == 'success' ? '成功' : '失败'}</span></>
|
127
|
127
|
},
|
128
|
128
|
|
129
|
129
|
];
|
|
@@ -136,7 +136,7 @@ function header(props) {
|
136
|
136
|
|
137
|
137
|
function handleReset() {
|
138
|
138
|
props.form.resetFields();
|
139
|
|
- getList({ pageNum: 1, pageSize: 10, orderType: 'redPacket' })
|
|
139
|
+ getList({ pageNum: 1, pageSize: 10, orderType: 'RedPacket' })
|
140
|
140
|
}
|
141
|
141
|
// 导出
|
142
|
142
|
const exportList = () => {
|
|
@@ -149,7 +149,7 @@ function header(props) {
|
149
|
149
|
submitValue.startDate = null
|
150
|
150
|
submitValue.endDate = null
|
151
|
151
|
}
|
152
|
|
- request({ ...apis.fund.consumeOrderExport, params: { orderType: 'redPacket', orgId, ...submitValue } }).then(data => {
|
|
152
|
+ request({ ...apis.fund.consumeOrderExport, params: { orderType: 'RedPacket', orgId, ...submitValue } }).then(data => {
|
153
|
153
|
if (!data) {
|
154
|
154
|
return
|
155
|
155
|
}
|
|
@@ -207,7 +207,7 @@ function header(props) {
|
207
|
207
|
{getFieldDecorator('itemType')(
|
208
|
208
|
<Select style={{ width: '180px' }} placeholder="消费方式">
|
209
|
209
|
<Select.Option value="">全部</Select.Option>
|
210
|
|
- <Select.Option value="redPacket">红包</Select.Option>
|
|
210
|
+ <Select.Option value="RedPacket">红包</Select.Option>
|
211
|
211
|
</Select>,
|
212
|
212
|
)}
|
213
|
213
|
</Form.Item>
|
|
@@ -215,8 +215,8 @@ function header(props) {
|
215
|
215
|
{getFieldDecorator('tradingStatus')(
|
216
|
216
|
<Select style={{ width: '180px' }} placeholder="消费状态">
|
217
|
217
|
<Select.Option value="">全部</Select.Option>
|
218
|
|
- <Select.Option value="1">成功</Select.Option>
|
219
|
|
- <Select.Option value="2">失败</Select.Option>
|
|
218
|
+ <Select.Option value="success">成功</Select.Option>
|
|
219
|
+ <Select.Option value="fail">失败</Select.Option>
|
220
|
220
|
</Select>,
|
221
|
221
|
)}
|
222
|
222
|
</Form.Item>
|