Commit 05524c7e authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加跳转订单详情的逻辑2

parent 0c87d574
......@@ -8,6 +8,7 @@ const ExchangePrAddDeliverDetail: React.FC = () => {
return (
<DetailInfo
id={id}
target="/memberCenter/afterService/exchangeApplication/exchangePrAddDeliver"
/>
);
};
......
......@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -105,7 +105,13 @@ const ExchangePrAddDeliver: React.FC = () => {
title: '退货发货单号',
dataIndex: 'returnDeliveryNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.returnDeliveryId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -8,6 +8,7 @@ const ExchangePrAddLogisticsDetail: React.FC = () => {
return (
<DetailInfo
id={id}
target="/memberCenter/afterService/exchangeApplication/exchangePrAddLogistics"
/>
);
};
......
......@@ -10,7 +10,7 @@ import { Card, Badge, Progress, Button } from 'antd';
import {
ClockCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -78,7 +78,13 @@ const ExchangePrAddLogistics: React.FC = () => {
title: '退货发货单号',
dataIndex: 'returnDeliveryNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.returnDeliveryId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -8,6 +8,7 @@ const ExchangePrAddWarehousingDetail: React.FC = () => {
return (
<DetailInfo
id={id}
target="/memberCenter/afterService/exchangeApplication/exchangePrAddWarehousing"
/>
);
};
......
......@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -106,6 +106,13 @@ const ExchangePrAddWarehousing: React.FC = () => {
title: '换货发货单号',
dataIndex: 'replaceDeliveryNo',
align: 'center',
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.replaceDeliveryId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -8,6 +8,7 @@ const ExchangePrConfirmBackDetail: React.FC = () => {
return (
<DetailInfo
id={id}
target="/memberCenter/afterService/exchangeApplication/exchangePrConfirmBack"
/>
);
};
......
......@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -75,7 +75,13 @@ const ExchangePrConfirmBack: React.FC = () => {
title: '退货发货单号',
dataIndex: 'returnDeliveryNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.returnDeliveryId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -132,6 +132,7 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
</Button>
</Space>
)}
target="/memberCenter/afterService/exchangeApplication/exchangePrConfirmBack"
/>
</>
);
......
......@@ -8,6 +8,7 @@ const ExchangePrDeliverDetail: React.FC = () => {
return (
<DetailInfo
id={id}
target="/memberCenter/afterService/exchangeApplication/exchangePrDeliver"
/>
);
};
......
......@@ -51,6 +51,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
)}
</>
)}
target="/memberCenter/afterService/exchangeApplication/exchangePrDeliver"
/>
<ManualDeliveryModal
......
......@@ -8,7 +8,7 @@ const ExchangePrFinishedDetail: React.FC = () => {
return (
<DetailInfo
id={id}
target="/memberCenter/payandSettle/creditApplication/quotaFormQuery/detail"
target="/memberCenter/afterService/exchangeApplication/exchangePrFinished"
/>
);
};
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 17:21:54
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-11-10 15:08:07
* @LastEditTime: 2021-01-08 10:26:31
* @Description: 确认售后完成
*/
import React, { useState } from 'react';
......@@ -40,7 +40,6 @@ const ExchangePrFinishedDetailVerify: React.FC = () => {
<>
<DetailInfo
id={id}
target="/memberCenter/payandSettle/creditApplication/quotaFormQuery/detail"
headExtra={() => (
<Button
type="primary"
......@@ -50,6 +49,7 @@ const ExchangePrFinishedDetailVerify: React.FC = () => {
提交
</Button>
)}
target="/memberCenter/afterService/exchangeApplication/exchangePrFinished"
/>
<FinishedModal
......
......@@ -8,6 +8,7 @@ const ExchangePrReceivedDetail: React.FC = () => {
return (
<DetailInfo
id={id}
target="/memberCenter/afterService/exchangeApplication/exchangePrReceived"
/>
);
};
......
......@@ -74,6 +74,7 @@ const ExchangePrReceivedVerify: React.FC = () => {
</>
)
}}
target="/memberCenter/afterService/exchangeApplication/exchangePrReceived"
/>
</>
);
......
......@@ -75,7 +75,7 @@ interface OrderNoProps {
const OrderNo = (props: OrderNoProps) => {
const { value } = props;
return (
<Link to={`/memberCenter/afterService/exchangeApplication/exchangePrSubmit/orderDetail?id=${value}`}>{value}</Link>
<Link to={`/memberCenter/afterService/exchangeApplication/exchangePrSubmit/orderDetail?orderNo=${value}`}>{value}</Link>
)
};
OrderNo.isFieldComponent = true;
......
......@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -96,7 +96,13 @@ const ExchangePrAddDeliver: React.FC = () => {
title: '换货发货单号',
dataIndex: 'replaceDeliveryNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.replaceDeliveryId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -10,7 +10,7 @@ import { Card, Badge, Progress, Button } from 'antd';
import {
ClockCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -78,7 +78,13 @@ const ReturnPrAddLogistics: React.FC = () => {
title: '换货发货单号',
dataIndex: 'replaceDeliveryNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.replaceDeliveryId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -105,7 +105,13 @@ const ExchangePrAddWarehousing: React.FC = () => {
title: '退货入库单号',
dataIndex: 'returnStorageNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.returnStorageId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -75,7 +75,13 @@ const ExchangePrConfirmBack: React.FC = () => {
title: '换货发货单号',
dataIndex: 'replaceDeliveryNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.replaceDeliveryId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 16:30:44
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-03 18:02:09
* @LastEditTime: 2021-01-08 10:28:54
* @Description: 待换货发货
*/
import React, { useState, useRef } from 'react';
......
......@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -110,7 +110,13 @@ const ReturnPrAddDeliver: React.FC = () => {
title: '退货发货单号',
dataIndex: 'returnDeliveryNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.returnDeliveryId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 16:30:44
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-11-17 17:23:01
* @LastEditTime: 2021-01-08 10:13:21
* @Description: 待新增退货发货单
*/
import React, { useState, useRef } from 'react';
......@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -82,7 +82,13 @@ const ReturnPrDeliver: React.FC = () => {
title: '退货发货单号',
dataIndex: 'returnDeliveryNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.returnDeliveryId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { history } from 'umi';
import { history, Link } from 'umi';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
......@@ -110,7 +110,13 @@ const ReturnPrAddWarehousing: React.FC = () => {
title: '退货入库单号',
dataIndex: 'returnStorageNo',
align: 'center',
render: text => <a>{text}</a>,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.returnStorageId}`}
>
{text}
</Link>
),
},
{
title: '外部状态',
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 16:30:44
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-07 10:56:40
* @LastEditTime: 2021-01-08 10:27:43
* @Description: 待新增退货入库单
*/
import React, { useState, useRef } from 'react';
......
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