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
陈智峰
jinfa-platform
Commits
5da33494
Commit
5da33494
authored
Jan 28, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复未到账操作失败的问题
parent
f6c028ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
13 deletions
+34
-13
index.tsx
src/pages/afterService/components/ReturnDetailInfo/index.tsx
+17
-5
index.tsx
...Service/returnApplication/components/DetailInfo/index.tsx
+16
-8
index.tsx
...afterService/returnManage/components/DetailInfo/index.tsx
+1
-0
No files found.
src/pages/afterService/components/ReturnDetailInfo/index.tsx
View file @
5da33494
...
@@ -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: 2021-01-2
2 18:20:27
* @LastEditTime: 2021-01-2
8 10:22:16
* @Description: 退款明细
* @Description: 退款明细
*/
*/
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
...
@@ -78,6 +78,11 @@ interface ReturnDetailInfoProps {
...
@@ -78,6 +78,11 @@ interface ReturnDetailInfoProps {
* 供应商角色id
* 供应商角色id
*/
*/
supplierRoleId
:
number
,
supplierRoleId
:
number
,
/**
* 是否可操作的
*/
isEdit
?:
boolean
,
};
};
const
ReturnDetailInfo
:
React
.
FC
<
ReturnDetailInfoProps
>
=
({
const
ReturnDetailInfo
:
React
.
FC
<
ReturnDetailInfoProps
>
=
({
...
@@ -85,12 +90,12 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
...
@@ -85,12 +90,12 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
onRefund
,
onRefund
,
onConfirm
,
onConfirm
,
isPurchaser
=
false
,
isPurchaser
=
false
,
innerStatus
,
outerStatus
,
outerStatus
,
purchaserId
,
purchaserId
,
purchaserRoleId
,
purchaserRoleId
,
supplierId
,
supplierId
,
supplierRoleId
,
supplierRoleId
,
isEdit
=
false
,
})
=>
{
})
=>
{
const
[
visibleResult
,
setVisibleResult
]
=
useState
(
false
);
const
[
visibleResult
,
setVisibleResult
]
=
useState
(
false
);
const
[
notReceivedLoading
,
setNotReceivedLoading
]
=
useState
(
false
);
const
[
notReceivedLoading
,
setNotReceivedLoading
]
=
useState
(
false
);
...
@@ -235,9 +240,14 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
...
@@ -235,9 +240,14 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
const
handleConfirm
=
(
id
,
flag
)
=>
{
const
handleConfirm
=
(
id
,
flag
)
=>
{
if
(
onConfirm
)
{
if
(
onConfirm
)
{
flag
===
1
?
setReceivedLoading
(
true
)
:
setNotReceivedLoading
(
true
);
flag
===
1
?
setReceivedLoading
(
true
)
:
setNotReceivedLoading
(
true
);
onConfirm
(
id
,
flag
).
finally
(()
=>
{
onConfirm
(
id
,
flag
)
flag
===
1
?
setReceivedLoading
(
false
)
:
setNotReceivedLoading
(
false
);
.
then
(()
=>
{
});
setVisibleResult
(
false
);
flag
===
1
?
setReceivedLoading
(
false
)
:
setNotReceivedLoading
(
false
);
})
.
catch
(()
=>
{
flag
===
1
?
setReceivedLoading
(
false
)
:
setNotReceivedLoading
(
false
);
});
}
}
};
};
...
@@ -309,6 +319,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
...
@@ -309,6 +319,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
<
div
className=
{
styles
[
'deliver-item-actions'
]
}
>
<
div
className=
{
styles
[
'deliver-item-actions'
]
}
>
{
{
isEdit
&&
!
isPurchaser
&&
!
isPurchaser
&&
outerStatus
===
RETURN_OUTER_STATUS_TO_BE_REFUNDED
&&
outerStatus
===
RETURN_OUTER_STATUS_TO_BE_REFUNDED
&&
!!
item
.
canRefund
&&
(
!!
item
.
canRefund
&&
(
...
@@ -328,6 +339,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
...
@@ -328,6 +339,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
{
item
.
channel
===
PAY_CHANNEL_OFFLINE
&&
(
{
item
.
channel
===
PAY_CHANNEL_OFFLINE
&&
(
<>
<>
{
{
isEdit
&&
isPurchaser
&&
isPurchaser
&&
outerStatus
===
RETURN_OUTER_STATUS_UNCONFIRMED_REFUNDED
&&
(
outerStatus
===
RETURN_OUTER_STATUS_UNCONFIRMED_REFUNDED
&&
(
item
.
outerStatus
===
REFUND_OUTER_STATUS_UNCONFIRMED_REFUND
||
item
.
outerStatus
===
REFUND_OUTER_STATUS_UNCONFIRMED_REFUND
||
...
...
src/pages/afterService/returnApplication/components/DetailInfo/index.tsx
View file @
5da33494
...
@@ -300,14 +300,21 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
...
@@ -300,14 +300,21 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
};
};
// 确认退款到账
// 确认退款到账
const
handleConfirm
=
(
id
):
Promise
<
any
>
=>
{
const
handleConfirm
=
(
id
,
flag
):
Promise
<
void
>
=>
{
return
PublicApi
.
postAsReturnGoodsConfirmRefund
({
return
new
Promise
((
resolve
,
reject
)
=>
{
refundId
:
id
,
PublicApi
.
postAsReturnGoodsConfirmRefund
({
isReceipt
:
1
,
refundId
:
id
,
}).
then
(
res
=>
{
isReceipt
:
flag
,
if
(
res
.
code
===
1000
)
{
}).
then
(
res
=>
{
getDetailInfo
();
if
(
res
.
code
===
1000
)
{
}
getDetailInfo
();
resolve
();
}
else
{
reject
();
}
}).
catch
(()
=>
{
reject
();
});
});
});
};
};
...
@@ -430,6 +437,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
...
@@ -430,6 +437,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
purchaserRoleId=
{
detailInfo
?.
roleId
}
purchaserRoleId=
{
detailInfo
?.
roleId
}
supplierId=
{
detailInfo
?.
parentMemberId
}
supplierId=
{
detailInfo
?.
parentMemberId
}
supplierRoleId=
{
detailInfo
?.
parentMemberRoleId
}
supplierRoleId=
{
detailInfo
?.
parentMemberRoleId
}
isEdit=
{
isEdit
}
isPurchaser
isPurchaser
/>
/>
</
Suspense
>
</
Suspense
>
...
...
src/pages/afterService/returnManage/components/DetailInfo/index.tsx
View file @
5da33494
...
@@ -476,6 +476,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
...
@@ -476,6 +476,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
purchaserRoleId=
{
detailInfo
?.
roleId
}
purchaserRoleId=
{
detailInfo
?.
roleId
}
supplierId=
{
detailInfo
?.
parentMemberId
}
supplierId=
{
detailInfo
?.
parentMemberId
}
supplierRoleId=
{
detailInfo
?.
parentMemberRoleId
}
supplierRoleId=
{
detailInfo
?.
parentMemberRoleId
}
isEdit=
{
isEdit
}
/>
/>
</
Suspense
>
</
Suspense
>
</
Col
>
</
Col
>
...
...
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