|
@@ -11,6 +11,7 @@ import request from '../../utils/request';
|
11
|
11
|
import AuthButton from '@/components/AuthButton';
|
12
|
12
|
import Swiper from './components/Swiper';
|
13
|
13
|
import { regFenToYuan } from '@/utils/money';
|
|
14
|
+import Refund from './components/Refund'
|
14
|
15
|
|
15
|
16
|
const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
16
|
17
|
|
|
@@ -203,6 +204,7 @@ function header(props) {
|
203
|
204
|
}
|
204
|
205
|
const refund = (row) => {
|
205
|
206
|
setRefundVisible(true)
|
|
207
|
+ console.log(row,'row')
|
206
|
208
|
setRow(row)
|
207
|
209
|
}
|
208
|
210
|
|
|
@@ -220,22 +222,26 @@ function header(props) {
|
220
|
222
|
}
|
221
|
223
|
|
222
|
224
|
const orderRefund = () => {
|
223
|
|
- request({
|
224
|
|
- ...apis.fund.refund, urlData: { id: row.orderId }, data: {
|
225
|
|
- orgId: row.orgId,
|
226
|
|
- amount: row.amount,
|
227
|
|
- }
|
228
|
|
- }).then((data) => {
|
229
|
|
- console.log(data)
|
230
|
|
- getList({ pageNum: 1, pageSize: 10, orderType: 'refund' });
|
231
|
225
|
|
232
|
|
- })
|
|
226
|
+ getList({ pageNum: 1, pageSize: 10, orderType: 'refund' });
|
233
|
227
|
|
234
|
228
|
setRefundVisible(false)
|
|
229
|
+ // request({
|
|
230
|
+ // ...apis.fund.refund, urlData: { id: row.orderId }, data: {
|
|
231
|
+ // orgId: row.orgId,
|
|
232
|
+ // amount: row.amount,
|
|
233
|
+ // }
|
|
234
|
+ // }).then(data => {
|
|
235
|
+ // console.log(data)
|
|
236
|
+ // getList({ pageNum: 1, pageSize: 10, orderType: 'refund' });
|
|
237
|
+
|
|
238
|
+ // })
|
|
239
|
+
|
|
240
|
+ // setRefundVisible(false)
|
235
|
241
|
}
|
236
|
242
|
// 导出
|
237
|
243
|
const exportList = () => {
|
238
|
|
- let { LocalDate, ...submitValue } = props.form.getFieldsValue()
|
|
244
|
+ const { LocalDate, ...submitValue } = props.form.getFieldsValue()
|
239
|
245
|
if (null != LocalDate && LocalDate.length > 0) {
|
240
|
246
|
const [startDate, endDate] = LocalDate
|
241
|
247
|
submitValue.startDate = moment(startDate).format('YYYY-MM-DD');
|
|
@@ -277,13 +283,17 @@ function header(props) {
|
277
|
283
|
<span style={{ color: 'red' }}>*</span><Input value={inputValue} onChange={e => setValue(e.target.value)} style={{ marginLeft: '10px', width: '80%' }} placeholder="请输入驳回原因" />
|
278
|
284
|
</div>
|
279
|
285
|
</Modal>
|
|
286
|
+ {/* onClick={() => orderRefund()} */}
|
280
|
287
|
<Modal
|
281
|
288
|
visible={refundVisible}
|
282
|
289
|
title="退款审核"
|
283
|
290
|
onOk={() => orderRefund()}
|
284
|
291
|
onCancel={() => handleCancel()}
|
285
|
292
|
footer={[
|
286
|
|
- <Button key="back" size="large" onClick={() => orderRefund()}>退款</Button>,
|
|
293
|
+ <Button key="back" size="large"><Refund orgId={row.orgId} accountId={row.accountId} amount={row.amount || '0'} onClick={orderRefund} orderId={row.orderId} /></Button>,
|
|
294
|
+ // <span style={{ color: '#FF925C', cursor: 'pointer', display: 'inline-block' }} >
|
|
295
|
+
|
|
296
|
+ // </span>
|
287
|
297
|
<Button key="submit" type="primary" size="large" onClick={() => bohui()}>驳回</Button>,
|
288
|
298
|
]}
|
289
|
299
|
><div>
|