修正后台订单号主实际收入

This commit is contained in:
yml2213
2026-08-30 19:27:11 +08:00
parent 2487a2d83f
commit 0aef80fd11
4 changed files with 92 additions and 4 deletions
@@ -164,6 +164,12 @@ function userText(value: string | number | undefined) {
function isPlatformManaged(row: Order) {
return row.handoff_mode === 'platform' || row.settlement_mode === 'platform_managed'
}
function ownerActualIncome(row: Order) {
if (row.settlement_status !== 'settled' && row.settlement_status !== 'arbitrated') return null
const value = row.checkout?.owner_income_amount_cent
return typeof value === 'number' ? value : null
}
</script>
<template>
@@ -331,11 +337,12 @@ function isPlatformManaged(row: Order) {
</div>
</template>
</el-table-column>
<el-table-column label="号主收入" width="120" align="right">
<el-table-column label="号主实际收入" width="130" align="right">
<template #default="{ row }">
<strong class="owner-income-cell"
>¥{{ money(amountYuan(row.owner_rent_amount_cent)) }}</strong
>
<strong v-if="ownerActualIncome(row) !== null" class="owner-income-cell">
¥{{ money(amountYuan(ownerActualIncome(row))) }}
</strong>
<span v-else class="owner-income-empty">-</span>
</template>
</el-table-column>
<el-table-column label="创建时间" width="170">
@@ -453,6 +460,10 @@ function isPlatformManaged(row: Order) {
font-size: 14px;
}
.owner-income-empty {
color: #8f9bba;
}
.order-link {
overflow: hidden;
color: #2f6bff;