Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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-admin
Commits
dbb04947
Commit
dbb04947
authored
Dec 08, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 替换全新的 ReturnDetail 组件
parent
462d055c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
13 deletions
+28
-13
returnManageRoute.ts
config/routes/afterServiceRoutes/returnManageRoute.ts
+0
-1
detail.tsx
src/pages/afterService/returnManage/query/detail.tsx
+28
-12
No files found.
config/routes/afterServiceRoutes/returnManageRoute.ts
View file @
dbb04947
...
...
@@ -22,7 +22,6 @@ const returnManageRoute = {
component
:
'@/pages/afterService/returnManage/query/detail'
,
hideInMenu
:
true
,
hidePageHeader
:
true
,
noMargin
:
true
,
},
// 退货申请单详情-订单详情
{
...
...
src/pages/afterService/returnManage/query/detail.tsx
View file @
dbb04947
/*
* @Author: XieZhiXiong
* @Date: 2021-06-18 11:00:28
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-17 14:00:41
* @Description:
*/
import
React
from
'react'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
DetailInfo
from
'../components/DetailInfo'
;
import
{
getAsReturnGoodsGetDetailPlatform
,
getAsReturnGoodsPageOuterWorkflowRecord
}
from
'@/services/AfterServiceV2Api'
;
import
{
IProps
as
FlowRecordsProps
}
from
'@/components/FlowRecords'
;
import
fetchDetailHoc
from
'../common/hoc/fetchDetailHoc'
;
import
ReturnProfile
from
'../components/ReturnProfile'
;
const
QueryDetailInfo
:
React
.
FC
=
()
=>
{
const
ReturnQueryDetail
:
React
.
FC
=
()
=>
{
const
{
id
}
=
usePageStatus
();
const
ReturnProfilePro
=
fetchDetailHoc
({
fetchDetail
:
()
=>
getAsReturnGoodsGetDetailPlatform
({
returnId
:
id
,
}),
},
ReturnProfile
);
const
fetchOuterHistory
:
FlowRecordsProps
[
'fetchOuterList'
]
=
(
params
)
=>
{
return
new
Promise
((
resolve
)
=>
{
getAsReturnGoodsPageOuterWorkflowRecord
({
current
:
`
${
params
.
current
}
`
,
pageSize
:
`
${
params
.
pageSize
}
`
,
dataId
:
id
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
}
});
})
};
return
(
<
DetailInfo
id=
{
id
}
isPurchaser
/>
<
ReturnProfilePro
fetchOuterHistory=
{
fetchOuterHistory
}
isPurchaser
/>
);
};
export
default
QueryDetailInfo
;
\ No newline at end of file
export
default
ReturnQueryDetail
;
\ No newline at end of file
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