Commit c585b300 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复供应商积分订单售后展示的问题

parent 1a23251a
...@@ -23,6 +23,8 @@ import { ...@@ -23,6 +23,8 @@ import {
import { import {
EXCHANGE_OUTER_STATUS_FINISHED, EXCHANGE_OUTER_STATUS_FINISHED,
EXCHANGE_INNER_STATUS_UNCOMMITTED, EXCHANGE_INNER_STATUS_UNCOMMITTED,
ORDER_TYPE2_POINTS,
ORDER_TYPE2_CHANNEL_POINTS,
} from '@/constants'; } from '@/constants';
import { normalizeFiledata, FileData, findLastIndexFlowState } from '@/utils'; import { normalizeFiledata, FileData, findLastIndexFlowState } from '@/utils';
import AvatarWrap from '@/components/AvatarWrap'; import AvatarWrap from '@/components/AvatarWrap';
...@@ -99,6 +101,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -99,6 +101,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
const [exchangeAddress, setExchangeAddress] = useState<ExchangeAddressValues>(null); const [exchangeAddress, setExchangeAddress] = useState<ExchangeAddressValues>(null);
const [returnAddress, setReturnAddress] = useState<ReturnAddressValues>(null); const [returnAddress, setReturnAddress] = useState<ReturnAddressValues>(null);
const isPointsOrder = detailInfo?.orderType === ORDER_TYPE2_POINTS || detailInfo?.orderType === ORDER_TYPE2_CHANNEL_POINTS;
// 获取换货申请详情 // 获取换货申请详情
const getDetailInfo = () => { const getDetailInfo = () => {
if (!id) { if (!id) {
...@@ -203,17 +207,17 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -203,17 +207,17 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
align: 'center', align: 'center',
}, },
{ {
title: '采购数量', title: !isPointsOrder ? '采购数量' : '兑换数量',
dataIndex: 'purchaseCount', dataIndex: 'purchaseCount',
align: 'center', align: 'center',
}, },
{ {
title: '采购单价', title: !isPointsOrder ? '采购单价' : '所需积分',
dataIndex: 'purchasePrice', dataIndex: 'purchasePrice',
align: 'center', align: 'center',
}, },
{ {
title: '采购金额', title: !isPointsOrder ? '采购金额' : '所需积分小计',
dataIndex: 'purchaseAmount', dataIndex: 'purchaseAmount',
align: 'center', align: 'center',
}, },
......
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