fix(管理端): 修正订单退款状态文案与支付状态映射

- 订单详情页去掉后端从未返回的 is_all_refund 判断,退款申请中统一显示"退款中"
- 订单中台列表支付状态对齐 OrderCenter::PAY_STATUS_MAP:2 为部分退款、3 为全额退款
This commit is contained in:
吴昊天 2026-10-23 16:11:09 +08:00
parent 22362638ef
commit 36bd2597e0
4 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,7 @@
getStatusLabel(detailData.status_code)
}}</el-tag>
<span v-if="detailData.refund_status == 1" style="color: #ed4014; margin-left: 4px">
{{ detailData.is_all_refund ? '退款中' : '部分退款中' }}
退款中
</span>
</div>
</li>

View File

@ -505,12 +505,13 @@ function getStatusClass(code) {
}
function getPayStatusLabel(status) {
const map = { 0: '未支付', 1: '已支付', 2: '部分支付' };
// 口径对齐 OrderCenter::PAY_STATUS_MAP:2 是部分退款、3 是全额退款(不是"部分支付")
const map = { 0: '未支付', 1: '已支付', 2: '部分退款', 3: '全额退款' };
return map[status] || '--';
}
function getPayStatusClass(status) {
const map = { 0: 'danger', 1: 'success', 2: 'warning' };
const map = { 0: 'danger', 1: 'success', 2: 'warning', 3: 'info' };
return map[status] || 'info';
}

View File

@ -16,7 +16,7 @@
<div>
<el-tag :type="businessStatus.type">{{ businessStatus.text }}</el-tag>
<span v-if="detailData.refund_status == 1" style="color: #ed4014; margin-left: 4px">
{{ detailData.is_all_refund ? '退款中' : '部分退款中' }}
退款中
</span>
</div>
</li>

View File

@ -22,7 +22,7 @@
{{ statusLabel(orderInfo.status_code) }}
</el-tag>
<span v-if="orderInfo.refund_status == 1" style="color: #ed4014; margin-left: 4px">
{{ orderInfo.is_all_refund ? '退款中' : '部分退款中' }}
退款中
</span>
</div>
</li>