Commit 72e12dba authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复退款成功之后弹窗未关闭的问题

parent b80ed97d
/*
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-06 15:04:20
* @Description:
*/
import { ISchema } from '@formily/antd'; import { ISchema } from '@formily/antd';
import { UPLOAD_TYPE } from '@/constants'; import { UPLOAD_TYPE } from '@/constants';
...@@ -8,25 +15,25 @@ export const uploadVoucherModalSchema: ISchema = { ...@@ -8,25 +15,25 @@ export const uploadVoucherModalSchema: ISchema = {
type: 'object', type: 'object',
'x-component': 'mega-layout', 'x-component': 'mega-layout',
'x-component-props': { 'x-component-props': {
labelCol: 6, labelCol: 4,
wrapperCol: 18, wrapperCol: 20,
labelAlign: 'left', labelAlign: 'left',
full: true, full: true,
}, },
properties: { properties: {
name: { name: {
type: 'string', type: 'string',
title: '账户名称', title: '账户名称 : ',
'x-component': 'Text', 'x-component': 'Text',
}, },
bankAccount: { bankAccount: {
type: 'string', type: 'string',
title: '银行账号', title: '银行账号 : ',
'x-component': 'Text', 'x-component': 'Text',
}, },
bankDeposit: { bankDeposit: {
type: 'string', type: 'string',
title: '开户行', title: '开户行 : ',
'x-component': 'Text', 'x-component': 'Text',
}, },
fileList: { fileList: {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18 * @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-29 11:00:22 * @LastEditTime: 2021-01-06 15:05:32
* @Description: 退款明细 * @Description: 退款明细
*/ */
import React, { useState } from 'react'; import React, { useState } from 'react';
...@@ -254,6 +254,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({ ...@@ -254,6 +254,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
if (onRefund) { if (onRefund) {
onRefund(values).finally(() => { onRefund(values).finally(() => {
setSubmitLoading(false); setSubmitLoading(false);
setRefundModalVisible(false);
}); });
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment