|
|
@@ -34,9 +34,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="类型" width="100">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-tag :type="row.orderType === 'product' ? 'primary' : 'warning'" size="small">
|
|
|
- {{ row.orderType === 'product' ? '商品退款' : '提现退款' }}
|
|
|
- </el-tag>
|
|
|
+ <StatusTag size="small" :type="row.orderType === 'product' ? 'primary' : 'warning'" :text="row.orderType === 'product' ? '商品退款' : '提现退款'" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="订单号" width="180">
|
|
|
@@ -66,7 +64,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" width="100">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-tag :type="statusType(row.status)">{{ statusLabel(row.status) }}</el-tag>
|
|
|
+ <StatusTag :type="statusType(row.status)" :text="statusLabel(row.status)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="尝试次数" width="80">
|
|
|
@@ -120,14 +118,14 @@
|
|
|
<el-form-item label="订单号">{{ currentRow.orderNo || '-' }}</el-form-item>
|
|
|
<el-form-item label="提现申请ID">{{ currentRow.withdrawalRequestId || '-' }}</el-form-item>
|
|
|
<el-form-item label="用户">{{ currentRow.userName || '用户' + currentRow.userId }}</el-form-item>
|
|
|
- <el-form-item label="退款金额" style="font-weight:bold;color:#f56c6c;">{{ formatPriceWithSymbol(currentRow.amount) }}</el-form-item>
|
|
|
+ <el-form-item label="退款金额" style="font-weight:bold;color:var(--adm-error-text);">{{ formatPriceWithSymbol(currentRow.amount) }}</el-form-item>
|
|
|
<el-form-item label="实退金额">{{ currentRow.refundedAmount ? formatPriceWithSymbol(currentRow.refundedAmount) : '-' }}</el-form-item>
|
|
|
<el-form-item label="状态">
|
|
|
- <el-tag :type="statusType(currentRow.status)">{{ statusLabel(currentRow.status) }}</el-tag>
|
|
|
+ <StatusTag :type="statusType(currentRow.status)" :text="statusLabel(currentRow.status)" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="尝试次数">{{ currentRow.attemptCount }}/{{ currentRow.maxAttempts }}</el-form-item>
|
|
|
- <el-form-item label="失败原因" v-if="currentRow.failureReason" style="color:#f56c6c;">{{ currentRow.failureReason }}</el-form-item>
|
|
|
- <el-form-item label="中止原因" v-if="currentRow.remark" style="color:#909399;">{{ currentRow.remark }}</el-form-item>
|
|
|
+ <el-form-item label="失败原因" v-if="currentRow.failureReason" style="color:var(--adm-error-text);">{{ currentRow.failureReason }}</el-form-item>
|
|
|
+ <el-form-item label="中止原因" v-if="currentRow.remark" style="color:var(--adm-text-45);">{{ currentRow.remark }}</el-form-item>
|
|
|
<el-form-item label="创建时间">{{ formatTime(currentRow.createdAt) }}</el-form-item>
|
|
|
</el-form>
|
|
|
</audit-detail-drawer>
|
|
|
@@ -261,12 +259,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding: 12px; background: #fff; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
|
|
|
+.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding: 12px; background: var(--adm-bg-container); border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
|
|
|
.summary-bar { margin-bottom: 12px; }
|
|
|
-.sort-header { cursor: pointer; user-select: none; font-weight: 500; font-size: 12px; }
|
|
|
-.sort-header:hover { color: #409eff; }
|
|
|
-.sort-index { color: #fff; border-radius: 8px; font-size: 10px; padding: 0 4px; margin: 0 2px; }
|
|
|
-.sort-asc-badge { background: #f56c6c; }
|
|
|
-.sort-desc-badge { background: #409eff; }
|
|
|
-.amount { font-weight: 500; color: #f56c6c; }
|
|
|
+.amount { font-weight: 500; color: var(--adm-error-text); }
|
|
|
</style>
|