Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
fb04a535
Commit
fb04a535
authored
Aug 27, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复线下退款完毕弹窗没有消失的问题
parent
e1cc7343
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
index.tsx
...ice/components/RefundModal/UploadPaymentVoucher/index.tsx
+5
-1
index.tsx
src/pages/afterService/components/ReturnDetailInfo/index.tsx
+8
-3
No files found.
src/pages/afterService/components/RefundModal/UploadPaymentVoucher/index.tsx
View file @
fb04a535
...
...
@@ -118,6 +118,10 @@ interface IProps {
* 采购商角色id
*/
purchaserRoleId
:
number
,
/**
* 弹窗提交 loading
*/
submitLoading
:
boolean
;
}
const
UploadPaymentVoucher
:
React
.
FC
<
IProps
>
=
(
props
:
IProps
)
=>
{
...
...
@@ -127,6 +131,7 @@ const UploadPaymentVoucher: React.FC<IProps> = (props: IProps) => {
onSubmit
,
purchaserId
,
purchaserRoleId
,
submitLoading
,
}
=
props
;
const
[
bankAccount
,
setBankAccount
]
=
useState
<
BankAccount
>
({
name
:
''
,
...
...
@@ -136,7 +141,6 @@ const UploadPaymentVoucher: React.FC<IProps> = (props: IProps) => {
});
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
refundDisabled
,
setRefundDisabled
]
=
useState
(
false
);
const
[
submitLoading
,
setSubmitLoading
]
=
useState
(
false
);
// 获取对公账户信息
const
getSettleAccountsGetMemberAccountConfig
=
()
=>
{
...
...
src/pages/afterService/components/ReturnDetailInfo/index.tsx
View file @
fb04a535
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-27 1
5:38:04
* @LastEditTime: 2021-08-27 1
6:09:15
* @Description: 退款明细
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -306,8 +306,8 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
};
const
handleRefundConfirm
=
(
values
,
modalName
)
=>
{
setSubmitLoading
(
true
);
if
(
onRefund
)
{
setSubmitLoading
(
true
);
onRefund
(
values
).
finally
(()
=>
{
setSubmitLoading
(
false
);
setRefundModalVisible
(
false
);
...
...
@@ -317,7 +317,11 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
const
handlePaymentVoucherSubmit
=
(
value
)
=>
{
if
(
onRefund
)
{
return
onRefund
({
...
value
,
id
:
refundModalValue
.
id
});
setSubmitLoading
(
true
);
return
onRefund
({
...
value
,
id
:
refundModalValue
.
id
}).
finally
(()
=>
{
setSubmitLoading
(
false
);
setPaymentVoucherVisible
(
false
);
});
}
return
Promise
.
reject
();
};
...
...
@@ -490,6 +494,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
onSubmit=
{
handlePaymentVoucherSubmit
}
purchaserId=
{
refundModalValue
.
purchaserId
}
purchaserRoleId=
{
refundModalValue
.
purchaserRoleId
}
submitLoading=
{
submitLoading
}
/>
</
MellowCard
>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment