|
@@ -160,24 +160,18 @@ class Verifier extends React.Component {
|
160
|
160
|
}
|
161
|
161
|
|
162
|
162
|
// 弹框确定按钮
|
163
|
|
- // eslint-disable-next-line react/sort-comp
|
164
|
163
|
handleOk () {
|
165
|
|
- // this.setState({ visibleData: { visible: false, customerId: '', realtyConsultant: '' } })
|
166
|
164
|
}
|
167
|
165
|
|
168
|
166
|
// 弹框取消按钮
|
169
|
167
|
handleCancel () {
|
170
|
|
- // this.setState({ visibleData: { visible: false, customerId: '', realtyConsultant: '' } })
|
171
|
|
- // this.props.onCancel();
|
172
|
168
|
this.props.onSuccess({groupActivityId: this.props.visibleData.groupActivityId, groupStatus: 0});
|
173
|
169
|
}
|
174
|
170
|
|
175
|
171
|
getVerCodeList (params) {
|
176
|
172
|
request({ ...apis.groupActivity.verification, params: { ...params } }).then(res => {
|
177
|
|
- // eslint-disable-next-line no-undef
|
178
|
173
|
message.info('核销成功')
|
179
|
174
|
}).catch(err => {
|
180
|
|
- // eslint-disable-next-line no-unused-expressions
|
181
|
175
|
<Alert
|
182
|
176
|
style={{
|
183
|
177
|
marginBottom: 24,
|
|
@@ -189,18 +183,18 @@ class Verifier extends React.Component {
|
189
|
183
|
})
|
190
|
184
|
}
|
191
|
185
|
|
192
|
|
- // eslint-disable-next-line class-methods-use-this
|
193
|
186
|
verify(e) {
|
194
|
187
|
this.setState({ visibleData: { visible: true, groupActivityId: this.props.visibleData.groupActivityId, verificationCode: e.target.value } })
|
195
|
188
|
}
|
196
|
189
|
|
197
|
190
|
// eslint-disable-next-line class-methods-use-this
|
198
|
|
- verification(e) {
|
|
191
|
+ verification(e, groupActivityId) {
|
199
|
192
|
this.getVerCodeList({ groupActivityId: this.state.visibleData.groupActivityId, verifyCode: this.state.visibleData.verificationCode })
|
200
|
|
- this.props.onSuccess({groupActivityId: this.props.visibleData.groupActivityId, groupStatus: 0});
|
|
193
|
+ this.props.onSuccess({groupActivityId: this.state.visibleData.groupActivityId, groupStatus: 0});
|
201
|
194
|
}
|
202
|
195
|
|
203
|
196
|
render () {
|
|
197
|
+ console.log(this.props,"33334")
|
204
|
198
|
return (
|
205
|
199
|
<>
|
206
|
200
|
<Modal
|
|
@@ -279,6 +273,7 @@ function body(props) {
|
279
|
273
|
console.log(params);
|
280
|
274
|
// 网路请求
|
281
|
275
|
request({ ...apis.groupActivity.shareSuccList, params: { ...params } }).then(res => {
|
|
276
|
+ console.log("process");
|
282
|
277
|
setDataSource(res)
|
283
|
278
|
}).catch(err => {
|
284
|
279
|
// eslint-disable-next-line no-unused-expressions
|
|
@@ -294,7 +289,7 @@ function body(props) {
|
294
|
289
|
}
|
295
|
290
|
|
296
|
291
|
function displayNone() {
|
297
|
|
- setGVisibleData({ visible: false, customerId: '', realtyConsultant: '' })
|
|
292
|
+ setGVisibleData({ visible: false})
|
298
|
293
|
}
|
299
|
294
|
|
300
|
295
|
// 提交事件
|
|
@@ -305,7 +300,7 @@ function body(props) {
|
305
|
300
|
e.preventDefault();
|
306
|
301
|
props.form.validateFields((err, values) => {
|
307
|
302
|
if (!err) {
|
308
|
|
- getList({ pageNum: 1, pageSize: 10, groupStatus, ...values })
|
|
303
|
+ getList({ pageNum: 1, pageSize: 10, groupStatus, ...values, groupActivityId })
|
309
|
304
|
}
|
310
|
305
|
});
|
311
|
306
|
}
|
|
@@ -338,7 +333,7 @@ function body(props) {
|
338
|
333
|
|
339
|
334
|
function handleReset() {
|
340
|
335
|
props.form.resetFields();
|
341
|
|
- getList({ pageNumber: 1, pageSize: 10, groupStatus })
|
|
336
|
+ getList({ pageNumber: 1, pageSize: 10, groupStatus, groupActivityId:groupActivityId })
|
342
|
337
|
}
|
343
|
338
|
|
344
|
339
|
function toCustomerDateil(record) {
|
|
@@ -380,17 +375,15 @@ function helpRecord(row) {
|
380
|
375
|
// eslint-disable-next-line max-len
|
381
|
376
|
setGInviteData({ visible: true, groupActivityId: row.groupActivityId, groupStatus: row.status, recordId: row.recordId})
|
382
|
377
|
}
|
383
|
|
- // 核销
|
|
378
|
+ // 打开核销
|
384
|
379
|
function shareRecordVerify(row) {
|
385
|
|
-// 关闭助力记录弹框
|
386
|
|
-// eslint-disable-next-line max-len
|
387
|
380
|
setVerifierData({ visible: true, groupActivityId: row.groupActivityId, groupStatus: 0})
|
388
|
|
- // eslint-disable-next-line max-len
|
389
|
381
|
setGInviteData({ visible: false, groupActivityId: row.groupActivityId})
|
390
|
382
|
}
|
391
|
383
|
|
392
|
384
|
function onSuccess(e) {
|
393
|
|
- setVerifierData({ visible: false, groupActivityId: '', groupStatus: 0})
|
|
385
|
+ console.log("eeeeeeee", e);
|
|
386
|
+ setVerifierData({ visible: false, groupActivityId: e.groupActivityId, groupStatus: 0})
|
394
|
387
|
getList({ pageNumber: 1, pageSize: 10, ...e});
|
395
|
388
|
}
|
396
|
389
|
|
|
@@ -429,7 +422,7 @@ function helpRecord(row) {
|
429
|
422
|
key: 'helpCount',
|
430
|
423
|
align: 'center',
|
431
|
424
|
width: '15%',
|
432
|
|
- render: (text, record) => <a style={ { color: '#66B3FF' } } onClick={() => helpRecord(record)}>{record.joinPeople}/{record.groupBuyPeople}</a>,
|
|
425
|
+ render: (text, record) => <a style={ { color: '#66B3FF' } } onClick={() => helpRecord(record)}>{record.joinPeople === null ? 0 : record.joinPeople}/{record.groupBuyPeople}</a>,
|
433
|
426
|
},
|
434
|
427
|
]
|
435
|
428
|
|