|
@@ -10,6 +10,7 @@ import { fetch, apis } from '../../utils/request';
|
10
|
10
|
import request from '../../utils/request';
|
11
|
11
|
import AuthButton from '@/components/AuthButton';
|
12
|
12
|
import { regFenToYuan } from '@/utils/money';
|
|
13
|
+import Swiper from './components/Swiper';
|
13
|
14
|
|
14
|
15
|
const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
15
|
16
|
|
|
@@ -17,6 +18,7 @@ function header(props) {
|
17
|
18
|
// 获取初始化数据
|
18
|
19
|
const [data, setData] = useState({})
|
19
|
20
|
const [demandIdList, setDemandIdList] = useState([])
|
|
21
|
+ const [swiperList, setSwiperList] = useState([])
|
20
|
22
|
const orgId = props.orgId || ''
|
21
|
23
|
useEffect(() => {
|
22
|
24
|
getList({ pageNum: 1, pageSize: 10, orderType: 'recharge' });
|
|
@@ -62,7 +64,14 @@ function header(props) {
|
62
|
64
|
}
|
63
|
65
|
getList({ pageNum: pageNumber, pageSize: 10, orderType: 'recharge', ...submitValue })
|
64
|
66
|
}
|
65
|
|
-
|
|
67
|
+ const look = (list) => {
|
|
68
|
+ // setSwiperList([
|
|
69
|
+ // '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',
|
|
70
|
+ // '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',
|
|
71
|
+ // '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'
|
|
72
|
+ // ])
|
|
73
|
+ setSwiperList(list)
|
|
74
|
+ }
|
66
|
75
|
/**
|
67
|
76
|
*
|
68
|
77
|
*
|
|
@@ -106,9 +115,21 @@ function header(props) {
|
106
|
115
|
},
|
107
|
116
|
{
|
108
|
117
|
title: '充值凭证',
|
109
|
|
- dataIndex: 'orgName',
|
110
|
|
- key: 'orgName',
|
|
118
|
+ dataIndex: 'certificateUrlList',
|
|
119
|
+ key: 'certificateUrlList',
|
111
|
120
|
align: 'center',
|
|
121
|
+ render: (x, row) => (
|
|
122
|
+ <>
|
|
123
|
+ {
|
|
124
|
+ (x || []).length > 0 &&
|
|
125
|
+ <>
|
|
126
|
+
|
|
127
|
+ <span className={styles.blue} onClick={() => look(row.certificateUrlList)}>
|
|
128
|
+ 查看
|
|
129
|
+ </span></>
|
|
130
|
+ }
|
|
131
|
+ </>
|
|
132
|
+ ),
|
112
|
133
|
},
|
113
|
134
|
{
|
114
|
135
|
title: '充值状态',
|
|
@@ -158,6 +179,7 @@ function header(props) {
|
158
|
179
|
return (
|
159
|
180
|
|
160
|
181
|
<>
|
|
182
|
+ < Swiper list={swiperList} onClose={() => setSwiperList([])} />
|
161
|
183
|
<Form layout="inline" onSubmit={e => handleSubmit(e, props)} style={{ marginBottom: '16px' }}>
|
162
|
184
|
<Form.Item>
|
163
|
185
|
{getFieldDecorator('tradeNo')(
|