Commit 73374483 authored by XieZhiXiong's avatar XieZhiXiong

chore: 添加订单、单据、物流单跳转逻辑

parent 4135a450
......@@ -2,8 +2,8 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 15:18:15
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-22 11:25:50
* @Description: 退货收货统计、退货发货明细
* @LastEditTime: 2021-01-13 18:34:42
* @Description: 换货收货统计、换货发货明细
*/
import React, { useState } from 'react';
import { Tabs, Button, Row, Col, Descriptions, Badge, Radio, Modal } from 'antd';
......@@ -11,6 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { Link } from 'umi';
import { SummaryData, Detailed } from './interface';
import MellowCard from '@/components/MellowCard';
import { EditableColumns } from '@/components/PolymericTable/interface';
......@@ -287,13 +288,35 @@ const ExchangeReceivedInfo: React.FC<ExchangeReceivedInfoProps> = ({
<Row align="middle">
<Col span={16}>
<Descriptions>
<Descriptions.Item label="退货发货单号">
<a>{item.deliveryNo}</a>
<Descriptions.Item label="换货发货单号">
{!isPurchaser ? (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${item.deliveryId}`}
>
{item.deliveryNo}
</Link>
) : (
item.deliveryNo
)}
</Descriptions.Item>
<Descriptions.Item label="物流单号">
<a>{item.logisticsOrderNo}</a>
<Link
to={`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?id=${item.logisticsId}`}
>
{item.logisticsOrderNo}
</Link>
</Descriptions.Item>
<Descriptions.Item label="换货入库单号">
{isPurchaser ? (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${item.storageId}`}
>
{item.storageNo}
</Link>
) : (
item.storageNo
)}
</Descriptions.Item>
<Descriptions.Item label="退货入库单号">{item.storageNo}</Descriptions.Item>
<Descriptions.Item label="发货时间">{item.deliveryTime}</Descriptions.Item>
<Descriptions.Item label="物流公司">
{item.logisticsName}
......
......@@ -54,7 +54,7 @@ export interface SummaryData {
export interface Detailed {
/**
* 发货Id
* 换货发货单号Id
*/
deliveryId: number
/**
......@@ -94,6 +94,14 @@ export interface Detailed {
*/
innerStatusName: string
/**
* 物流单Id
*/
logisticsId: number
/**
* 换货入库单号Id
*/
storageId: number
/**
* 发货明细 ,DeliveryGoodsDetailVO
*/
detailList: {
......
......@@ -11,6 +11,7 @@ import {
ClockCircleOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { Link } from 'umi';
import { SummaryData, Detailed } from './interface';
import MellowCard from '@/components/MellowCard';
import { EditableColumns } from '@/components/PolymericTable/interface';
......@@ -287,12 +288,34 @@ const ReturnInfo: React.FC<ReturnInfoProps> = ({
<Col span={16}>
<Descriptions>
<Descriptions.Item label="退货发货单号">
<a>{item.deliveryNo}</a>
{isPurchaser ? (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${item.deliveryId}`}
>
{item.deliveryNo}
</Link>
) : (
item.deliveryNo
)}
</Descriptions.Item>
<Descriptions.Item label="物流单号">
<a>{item.logisticsOrderNo}</a>
<Link
to={`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?id=${item.logisticsId}`}
>
{item.logisticsOrderNo}
</Link>
</Descriptions.Item>
<Descriptions.Item label="退货入库单号">
{!isPurchaser ? (
<Link
to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${item.storageId}`}
>
{item.storageNo}
</Link>
) : (
item.storageNo
)}
</Descriptions.Item>
<Descriptions.Item label="退货入库单号">{item.storageNo}</Descriptions.Item>
<Descriptions.Item label="发货时间">{item.deliveryTime}</Descriptions.Item>
<Descriptions.Item label="物流公司">
{item.logisticsName}
......
......@@ -54,7 +54,7 @@ export interface SummaryData {
export interface Detailed {
/**
* 发货Id
* 退货发货单号Id
*/
deliveryId: number
/**
......@@ -94,6 +94,14 @@ export interface Detailed {
*/
innerStatusName: string
/**
* 物流单Id
*/
logisticsId: number
/**
* 退货入库单号Id
*/
storageId: number
/**
* 发货明细 ,DeliveryGoodsDetailVO
*/
detailList: {
......
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