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 { UPLOAD_TYPE } from '@/constants';
......@@ -8,25 +15,25 @@ export const uploadVoucherModalSchema: ISchema = {
type: 'object',
'x-component': 'mega-layout',
'x-component-props': {
labelCol: 6,
wrapperCol: 18,
labelCol: 4,
wrapperCol: 20,
labelAlign: 'left',
full: true,
},
properties: {
name: {
type: 'string',
title: '账户名称',
title: '账户名称 : ',
'x-component': 'Text',
},
bankAccount: {
type: 'string',
title: '银行账号',
title: '银行账号 : ',
'x-component': 'Text',
},
bankDeposit: {
type: 'string',
title: '开户行',
title: '开户行 : ',
'x-component': 'Text',
},
fileList: {
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-29 11:00:22
* @LastEditTime: 2021-01-06 15:05:32
* @Description: 退款明细
*/
import React, { useState } from 'react';
......@@ -254,6 +254,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
if (onRefund) {
onRefund(values).finally(() => {
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