Commit dbb04947 authored by XieZhiXiong's avatar XieZhiXiong

chore: 替换全新的 ReturnDetail 组件

parent 462d055c
......@@ -22,7 +22,6 @@ const returnManageRoute = {
component: '@/pages/afterService/returnManage/query/detail',
hideInMenu: true,
hidePageHeader: true,
noMargin: true,
},
// 退货申请单详情-订单详情
{
......
/*
* @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
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