Commit ec16a5de authored by XieZhiXiong's avatar XieZhiXiong

chore: 添加跳转查看订单详情

parent 17bd1ff8
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 15:18:15
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-23 10:45:27
* @LastEditTime: 2021-01-28 10:41:43
* @Description: 退货收货统计、退货发货明细
*/
import React, { useState } from 'react';
......@@ -66,6 +66,11 @@ interface ReturnInfoProps {
* 退货申请单内部状态
*/
innerStatus: number;
/**
* 历史记录目标路径
*/
target: string;
};
const ReturnInfo: React.FC<ReturnInfoProps> = ({
......@@ -76,6 +81,7 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
onConfirmReturnDeliver,
onConfirmReturnReceive,
innerStatus,
target,
}) => {
const [currentBatch, setCurrentBatch] = useState(1);
......@@ -85,7 +91,7 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
dataIndex: 'orderNo',
render: (text, record) => (
<EyePreview
url={``}
url={`${target}/orderDetail?orderNo=${record.orderNo}`}
>
{text}
</EyePreview>
......@@ -149,7 +155,7 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
dataIndex: 'orderNo',
render: (text, record) => (
<EyePreview
url={``}
url={`${target}/orderDetail?orderNo=${record.orderNo}`}
>
{text}
</EyePreview>
......
......@@ -411,6 +411,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
onConfirmReturnBack={handleConfirmReturnBack}
isPurchaser={true}
innerStatus={detailInfo?.innerStatus}
target={target}
/>
</Suspense>
</Col>
......
......@@ -450,6 +450,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
detailed={detailInfo && detailInfo.returnDeliveryGoodsList ? detailInfo.returnDeliveryGoodsList : []}
onConfirmReturnReceive={handleReceivedConfirmReturnReceive}
innerStatus={detailInfo?.innerStatus}
target={target}
/>
</Suspense>
</Col>
......
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