Commit 05524c7e authored by XieZhiXiong's avatar XieZhiXiong

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

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