feat: order-export,generation,status
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m45s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m45s
This commit is contained in:
@@ -1363,6 +1363,8 @@
|
||||
{ label: '运营商', prop: 'carrier_name' },
|
||||
{ label: '卡业务类型', prop: 'card_category' },
|
||||
{ label: '状态', prop: 'status' },
|
||||
{ label: '资产世代', prop: 'generation' },
|
||||
{ label: '业务状态', prop: 'asset_status' },
|
||||
{ label: '激活状态', prop: 'activation_status' },
|
||||
{ label: '激活时间', prop: 'activated_at' },
|
||||
{ label: '网络状态', prop: 'network_status' },
|
||||
@@ -1550,6 +1552,28 @@
|
||||
return h(ElTag, { type: getStatusType(row.status) }, () => getStatusText(row.status))
|
||||
}
|
||||
},
|
||||
{
|
||||
prop: 'generation',
|
||||
label: '资产世代',
|
||||
width: 100,
|
||||
formatter: (row: StandaloneIotCard) => row.generation ?? '-'
|
||||
},
|
||||
{
|
||||
prop: 'asset_status',
|
||||
label: '业务状态',
|
||||
width: 100,
|
||||
formatter: (row: StandaloneIotCard) => {
|
||||
const assetStatusMap: Record<number, { text: string; type: any }> = {
|
||||
1: { text: '在库', type: 'info' },
|
||||
2: { text: '已销售', type: 'success' },
|
||||
3: { text: '已换货', type: 'warning' },
|
||||
4: { text: '已停用', type: 'danger' }
|
||||
}
|
||||
if (row.asset_status == null) return '-'
|
||||
const status = assetStatusMap[row.asset_status] || { text: '未知', type: 'info' }
|
||||
return h(ElTag, { type: status.type }, () => status.text)
|
||||
}
|
||||
},
|
||||
{
|
||||
prop: 'activation_status',
|
||||
label: '激活状态',
|
||||
|
||||
Reference in New Issue
Block a user