feat: 退款订单与订单列表整合4

This commit is contained in:
2025-10-29 17:48:47 +08:00
parent a15a0e7111
commit 40a240206b
@@ -1,7 +1,8 @@
// UTF-8: 退款审核弹框组件 // UTF-8: 退款审核弹框组件
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Modal, Form, Select, Input, message, Empty, Image, Space, Row, Col, Divider, InputNumber, Button } from 'antd'; import { Modal, Form, Select, Input, message, Empty, Image, Space, Row, Col, Divider, InputNumber, Button, Tag } from 'antd';
import { ordersApi } from '@/services/orders'; import { ordersApi } from '@/services/orders';
import { ORDER_STATUS_OPTIONS, findLabel, findColor } from './constants';
interface RefundReviewModalProps { interface RefundReviewModalProps {
visible: boolean; visible: boolean;
@@ -272,9 +273,9 @@ const RefundReviewModal: React.FC<RefundReviewModalProps> = ({
<div> <div>
<span style={{ fontWeight: 'bold' }}>订单状态</span> <span style={{ fontWeight: 'bold' }}>订单状态</span>
<div style={{ marginTop: 4 }}> <div style={{ marginTop: 4 }}>
<span style={{ padding: '2px 8px', backgroundColor: '#f6f8fb', color: '#000', borderRadius: 2 }}> <Tag color={findColor(ORDER_STATUS_OPTIONS, refundData?.status)}>
{refundData?.orderStatus || '-'} {findLabel(ORDER_STATUS_OPTIONS, refundData?.status)}
</span> </Tag>
</div> </div>
</div> </div>
</Col> </Col>
@@ -284,12 +285,22 @@ const RefundReviewModal: React.FC<RefundReviewModalProps> = ({
{/* 退款原因 */} {/* 退款原因 */}
<div style={{ marginBottom: 16 }}> <div style={{ marginBottom: 16 }}>
<span style={{ fontWeight: 'bold' }}>退款原因</span> <span style={{ fontWeight: 'bold' }}>用户退款原因</span>
<div style={{ marginTop: 4, padding: '8px', backgroundColor: '#fafafa', borderRadius: 2, minHeight: 40 }}> <div style={{ marginTop: 4, padding: '8px', backgroundColor: '#fafafa', borderRadius: 2, minHeight: 40 }}>
{refundData?.reason || refundData?.refundReason || '-'} {refundData?.refundReason || '-'}
</div> </div>
</div> </div>
{/* 审核原因 */}
{refundData?.approveReason && (
<div style={{ marginBottom: 16 }}>
<span style={{ fontWeight: 'bold' }}>审核原因</span>
<div style={{ marginTop: 4, padding: '8px', backgroundColor: '#fafafa', borderRadius: 2, minHeight: 40 }}>
{refundData?.approveReason}
</div>
</div>
)}
{/* 退款凭证(图片) */} {/* 退款凭证(图片) */}
{refundData?.images && refundData?.images.length > 0 && ( {refundData?.images && refundData?.images.length > 0 && (
<> <>