This commit is contained in:
Leo
2025-11-15 01:31:46 +08:00
parent a2a9f01e2c
commit 74c42ac250

View File

@@ -92,35 +92,44 @@
</el-table-column>
<el-table-column label="下单人" prop="buyer" width="100"/>
<!-- 退款状态标签列合并显示 -->
<el-table-column label="退款状态" width="180" align="center">
<!-- 退款状态标签列三行显示 -->
<el-table-column label="退款状态" width="160" align="left">
<template slot-scope="scope">
<div style="display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;">
<div style="display: flex; flex-direction: column; gap: 6px;">
<div style="display: flex; align-items: center; gap: 8px;">
<span style="min-width: 80px; font-size: 12px; color: #606266;">是否退款</span>
<el-tag
:type="scope.row.isRefunded === 1 ? 'warning' : 'info'"
size="small"
:title="scope.row.isRefunded === 1 && scope.row.refundDate ? '退款日期:' + parseTime(scope.row.refundDate) : ''"
@click.native="toggleRefunded(scope.row)"
style="cursor: pointer;">
style="cursor: pointer; flex: 1;">
{{ scope.row.isRefunded === 1 ? '已退款' : '未退款' }}
</el-tag>
</div>
<div style="display: flex; align-items: center; gap: 8px;">
<span style="min-width: 80px; font-size: 12px; color: #606266;">是否退款到账</span>
<el-tag
:type="scope.row.isRefundReceived === 1 ? 'success' : 'info'"
size="small"
:title="scope.row.isRefundReceived === 1 && scope.row.refundReceivedDate ? '退款到账日期:' + parseTime(scope.row.refundReceivedDate) : ''"
@click.native="toggleRefundReceived(scope.row)"
style="cursor: pointer;">
style="cursor: pointer; flex: 1;">
{{ scope.row.isRefundReceived === 1 ? '退款到账' : '未到账' }}
</el-tag>
</div>
<div style="display: flex; align-items: center; gap: 8px;">
<span style="min-width: 80px; font-size: 12px; color: #606266;">后返到账</span>
<el-tag
:type="scope.row.isRebateReceived === 1 ? 'success' : 'info'"
size="small"
:title="scope.row.isRebateReceived === 1 && scope.row.rebateReceivedDate ? '后返到账日期:' + parseTime(scope.row.rebateReceivedDate) : ''"
@click.native="toggleRebateReceived(scope.row)"
style="cursor: pointer;">
style="cursor: pointer; flex: 1;">
{{ scope.row.isRebateReceived === 1 ? '后返到账' : '未到账' }}
</el-tag>
</div>
</div>
</template>
</el-table-column>