feat: order-export,generation,status
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m45s

This commit is contained in:
luo
2026-06-17 17:46:04 +08:00
parent 2a8f4e40d6
commit 85d158dfec
15 changed files with 300 additions and 8 deletions

View File

@@ -1219,6 +1219,8 @@
{ label: '设备类型', prop: 'device_type' },
{ label: '状态', prop: 'status' },
{ label: '状态名称', prop: 'status_name' },
{ label: '资产世代', prop: 'generation' },
{ label: '业务状态', prop: 'asset_status' },
{ label: '激活状态', prop: 'activation_status_name' },
{ label: '在线状态', prop: 'online_status' },
{ label: '实名策略', prop: 'realname_policy' },
@@ -1527,6 +1529,28 @@
width: 100,
formatter: (row: Device) => row.status_name || '-'
},
{
prop: 'generation',
label: '资产世代',
width: 100,
formatter: (row: Device) => row.generation ?? '-'
},
{
prop: 'asset_status',
label: '业务状态',
width: 100,
formatter: (row: Device) => {
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_name',
label: '激活状态',

View File

@@ -67,7 +67,8 @@
const getSceneName = (scene?: ExportTaskScene) => {
const sceneMap: Record<ExportTaskScene, string> = {
device: '设备管理',
iot_card: 'IoT卡管理'
iot_card: 'IoT卡管理',
order: '订单管理'
}
return scene ? sceneMap[scene] : '-'

View File

@@ -74,7 +74,8 @@
const sceneOptions = [
{ label: '设备管理', value: 'device' },
{ label: 'IoT卡管理', value: 'iot_card' }
{ label: 'IoT卡管理', value: 'iot_card' },
{ label: '订单管理', value: 'order' }
]
const statusOptions = [

View File

@@ -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: '激活状态',