feat: 卡/设备是否有生效套餐
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m19s

This commit is contained in:
sexygoat
2026-05-19 15:14:39 +08:00
parent 14832f5c6f
commit 59167d2630
14 changed files with 3792 additions and 3963 deletions

View File

@@ -24,6 +24,8 @@ import type {
ImportIotCardResponse,
IotCardImportTask,
IotCardImportTaskDetail,
StandaloneCardQueryParams,
StandaloneIotCard,
BatchSetCardSeriesBindingRequest,
BatchSetCardSeriesBindingResponse
} from '@/types/api'
@@ -318,8 +320,10 @@ export class CardService extends BaseService {
* 获取单卡列表(未绑定设备)
* @param params 查询参数
*/
static getStandaloneIotCards(params?: any): Promise<PaginationResponse<any>> {
return this.getPage('/api/admin/iot-cards/standalone', params)
static getStandaloneIotCards(
params?: StandaloneCardQueryParams
): Promise<PaginationResponse<StandaloneIotCard>> {
return this.getPage<StandaloneIotCard>('/api/admin/iot-cards/standalone', params)
}
/**

View File

@@ -332,6 +332,9 @@ export enum StandaloneCardStatus {
// 单卡查询参数
export interface StandaloneCardQueryParams extends PaginationParams {
has_active_package?: boolean // has active package filter
carrier_name?: string // carrier name filter
is_standalone?: boolean // standalone filter
status?: StandaloneCardStatus // 状态
carrier_id?: number // 运营商ID
shop_id?: number // 分销商ID

View File

@@ -58,6 +58,7 @@ export interface Device {
// 设备查询参数
export interface DeviceQueryParams extends PaginationParams {
has_active_package?: boolean // has active package filter
virtual_no?: string // 虚拟号(模糊查询,原 device_no)
device_name?: string // 设备名称(模糊查询)
status?: DeviceStatus // 状态

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff