Commit c585b300 authored by XieZhiXiong's avatar XieZhiXiong

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

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