feat: 换货新资产归属继承提示

This commit is contained in:
luo
2026-07-20 10:50:23 +08:00
parent 2c8524485b
commit fac05db39a
7 changed files with 485 additions and 17 deletions

View File

@@ -45,6 +45,12 @@
const exchangeDetail = ref<ExchangeResponse | null>(null)
const exchangeId = ref<number>(0)
const formatExchangeShopName = (shopName?: string | null, shopId?: number | null) => {
if (shopName) return shopName
if (shopId === null || shopId === 0) return '平台'
return '--'
}
const getStatusType = (status: number): TagProps['type'] => {
const types: Record<number, TagProps['type']> = {
1: 'warning',
@@ -96,6 +102,11 @@
label: '新资产标识符',
formatter: (value) => value || '--',
prop: 'new_asset_identifier'
},
{
label: '继承归属店铺',
formatter: (_, data) =>
formatExchangeShopName(data.inherited_shop_name, data.inherited_shop_id)
}
]
})