feat(admin): 商品管理列表在租金/押金列前新增号主备注列

This commit is contained in:
yml2213
2026-08-15 10:28:02 +08:00
parent e3e980f114
commit a25486201c
@@ -132,6 +132,7 @@ const screenshotColumns = [
width: 420, width: 420,
read: (row: Listing) => characterAndWeaponSkinText(row), read: (row: Listing) => characterAndWeaponSkinText(row),
}, },
{ label: '号主备注', width: 160, read: (row: Listing) => ownerRemarkText(row) },
{ label: '租金/押金', width: 96, read: (row: Listing) => rentAndDepositText(row) }, { label: '租金/押金', width: 96, read: (row: Listing) => rentAndDepositText(row) },
{ label: '比例', width: 64, read: (row: Listing) => formatRatio(row) }, { label: '比例', width: 64, read: (row: Listing) => formatRatio(row) },
{ {
@@ -488,6 +489,11 @@ function characterAndWeaponSkinText(row: Listing) {
return parts.length ? parts.join(' / ') : '-' return parts.length ? parts.join(' / ') : '-'
} }
function ownerRemarkText(row: Listing) {
const remark = row.description?.trim()
return remark || '-'
}
function rentAndDepositText(row: Listing) { function rentAndDepositText(row: Listing) {
return `${listingPrice(row)}/${formatCentWithSymbol(row.deposit_amount_cent)}` return `${listingPrice(row)}/${formatCentWithSymbol(row.deposit_amount_cent)}`
} }
@@ -516,7 +522,7 @@ function formatQuantity(value: number) {
<div class="page-header"> <div class="page-header">
<p class="eyebrow">Listings</p> <p class="eyebrow">Listings</p>
<h1>商品管理</h1> <h1>商品管理</h1>
<p>查看商品编码地区上号方式账号资产租金押金比例和预计租期</p> <p>查看商品编码地区上号方式账号资产号主备注租金押金比例和预计租期</p>
</div> </div>
</div> </div>
@@ -855,6 +861,9 @@ function formatQuantity(value: number) {
{{ characterAndWeaponSkinText(row) }} {{ characterAndWeaponSkinText(row) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="号主备注" min-width="150">
<template #default="{ row }">{{ ownerRemarkText(row) }}</template>
</el-table-column>
<el-table-column label="租金/押金" width="90"> <el-table-column label="租金/押金" width="90">
<template #default="{ row }">{{ rentAndDepositText(row) }}</template> <template #default="{ row }">{{ rentAndDepositText(row) }}</template>
</el-table-column> </el-table-column>