feat:更换企业授权
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m41s

This commit is contained in:
luo
2026-06-22 10:36:33 +08:00
parent 866a2587b3
commit d3b5f55c64
34 changed files with 2478 additions and 3335 deletions

View File

@@ -347,6 +347,9 @@ export interface StandaloneCardQueryParams extends PaginationParams {
carrier_name?: string // carrier name filter
is_standalone?: boolean // standalone filter
status?: StandaloneCardStatus // 状态
network_status?: number | null // 网络状态 (0:停机, 1:开机)
authorized_enterprise_id?: number // 有效授权企业ID
is_authorized_to_enterprise?: boolean | null // 是否已授权给企业
carrier_id?: number // 运营商ID
shop_id?: number // 分销商ID
iccid?: string // ICCID(模糊查询)
@@ -404,6 +407,8 @@ export interface StandaloneIotCard {
series_id: number | null // 套餐系列ID
series_name: string // 套餐系列名称
realname_policy: string // 实名制策略
authorized_enterprise_id?: number | null // 当前有效授权企业ID
authorized_enterprise_name?: string | null // 当前有效授权企业名称
}
// ========== 单卡批量分配和回收相关 ==========

View File

@@ -310,6 +310,7 @@ export interface MainWalletTransactionQueryParams extends PaginationParams {
transaction_type?: MainWalletTransactionType // 交易类型过滤
start_date?: string // 开始日期 YYYY-MM-DD
end_date?: string // 结束日期 YYYY-MM-DD
asset_identifier?: string // 资产标识精确检索ICCID 或设备虚拟号)
}
/**

View File

@@ -65,6 +65,8 @@ export interface Device {
imei?: string // IMEI设备国际移动设备识别码
sn?: string // 设备序列号
realname_policy?: string // 实名认证策略
authorized_enterprise_id?: number | null // 当前有效授权企业ID
authorized_enterprise_name?: string | null // 当前有效授权企业名称
}
// 设备查询参数
@@ -81,6 +83,8 @@ export interface DeviceQueryParams extends PaginationParams {
created_at_end?: string // 创建时间结束
series_id?: number // 套餐系列ID
keyword?: string // 关键词搜索虚拟号或IMEI
authorized_enterprise_id?: number // 有效授权企业ID
is_authorized_to_enterprise?: boolean | null // 是否已授权给企业
}
// 设备列表响应

View File

@@ -30,8 +30,26 @@ export interface AllocatedDevice {
* 授权卡给企业请求
*/
export interface AllocateCardsRequest {
/** 卡片选取方式 */
selection_type?: 'list' | 'range' | 'filter'
/** 需要授权的 ICCID 列表 */
iccids: string[]
iccids?: string[]
/** 起始 ICCID */
iccid_start?: string
/** 结束 ICCID */
iccid_end?: string
/** 运营商ID */
carrier_id?: number
/** 单个店铺ID */
shop_id?: number
/** 多个店铺ID */
shop_ids?: number[]
/** 批次号 */
batch_no?: string
/** ICCID模糊匹配 */
iccid?: string
/** 授权备注 */
remark?: string
/** 确认整体授权设备下所有卡 */
confirm_device_bundles?: boolean
}
@@ -212,8 +230,22 @@ export interface RecalledDevice {
* 回收卡授权请求
*/
export interface RecallCardsRequest {
/** 卡片选取方式 */
selection_type?: 'list' | 'range' | 'filter'
/** 需要回收授权的 ICCID 列表 */
iccids: string[]
iccids?: string[]
/** 起始 ICCID */
iccid_start?: string
/** 结束 ICCID */
iccid_end?: string
/** 运营商ID */
carrier_id?: number
/** 批次号 */
batch_no?: string
/** ICCID模糊匹配 */
iccid?: string
/** 回收备注 */
remark?: string
}
/**

View File

@@ -38,8 +38,12 @@ export interface EnterpriseDevicePageResult {
/**
* 授权设备请求参数
*/
export interface AllocateDevicesRequest {
device_nos: string[] | null // 设备号列表最多100个
export interface EnterpriseAllocateDevicesRequest {
selection_type?: 'list' | 'filter' // 设备选取方式
device_nos?: string[] | null // 设备号列表最多100个
batch_no?: string // 批次号
shop_id?: number // 店铺ID
virtual_no?: string // 设备虚拟号模糊匹配
remark?: string // 授权备注
}
@@ -63,7 +67,7 @@ export interface FailedDeviceItem {
/**
* 授权设备响应
*/
export interface AllocateDevicesResponse {
export interface EnterpriseAllocateDevicesResponse {
success_count: number // 成功数量
fail_count: number // 失败数量
authorized_devices: AuthorizedDeviceItem[] | null // 已授权设备列表
@@ -75,14 +79,17 @@ export interface AllocateDevicesResponse {
/**
* 撤销设备授权请求参数
*/
export interface RecallDevicesRequest {
device_nos: string[] | null // 设备号列表最多100个
export interface EnterpriseRecallDevicesRequest {
selection_type?: 'list' | 'filter' // 设备选取方式
device_nos?: string[] | null // 设备号列表最多100个
batch_no?: string // 批次号
virtual_no?: string // 设备虚拟号模糊匹配
}
/**
* 撤销设备授权响应
*/
export interface RecallDevicesResponse {
export interface EnterpriseRecallDevicesResponse {
success_count: number // 成功数量
fail_count: number // 失败数量
failed_items: FailedDeviceItem[] | null // 失败项列表

View File

@@ -47,6 +47,7 @@ export interface RefundQueryParams {
order_id?: number
shop_id?: number
shop_name?: string // 店铺名称(模糊查询)
asset_identifier?: string // 资产标识ICCID 或 设备虚拟号,精确匹配)
dateRange?: string[]
}

View File

@@ -155,6 +155,7 @@ declare module 'vue' {
TableContextMenuHint: typeof import('./../components/core/others/TableContextMenuHint.vue')['default']
ThemeSettings: typeof import('./../components/core/layouts/art-settings-panel/widget/ThemeSettings.vue')['default']
UpdateRealnameStatusDialog: typeof import('./../components/business/UpdateRealnameStatusDialog.vue')['default']
VoucherUpload: typeof import('./../components/business/VoucherUpload.vue')['default']
}
export interface ComponentCustomProperties {
vLoading: typeof import('element-plus/es')['ElLoadingDirective']