|
@@ -72,11 +72,6 @@ function header(props) {
|
72
|
72
|
getList({ pageNum: pageNumber, pageSize: 10, orderType: 'refund', ...submitValue })
|
73
|
73
|
}
|
74
|
74
|
const look = (list) => {
|
75
|
|
- // setSwiperList([
|
76
|
|
- // 'https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1591688474&di=85bb9a6a9736e51c63a7bac09601f1e7&src=http://a3.att.hudong.com/14/75/01300000164186121366756803686.jpg',
|
77
|
|
- // 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591698586868&di=f528c96c3004268843a070c342b905fa&imgtype=0&src=http%3A%2F%2Fa2.att.hudong.com%2F36%2F48%2F19300001357258133412489354717.jpg',
|
78
|
|
- // 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591698586867&di=7865b3f07e4b6b050642a042fa30f07e&imgtype=0&src=http%3A%2F%2Fa0.att.hudong.com%2F64%2F76%2F20300001349415131407760417677.jpg'
|
79
|
|
- // ])
|
80
|
75
|
setSwiperList(list)
|
81
|
76
|
}
|
82
|
77
|
/**
|
|
@@ -208,12 +203,16 @@ function header(props) {
|
208
|
203
|
}
|
209
|
204
|
|
210
|
205
|
const toDeatil = () => {
|
211
|
|
- router.push({
|
212
|
|
- pathname: '/fundManagement/AccountDetail',
|
213
|
|
- query: {
|
214
|
|
- id: row.orgId,
|
215
|
|
- },
|
216
|
|
- });
|
|
206
|
+ if (orgId) {
|
|
207
|
+ props.onToDetail()
|
|
208
|
+ } else {
|
|
209
|
+ router.push({
|
|
210
|
+ pathname: '/fundManagement/AccountDetail',
|
|
211
|
+ query: {
|
|
212
|
+ orgId: row.orgId,
|
|
213
|
+ },
|
|
214
|
+ });
|
|
215
|
+ }
|
217
|
216
|
}
|
218
|
217
|
const bohui = () => {
|
219
|
218
|
setRefundVisible(false)
|
|
@@ -225,18 +224,6 @@ function header(props) {
|
225
|
224
|
getList({ pageNum: 1, pageSize: 10, orderType: 'refund' });
|
226
|
225
|
|
227
|
226
|
setRefundVisible(false)
|
228
|
|
- // request({
|
229
|
|
- // ...apis.fund.refund, urlData: { id: row.orderId }, data: {
|
230
|
|
- // orgId: row.orgId,
|
231
|
|
- // amount: row.amount,
|
232
|
|
- // }
|
233
|
|
- // }).then(data => {
|
234
|
|
- // console.log(data)
|
235
|
|
- // getList({ pageNum: 1, pageSize: 10, orderType: 'refund' });
|
236
|
|
-
|
237
|
|
- // })
|
238
|
|
-
|
239
|
|
- // setRefundVisible(false)
|
240
|
227
|
}
|
241
|
228
|
// 导出
|
242
|
229
|
const exportList = () => {
|
|
@@ -264,7 +251,7 @@ function header(props) {
|
264
|
251
|
}
|
265
|
252
|
|
266
|
253
|
const { getFieldDecorator } = props.form
|
267
|
|
- const list = []
|
|
254
|
+ const lastColumns = props.organize == 'hidden' ? columns.filter(x => x.title != '退款组织') : columns
|
268
|
255
|
return (
|
269
|
256
|
|
270
|
257
|
<>
|
|
@@ -282,19 +269,13 @@ function header(props) {
|
282
|
269
|
<span style={{ color: 'red' }}>*</span><Input value={inputValue} onChange={e => setValue(e.target.value)} style={{ marginLeft: '10px', width: '80%' }} placeholder="请输入驳回原因" />
|
283
|
270
|
</div>
|
284
|
271
|
</Modal>
|
285
|
|
- {/* onClick={() => orderRefund()} */}
|
286
|
272
|
<Modal
|
287
|
273
|
visible={refundVisible}
|
288
|
274
|
title="退款审核"
|
289
|
275
|
onOk={() => orderRefund()}
|
290
|
276
|
onCancel={() => handleCancel()}
|
291
|
277
|
footer={[
|
292
|
|
- // <Button key="back" size="large">
|
293
|
|
- <Refund key="back" size="large" orgId={row.orgId} accountId={row.accountId} amount={row.amount || '0'} onClick={orderRefund} orderId={row.orderId} />,
|
294
|
|
- // {/* </Button>, */}
|
295
|
|
- // <span style={{ color: '#FF925C', cursor: 'pointer', display: 'inline-block' }} >
|
296
|
|
-
|
297
|
|
- // </span>
|
|
278
|
+ <Refund key="back" size="large" orgId={row.orgId} accountId={row.accountId} amount={row.amount || '0'} onClick={() => orderRefund()} orderId={row.orderId} />,
|
298
|
279
|
<Button key="submit" type="primary" size="large" onClick={() => bohui()}>驳回</Button>,
|
299
|
280
|
]}
|
300
|
281
|
><div>
|
|
@@ -318,14 +299,18 @@ function header(props) {
|
318
|
299
|
/>,
|
319
|
300
|
)}
|
320
|
301
|
</Form.Item>
|
321
|
|
- <Form.Item>
|
322
|
|
- {getFieldDecorator('miniAppName')(
|
323
|
|
- <Input
|
324
|
|
- prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
|
325
|
|
- placeholder="退款组织"
|
326
|
|
- />,
|
327
|
|
- )}
|
328
|
|
- </Form.Item>
|
|
302
|
+ {
|
|
303
|
+ props.organize != 'hidden' &&
|
|
304
|
+ <Form.Item>
|
|
305
|
+ {getFieldDecorator('miniAppName')(
|
|
306
|
+ <Input
|
|
307
|
+ prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
|
|
308
|
+ placeholder="退款组织"
|
|
309
|
+ />,
|
|
310
|
+ )}
|
|
311
|
+ </Form.Item>
|
|
312
|
+ }
|
|
313
|
+
|
329
|
314
|
<Form.Item>
|
330
|
315
|
{getFieldDecorator('auditStatus')(
|
331
|
316
|
<Select style={{ width: '180px' }} placeholder="退款状态">
|
|
@@ -354,7 +339,7 @@ function header(props) {
|
354
|
339
|
<div>
|
355
|
340
|
<Button type="danger" style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} onClick={() => exportList()} >导出</Button>
|
356
|
341
|
</div>
|
357
|
|
- <Table rowKey={r => r.tradeNo} dataSource={data.records} columns={columns} pagination={false} />
|
|
342
|
+ <Table rowKey={r => r.tradeNo} dataSource={data.records} columns={lastColumns} pagination={false} />
|
358
|
343
|
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
|
359
|
344
|
<Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />
|
360
|
345
|
</div>
|