| | |
| | | const renderDetailContent = () => { |
| | | if (!orderDetail) return null; |
| | | |
| | | const { status, paymentType, auditStatus } = orderDetail; |
| | | const { status, paymentType, refundStatus } = orderDetail; |
| | | |
| | | // 基础字段(所有状态都显示) |
| | | const baseItems = [ |
| | |
| | | children: ( |
| | | <span style={{ |
| | | color: |
| | | auditStatus === 1 ? '#faad14' : |
| | | auditStatus === 2 ? '#52c41a' : |
| | | '#f5222d' |
| | | refundStatus === 1 ? '#faad14' : |
| | | refundStatus === 2 ? '#52c41a' : |
| | | '#f5222d' |
| | | }}> |
| | | {auditStatusMap[auditStatus] || auditStatus} |
| | | {auditStatusMap[refundStatus] || refundStatus} |
| | | </span> |
| | | ), |
| | | }, |
| | |
| | | |
| | | // 审核相关字段 |
| | | const auditItems = []; |
| | | if (auditStatus >= 2) { |
| | | if (status >= 2) { |
| | | auditItems.push( |
| | | { |
| | | label: '审核结果', |
| | | children: auditStatus === 2 ? '审核通过' : '审核驳回', |
| | | children: status === 2 ? '审核通过' : '审核驳回', |
| | | }, |
| | | { |
| | | label: '审核时间', |
| | |
| | | title="退款申请详情" |
| | | open={visible} |
| | | onCancel={onCancel} |
| | | footer={[ |
| | | <button key="close" type="button" className="ant-btn" onClick={onCancel}> |
| | | 关闭 |
| | | </button>, |
| | | ]} |
| | | footer={false} |
| | | width={800} |
| | | destroyOnHidden |
| | | > |