feat(admin): modernize business views including listings, review, users, orders, pickups, and mohong
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { Check, Close, Refresh, View } from '@element-plus/icons-vue'
|
||||
import { Check, Close, Money, Refresh, ShoppingBag, View, Warning } from '@element-plus/icons-vue'
|
||||
import {
|
||||
adminApproveRefund,
|
||||
adminRejectRefund,
|
||||
@@ -22,6 +22,10 @@ const rejectVisible = ref(false)
|
||||
const rejectOrder = ref<Order | null>(null)
|
||||
const orders = ref<Order[]>([])
|
||||
|
||||
const totalRefundAmountCent = computed(() =>
|
||||
orders.value.reduce((sum, item) => sum + Number(item.refund_amount_cent || 0), 0)
|
||||
)
|
||||
|
||||
async function loadOrders() {
|
||||
loading.value = true
|
||||
try {
|
||||
@@ -36,7 +40,7 @@ async function loadOrders() {
|
||||
async function handleApprove(row: Order) {
|
||||
try {
|
||||
await ElMessageBox.confirm(
|
||||
`确认通过「${row.order_no}」的退款申请?通过后将原路退回 ${formatCentWithSymbol(row.refund_amount_cent || 0)},订单取消。`,
|
||||
`确认通过订单「${row.order_no}」的退款申请?通过后将原路退回 ${formatCentWithSymbol(row.refund_amount_cent || 0)},订单取消。`,
|
||||
'退款审核通过确认',
|
||||
{ confirmButtonText: '通过退款', cancelButtonText: '取消', type: 'warning' }
|
||||
)
|
||||
@@ -111,175 +115,473 @@ async function handleRejectClose() {
|
||||
}
|
||||
|
||||
function openDetail(order: Order) {
|
||||
router.push(adminPath(`orders/${order.id}`))
|
||||
void router.push(adminPath(`orders/${order.id}`))
|
||||
}
|
||||
|
||||
onMounted(loadOrders)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="refund-review-page">
|
||||
<div class="page-toolbar">
|
||||
<h2>退款审核</h2>
|
||||
<el-button :icon="Refresh" :loading="loading" @click="loadOrders">刷新</el-button>
|
||||
</div>
|
||||
<div class="finance-page-container">
|
||||
<!-- 头部卡片 -->
|
||||
<header class="page-header-card">
|
||||
<div class="header-main">
|
||||
<div class="title-group">
|
||||
<div class="eyebrow-tag">
|
||||
<el-icon><Money /></el-icon>
|
||||
<span>REFUND AUDIT</span>
|
||||
</div>
|
||||
<h1 class="page-title">退款审核</h1>
|
||||
<p class="page-subtitle">
|
||||
审核租客取消订单发起的退款申请,核验订单流转状态并执行原路退回或驳回处理。
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div v-loading="loading" class="review-list">
|
||||
<div v-if="!loading && orders.length === 0" class="empty-state">
|
||||
<el-empty description="暂无待审核退款" />
|
||||
<div class="toolbar-actions">
|
||||
<el-button :icon="Refresh" :loading="loading" @click="loadOrders">刷新数据</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 汇总指标卡片 -->
|
||||
<section class="summary-metric-grid">
|
||||
<div class="metric-card metric-card--pending">
|
||||
<div class="metric-icon-wrap amber">
|
||||
<el-icon><Warning /></el-icon>
|
||||
</div>
|
||||
<div class="metric-info">
|
||||
<span class="metric-label">待审核退款申请</span>
|
||||
<strong class="metric-val amber-val">{{ orders.length }} 笔</strong>
|
||||
<span class="metric-sub-pill warning">等待人工审核</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="review-cards">
|
||||
<div v-for="order in orders" :key="order.id" class="review-card">
|
||||
<div class="card-header">
|
||||
<div class="order-info">
|
||||
<span class="order-no" @click="openDetail(order)">{{ order.order_no }}</span>
|
||||
<el-tag size="small" type="warning">待客服审核退款</el-tag>
|
||||
</div>
|
||||
<div class="order-time">{{ formatDateTime(order.updated_at) }}</div>
|
||||
</div>
|
||||
<div class="metric-card metric-card--amount">
|
||||
<div class="metric-icon-wrap rose">
|
||||
<el-icon><Money /></el-icon>
|
||||
</div>
|
||||
<div class="metric-info">
|
||||
<span class="metric-label">待退款总金额</span>
|
||||
<strong class="metric-val rose-val">{{
|
||||
formatCentWithSymbol(totalRefundAmountCent)
|
||||
}}</strong>
|
||||
<span class="metric-sub-pill danger">待原路退回资金</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="info-row">
|
||||
<span class="info-label">商品</span>
|
||||
<span class="info-value">{{ order.title || '-' }}</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="info-label">订单状态</span>
|
||||
<span class="info-value">{{ orderStatusLabel(order.status) }}</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="info-label">交接状态</span>
|
||||
<span class="info-value">{{ handoffStatusLabel(order.handoff_status) }}</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="info-label">号主</span>
|
||||
<span class="info-value">{{ order.owner_phone || '-' }}</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="info-label">租客</span>
|
||||
<span class="info-value">{{ order.renter_phone || '-' }}</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="info-label">订单总额</span>
|
||||
<span class="info-value"
|
||||
>{{
|
||||
formatCentWithSymbol((order.rent_amount_cent || 0) + order.deposit_amount_cent)
|
||||
}}(租金{{ formatCentWithSymbol(order.rent_amount_cent || 0) }} / 押金{{
|
||||
formatCentWithSymbol(order.deposit_amount_cent)
|
||||
}})</span
|
||||
>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="info-label">退款金额</span>
|
||||
<span class="info-value refund-amount">{{
|
||||
formatCentWithSymbol(order.refund_amount_cent || 0)
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 退款列表卡片 -->
|
||||
<section class="section-card review-list-card">
|
||||
<div class="table-card-header">
|
||||
<div class="table-header-title">
|
||||
<el-icon class="header-icon"><ShoppingBag /></el-icon>
|
||||
<span>待审核退款列表</span>
|
||||
</div>
|
||||
<span class="count-badge">共 {{ orders.length }} 笔待办</span>
|
||||
</div>
|
||||
|
||||
<div class="card-actions">
|
||||
<el-button :icon="View" size="small" @click="openDetail(order)"> 查看详情 </el-button>
|
||||
<el-button
|
||||
:icon="Check"
|
||||
type="primary"
|
||||
size="small"
|
||||
:loading="submitting"
|
||||
@click="handleApprove(order)"
|
||||
>
|
||||
通过退款
|
||||
</el-button>
|
||||
<el-button
|
||||
:icon="Close"
|
||||
type="danger"
|
||||
size="small"
|
||||
:loading="submitting"
|
||||
@click="openReject(order)"
|
||||
>
|
||||
驳回
|
||||
</el-button>
|
||||
<div v-loading="loading" class="review-items-wrap">
|
||||
<div v-if="!loading && orders.length === 0" class="empty-box">
|
||||
<el-empty description="暂无待审核的退款申请,运营秩序良好" />
|
||||
</div>
|
||||
|
||||
<div v-else class="review-cards-grid">
|
||||
<div v-for="order in orders" :key="order.id" class="review-card">
|
||||
<div class="rc-header">
|
||||
<div class="rc-order-info">
|
||||
<span class="order-no" @click="openDetail(order)">{{ order.order_no }}</span>
|
||||
<el-tag size="small" type="warning" class="status-tag">待客服审核退款</el-tag>
|
||||
</div>
|
||||
<span class="time-text">{{ formatDateTime(order.updated_at) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="rc-body">
|
||||
<div class="rc-info-row">
|
||||
<span class="label">商品标题</span>
|
||||
<span class="val title-val">{{ order.title || '-' }}</span>
|
||||
</div>
|
||||
<div class="rc-info-grid">
|
||||
<div class="rc-info-row">
|
||||
<span class="label">租客信息</span>
|
||||
<span class="val font-mono">{{ order.renter_phone || '-' }}</span>
|
||||
</div>
|
||||
<div class="rc-info-row">
|
||||
<span class="label">号主信息</span>
|
||||
<span class="val font-mono">{{ order.owner_phone || '-' }}</span>
|
||||
</div>
|
||||
<div class="rc-info-row">
|
||||
<span class="label">订单状态</span>
|
||||
<span class="val">{{ orderStatusLabel(order.status) }}</span>
|
||||
</div>
|
||||
<div class="rc-info-row">
|
||||
<span class="label">交接状态</span>
|
||||
<span class="val">{{ handoffStatusLabel(order.handoff_status) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rc-amount-row">
|
||||
<div class="amount-detail">
|
||||
<span class="label">订单总付:</span>
|
||||
<span class="val font-mono">
|
||||
{{
|
||||
formatCentWithSymbol(
|
||||
(order.rent_amount_cent || 0) + order.deposit_amount_cent
|
||||
)
|
||||
}}
|
||||
<small
|
||||
>(租金 {{ formatCentWithSymbol(order.rent_amount_cent || 0) }} + 押金
|
||||
{{ formatCentWithSymbol(order.deposit_amount_cent) }})</small
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
<div class="refund-badge">
|
||||
<span class="refund-label">申请退款</span>
|
||||
<strong class="refund-val font-mono">{{
|
||||
formatCentWithSymbol(order.refund_amount_cent || 0)
|
||||
}}</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rc-footer">
|
||||
<el-button :icon="View" size="small" @click="openDetail(order)"> 查看订单 </el-button>
|
||||
<div class="action-btn-group">
|
||||
<el-button
|
||||
:icon="Close"
|
||||
type="danger"
|
||||
size="small"
|
||||
plain
|
||||
:loading="submitting"
|
||||
@click="openReject(order)"
|
||||
>
|
||||
驳回退款
|
||||
</el-button>
|
||||
<el-button
|
||||
:icon="Check"
|
||||
type="primary"
|
||||
size="small"
|
||||
:loading="submitting"
|
||||
@click="handleApprove(order)"
|
||||
>
|
||||
通过退款
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 驳回弹窗 -->
|
||||
<el-dialog v-model="rejectVisible" title="驳回退款" width="420px">
|
||||
<div v-if="rejectOrder" class="reject-dialog">
|
||||
<p class="reject-tip">请选择驳回方式:</p>
|
||||
<div class="reject-options">
|
||||
<el-button type="primary" :loading="submitting" @click="handleRejectRestore">
|
||||
驳回退款(恢复订单)
|
||||
</el-button>
|
||||
<p class="option-desc">仅驳回退款请求,订单恢复至待交接状态,交接流程可继续</p>
|
||||
<!-- 驳回退款弹窗 -->
|
||||
<el-dialog v-model="rejectVisible" title="驳回退款申请" width="480px" destroy-on-close>
|
||||
<div v-if="rejectOrder" class="reject-dialog-body">
|
||||
<div class="reject-order-badge">
|
||||
<span>待处理订单:</span>
|
||||
<strong class="font-mono">{{ rejectOrder.order_no }}</strong>
|
||||
</div>
|
||||
<p class="reject-tip-text">请根据争议核实情况选择驳回模式:</p>
|
||||
<div class="reject-mode-list">
|
||||
<div class="reject-mode-card" @click="handleRejectRestore">
|
||||
<div class="mode-header">
|
||||
<el-button type="primary" size="small" :loading="submitting">
|
||||
仅驳回退款(恢复订单)
|
||||
</el-button>
|
||||
</div>
|
||||
<p class="mode-desc">
|
||||
仅驳回退款请求,订单恢复至待交接状态,号主与租客可继续完成交接履约。
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<el-button type="danger" :loading="submitting" @click="handleRejectClose">
|
||||
驳回退款并关闭订单
|
||||
</el-button>
|
||||
<p class="option-desc">驳回退款且关闭订单,商品下架归档,订单不可再操作</p>
|
||||
<div class="reject-mode-card" @click="handleRejectClose">
|
||||
<div class="mode-header">
|
||||
<el-button type="danger" size="small" :loading="submitting">
|
||||
驳回退款并关闭订单
|
||||
</el-button>
|
||||
</div>
|
||||
<p class="mode-desc">驳回退款请求并强制关闭订单,商品将下架归档,后续不可再流转。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button @click="rejectVisible = false">取消</el-button>
|
||||
<div class="modal-footer">
|
||||
<el-button @click="rejectVisible = false">取消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.refund-review-page {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
.finance-page-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
padding: 0 4px 32px;
|
||||
}
|
||||
|
||||
.page-toolbar {
|
||||
/* ================= 头部卡片 ================= */
|
||||
.page-header-card {
|
||||
background: #ffffff;
|
||||
border-radius: 16px;
|
||||
padding: 24px 28px;
|
||||
box-shadow:
|
||||
0 1px 3px rgba(15, 23, 42, 0.04),
|
||||
0 4px 12px rgba(15, 23, 42, 0.02);
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
}
|
||||
|
||||
.header-main {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.title-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.eyebrow-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.8px;
|
||||
color: #ea580c;
|
||||
background: #fff7ed;
|
||||
padding: 3px 10px;
|
||||
border-radius: 20px;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
margin: 0;
|
||||
font-size: 26px;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
.page-subtitle {
|
||||
margin: 0;
|
||||
font-size: 13.5px;
|
||||
color: #64748b;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.toolbar-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
/* ================= 核心指标卡片 ================= */
|
||||
.summary-metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.metric-card {
|
||||
background: #ffffff;
|
||||
border-radius: 16px;
|
||||
padding: 18px 20px;
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
box-shadow:
|
||||
0 1px 3px rgba(15, 23, 42, 0.04),
|
||||
0 4px 12px rgba(15, 23, 42, 0.02);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition:
|
||||
transform 0.2s ease,
|
||||
box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.metric-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
.metric-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
.metric-card--pending::before {
|
||||
background: linear-gradient(90deg, #f59e0b, #fbbf24);
|
||||
}
|
||||
|
||||
.metric-card--amount::before {
|
||||
background: linear-gradient(90deg, #f43f5e, #fb7185);
|
||||
}
|
||||
|
||||
.metric-icon-wrap {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 20px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.metric-icon-wrap.amber {
|
||||
background: #fffbeb;
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
.metric-icon-wrap.rose {
|
||||
background: #fff1f2;
|
||||
color: #f43f5e;
|
||||
}
|
||||
|
||||
.metric-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.metric-label {
|
||||
font-size: 12.5px;
|
||||
font-weight: 500;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.metric-val {
|
||||
font-size: 24px;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
letter-spacing: -0.3px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.amber-val {
|
||||
color: #d97706;
|
||||
}
|
||||
|
||||
.rose-val {
|
||||
color: #e11d48;
|
||||
}
|
||||
|
||||
.metric-sub-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.metric-sub-pill.warning {
|
||||
background: #fffbeb;
|
||||
color: #d97706;
|
||||
}
|
||||
|
||||
.metric-sub-pill.danger {
|
||||
background: #fff1f2;
|
||||
color: #e11d48;
|
||||
}
|
||||
|
||||
/* ================= 列表卡片 ================= */
|
||||
.section-card {
|
||||
background: #ffffff;
|
||||
border-radius: 16px;
|
||||
padding: 22px 24px;
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
box-shadow:
|
||||
0 1px 3px rgba(15, 23, 42, 0.04),
|
||||
0 4px 12px rgba(15, 23, 42, 0.02);
|
||||
}
|
||||
|
||||
.table-card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.page-toolbar h2 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
padding: 60px 0;
|
||||
}
|
||||
|
||||
.review-cards {
|
||||
.table-header-title {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
.header-icon {
|
||||
color: #ea580c;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.count-badge {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #ea580c;
|
||||
background: #fff7ed;
|
||||
padding: 3px 10px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.empty-box {
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
.review-cards-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.review-card {
|
||||
border: 1px solid var(--el-border-color-light);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
background: var(--el-bg-color);
|
||||
background: #f8fafc;
|
||||
border-radius: 14px;
|
||||
border: 1px solid #e2e8f0;
|
||||
padding: 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
.review-card:hover {
|
||||
background: #ffffff;
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
|
||||
border-color: #cbd5e1;
|
||||
}
|
||||
|
||||
.rc-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 12px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid var(--el-border-color-lighter);
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.order-info {
|
||||
.rc-order-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.order-no {
|
||||
font-weight: 600;
|
||||
color: var(--el-color-primary);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #2563eb;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -287,66 +589,173 @@ onMounted(loadOrders)
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.order-time {
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-secondary);
|
||||
}
|
||||
|
||||
.card-body {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px 24px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.info-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
color: var(--el-text-color-secondary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
color: var(--el-text-color-primary);
|
||||
}
|
||||
|
||||
.refund-amount {
|
||||
.status-tag {
|
||||
font-weight: 600;
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--el-border-color-lighter);
|
||||
.time-text {
|
||||
font-size: 11.5px;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.reject-dialog {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.reject-tip {
|
||||
margin-bottom: 16px;
|
||||
color: var(--el-text-color-regular);
|
||||
}
|
||||
|
||||
.reject-options {
|
||||
.rc-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.option-desc {
|
||||
.rc-info-row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
.rc-info-row .label {
|
||||
color: #64748b;
|
||||
min-width: 60px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.rc-info-row .val {
|
||||
color: #1e293b;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.title-val {
|
||||
font-weight: 600 !important;
|
||||
color: #0f172a !important;
|
||||
}
|
||||
|
||||
.rc-info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 6px;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #edf2f7;
|
||||
}
|
||||
|
||||
.rc-amount-row {
|
||||
margin-top: 4px;
|
||||
padding: 10px 12px;
|
||||
background: #fff1f2;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #fecdd3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.amount-detail .label {
|
||||
font-size: 11.5px;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.amount-detail .val {
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-secondary);
|
||||
margin: 0 0 12px 0;
|
||||
text-align: left;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.amount-detail small {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.refund-badge {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.refund-label {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #e11d48;
|
||||
}
|
||||
|
||||
.refund-val {
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
color: #e11d48;
|
||||
}
|
||||
|
||||
.rc-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-top: 10px;
|
||||
border-top: 1px dashed #e2e8f0;
|
||||
}
|
||||
|
||||
.action-btn-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.font-mono {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
}
|
||||
|
||||
/* ================= 弹窗样式 ================= */
|
||||
.reject-dialog-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.reject-order-badge {
|
||||
background: #f8fafc;
|
||||
border-radius: 8px;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #e2e8f0;
|
||||
font-size: 13px;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.reject-tip-text {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.reject-mode-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.reject-mode-card {
|
||||
padding: 12px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: #f8fafc;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.reject-mode-card:hover {
|
||||
background: #ffffff;
|
||||
border-color: #cbd5e1;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
|
||||
.mode-desc {
|
||||
margin: 0;
|
||||
font-size: 11.5px;
|
||||
color: #64748b;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user