Commit 97e935a5 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复退货、收货单号跳转的问题

parent 683bfd22
......@@ -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 ExchangePrDeliver: 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-12-31 10:33:18
* @LastEditTime: 2021-01-07 11:02:51
* @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';
......@@ -74,9 +74,16 @@ const ExchangePrReceived: React.FC = () => {
align: 'center',
},
{
title: '换货发货单号',
dataIndex: 'replaceDeliveryNo',
title: '换货入库单号',
dataIndex: 'replaceStorageNo',
align: 'center',
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.replaceStorageId}`}
>
{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 ExchangePrDeliver: 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 20:18:26
* @LastEditTime: 2021-01-07 11:05:27
* @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';
......@@ -74,10 +74,16 @@ const ExchangePrReceived: React.FC = () => {
align: 'center',
},
{
title: '退货发货单号',
dataIndex: 'returnDeliveryNo',
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: 2020-12-17 15:13:16
* @LastEditTime: 2021-01-07 10:51:04
* @Description: 待新增退货发货单
*/
import React, { useState, useRef } from 'react';
......@@ -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';
......@@ -83,7 +83,13 @@ const ReturnPrAddLogistics: 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: '外部状态',
......@@ -121,7 +127,7 @@ const ReturnPrAddLogistics: React.FC = () => {
type="link"
onClick={
() =>
history.push(`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?id=${record.returnDeliveryId}`)
history.push(`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?id=${record.returnLogisticsId}`)
}
>
查看物流单
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 16:30:44
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-11-17 17:24:12
* @LastEditTime: 2021-01-07 10:52:38
* @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 ReturnPrConfirmBack: 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-12-08 17:22:57
* @LastEditTime: 2021-01-07 10:56:40
* @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 ReturnPrReceived: 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: '外部状态',
......
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