魏超 5 년 전
부모
커밋
6bc205eaf7
2개의 변경된 파일31개의 추가작업 그리고 22개의 파일을 삭제
  1. 10
    1
      src/pages/fundManagement/AccountDetail.jsx
  2. 21
    21
      src/pages/fundManagement/RechargeOrder.jsx

+ 10
- 1
src/pages/fundManagement/AccountDetail.jsx 파일 보기

@@ -91,6 +91,15 @@ function header(props) {
91 91
         },
92 92
     ]
93 93
 
94
+    const getDetail = (row) => {
95
+        router.push({
96
+            pathname: '/fundManagement/AccountDetail',
97
+            query: {
98
+                id: row.orgId
99
+            },
100
+        });
101
+    }
102
+
94 103
 
95 104
     return (
96 105
 
@@ -109,7 +118,7 @@ function header(props) {
109 118
                         <XForm buttonVisible={false} fields={fields}></XForm>
110 119
                         <div style={{ paddingLeft: '30%', marginTop: '30px' }}>
111 120
                             <Button htmlType="submit" type="primary" style={{ marginRight: '10%' }}>
112
-                                <Recharge orgId={newsData.orgId || ''} onClick={() => getDetail(orgId)} accountId={newsData.accountId || ''} />
121
+                                <Recharge orgId={newsData.orgId || ''} onClick={() => getDetail(newsData)} accountId={newsData.accountId || ''} />
113 122
                             </Button>
114 123
                             <Button onClick={() => router.go(-1)}>返回</Button>
115 124
                         </div>

+ 21
- 21
src/pages/fundManagement/RechargeOrder.jsx 파일 보기

@@ -38,14 +38,14 @@ function header(props) {
38 38
         e.preventDefault();
39 39
         props.form.validateFields((err, values) => {
40 40
             if (!err) {
41
-                let { LocalDate, ...submitValue } = values
42
-                if (null != LocalDate && LocalDate.length > 0) {
43
-                    const [startDate, endDate] = LocalDate
44
-                    submitValue.startDate = moment(startDate).format('YYYY-MM-DD');
45
-                    submitValue.endDate = moment(endDate).format('YYYY-MM-DD');
41
+                let { payDate, ...submitValue } = values
42
+                if (null != payDate && payDate.length > 0) {
43
+                    const [payStartDate, payEndDate] = payDate
44
+                    submitValue.payStartDate = moment(payStartDate).format('YYYY-MM-DD');
45
+                    submitValue.payEndDate = moment(payEndDate).format('YYYY-MM-DD');
46 46
                 } else {
47
-                    submitValue.startDate = null
48
-                    submitValue.endDate = null
47
+                    submitValue.payStartDate = null
48
+                    submitValue.payEndDate = null
49 49
                 }
50 50
                 getList({ pageNum: 1, pageSize: 10, orderType: 'recharge', ...submitValue })
51 51
             }
@@ -53,11 +53,11 @@ function header(props) {
53 53
     }
54 54
 
55 55
     const changePageNum = (pageNumber) => {
56
-        let { LocalDate, ...submitValue } = props.form.getFieldsValue()
57
-        if (null != LocalDate && LocalDate.length > 0) {
58
-            const [startDate, endDate] = LocalDate
59
-            submitValue.startDate = moment(startDate).format('YYYY-MM-DD');
60
-            submitValue.endDate = moment(endDate).format('YYYY-MM-DD');
56
+        let { payDate, ...submitValue } = props.form.getFieldsValue()
57
+        if (null != payDate && payDate.length > 0) {
58
+            const [payStartDate, payEndDate] = payDate
59
+            submitValue.payStartDate = moment(payStartDate).format('YYYY-MM-DD');
60
+            submitValue.payStartDate = moment(payEndDate).format('YYYY-MM-DD');
61 61
         } else {
62 62
             submitValue.startDate = null
63 63
             submitValue.endDate = null
@@ -143,7 +143,7 @@ function header(props) {
143 143
             dataIndex: 'payDate',
144 144
             key: 'payDate',
145 145
             align: 'center',
146
-            render: (x, row) => <><span>{row.payDate ? `${moment(row.payDate).format('YYYY-MM-DD HH:mm:ss')}` : ''}</span></>,
146
+            render: (x, row) => <><span>{row.isOffline == 0 && row.payDate != null ? `${moment(row.payDate).format('YYYY-MM-DD HH:mm:ss')}` : ''}</span></>,
147 147
         },
148 148
 
149 149
     ];
@@ -153,14 +153,14 @@ function header(props) {
153 153
     }
154 154
     // 导出
155 155
     const exportList = () => {
156
-        let { LocalDate, ...submitValue } = props.form.getFieldsValue()
157
-        if (null != LocalDate && LocalDate.length > 0) {
158
-            const [startDate, endDate] = LocalDate
159
-            submitValue.startDate = moment(startDate).format('YYYY-MM-DD');
160
-            submitValue.endDate = moment(endDate).format('YYYY-MM-DD');
156
+        let { payDate, ...submitValue } = props.form.getFieldsValue()
157
+        if (null != payDate && payDate.length > 0) {
158
+            const [payStartDate, payEndDate] = payDate
159
+            submitValue.payStartDate = moment(payStartDate).format('YYYY-MM-DD');
160
+            submitValue.payEndDate = moment(payEndDate).format('YYYY-MM-DD');
161 161
         } else {
162
-            submitValue.startDate = null
163
-            submitValue.endDate = null
162
+            submitValue.payStartDate = null
163
+            submitValue.payEndDate = null
164 164
         }
165 165
         request({ ...apis.fund.rechargeOrderExport, params: { orderType: 'recharge', orgId, ...submitValue } }).then(data => {
166 166
             if (!data) {
@@ -199,7 +199,7 @@ function header(props) {
199 199
                 </Form.Item>
200 200
                 <Form.Item>
201 201
                     <span style={{ marginRight: '10px' }}>支付时间段:</span>
202
-                    {getFieldDecorator('LocalDate')(
202
+                    {getFieldDecorator('payDate')(
203 203
                         <RangePicker placeholder={['开始时间', '结束时间']} />
204 204
                     )}
205 205
                 </Form.Item>