|
@@ -293,7 +293,7 @@ function body(props) {
|
293
|
293
|
e.preventDefault();
|
294
|
294
|
props.form.validateFields((err, values) => {
|
295
|
295
|
if (!err) {
|
296
|
|
- getList({ pageNum: 1, pageSize: 10, customerType, ...values })
|
|
296
|
+ getList({ pageNum: 1, pageSize: 10, status: customerType, ...values, helpActivityId })
|
297
|
297
|
}
|
298
|
298
|
});
|
299
|
299
|
}
|
|
@@ -324,7 +324,7 @@ function body(props) {
|
324
|
324
|
|
325
|
325
|
function handleReset() {
|
326
|
326
|
props.form.resetFields();
|
327
|
|
- getList({ pageNumber: 1, pageSize: 10, customerType })
|
|
327
|
+ getList({ pageNum: 1, pageSize: 10, status: customerType, helpActivityId })
|
328
|
328
|
}
|
329
|
329
|
|
330
|
330
|
function toCustomerDateil(record) {
|
|
@@ -338,8 +338,7 @@ function body(props) {
|
338
|
338
|
|
339
|
339
|
function exportCustomer () {
|
340
|
340
|
const fieldsValue = getFieldsValue()
|
341
|
|
- const code = customerType === 'helpSucceed' ? 1 : 0
|
342
|
|
- request({ ...apis.helpActivity.HelpInitiateRecordSucceed, responseType: 'blob', params: { ...fieldsValue, customerType, helpActivityId, code } })
|
|
341
|
+ request({ ...apis.helpActivity.HelpInitiateRecordSucceed, responseType: 'blob', params: { ...fieldsValue, customerType, helpActivityId, condition: customerType } })
|
343
|
342
|
.then(response => {
|
344
|
343
|
download(response)
|
345
|
344
|
}).catch(error => {
|
|
@@ -373,13 +372,19 @@ function helpRecord(row) {
|
373
|
372
|
// 核销
|
374
|
373
|
setVerifierData({ visible: true, helpId: row.helpRecordInitiateId, helpActivityId: row.helpActivityId, elpRecordInitiateId: '', verificationCode: '' })
|
375
|
374
|
}
|
376
|
|
-
|
|
375
|
+ // 核销回调
|
377
|
376
|
function onSuccess(e) {
|
378
|
377
|
console.log('回调:', e)
|
379
|
378
|
getList(e)
|
380
|
379
|
// 核销
|
381
|
380
|
setVerifierData({ visible: false, helpId: '', helpActivityId: '', elpRecordInitiateId: '', verificationCode: '' })
|
382
|
381
|
}
|
|
382
|
+ // 返回到首页
|
|
383
|
+ function returList(params) {
|
|
384
|
+ router.push({
|
|
385
|
+ pathname: '/activity/helpActivity/list',
|
|
386
|
+ });
|
|
387
|
+}
|
383
|
388
|
|
384
|
389
|
const publicColumns = [
|
385
|
390
|
{
|
|
@@ -494,7 +499,7 @@ function helpRecord(row) {
|
494
|
499
|
<Button style={{ marginLeft: 8 }} onClick={handleReset}>
|
495
|
500
|
重置
|
496
|
501
|
</Button>
|
497
|
|
- <Button style={{ marginLeft: 8 }} onClick={handleReset}>
|
|
502
|
+ <Button style={{ marginLeft: 8 }} onClick={returList}>
|
498
|
503
|
返回
|
499
|
504
|
</Button>
|
500
|
505
|
</Form.Item>
|