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:
@@ -63,6 +63,14 @@ export interface SimCardProduct {
|
||||
updateTime?: string
|
||||
}
|
||||
|
||||
// 网卡业务状态枚举
|
||||
export enum AssetStatus {
|
||||
IN_STOCK = 1, // 在库
|
||||
SOLD = 2, // 已销售
|
||||
REPLACED = 3, // 已换货
|
||||
DISABLED = 4 // 已停用
|
||||
}
|
||||
|
||||
// 网卡实体
|
||||
export interface Card {
|
||||
id: string | number
|
||||
@@ -73,6 +81,9 @@ export interface Card {
|
||||
networkType: NetworkType
|
||||
cardType: CardType
|
||||
status: CardStatus
|
||||
generation?: number // 资产世代编号(初始值1,每次换货转新后+1)
|
||||
asset_status?: AssetStatus // 业务状态 (1:在库, 2:已销售, 3:已换货, 4:已停用)
|
||||
asset_status_name?: string // 业务状态名称(中文)
|
||||
// 关联信息
|
||||
productId?: string | number // 关联商品ID
|
||||
productName?: string
|
||||
@@ -369,6 +380,9 @@ export interface StandaloneIotCard {
|
||||
activation_status: number // 激活状态 (0:未激活, 1:已激活)
|
||||
network_status: number // 网络状态 (0:停机, 1:开机)
|
||||
real_name_status: number // 实名状态 (0:未实名, 1:已实名)
|
||||
generation?: number // 资产世代编号(初始值1,每次换货转新后+1)
|
||||
asset_status?: AssetStatus // 业务状态 (1:在库, 2:已销售, 3:已换货, 4:已停用)
|
||||
asset_status_name?: string // 业务状态名称(中文)
|
||||
batch_no?: string // 批次号 (可选)
|
||||
supplier?: string // 供应商 (可选)
|
||||
shop_id?: number | null // 店铺ID (可选)
|
||||
@@ -515,6 +529,9 @@ export interface IotCardDetailResponse {
|
||||
activation_status: number // 激活状态 (0:未激活, 1:已激活)
|
||||
network_status: number // 网络状态 (0:停机, 1:开机)
|
||||
real_name_status: number // 实名状态 (0:未实名, 1:已实名)
|
||||
generation?: number // 资产世代编号(初始值1,每次换货转新后+1)
|
||||
asset_status?: AssetStatus // 业务状态 (1:在库, 2:已销售, 3:已换货, 4:已停用)
|
||||
asset_status_name?: string // 业务状态名称(中文)
|
||||
batch_no: string // 批次号
|
||||
supplier: string // 供应商
|
||||
shop_id: number | null // 店铺ID
|
||||
|
||||
@@ -14,6 +14,14 @@ export enum DeviceStatus {
|
||||
DEACTIVATED = 4 // 已停用
|
||||
}
|
||||
|
||||
// 设备业务状态枚举
|
||||
export enum DeviceAssetStatus {
|
||||
IN_STOCK = 1, // 在库
|
||||
SOLD = 2, // 已销售
|
||||
REPLACED = 3, // 已换货
|
||||
DISABLED = 4 // 已停用
|
||||
}
|
||||
|
||||
// 设备在线状态枚举
|
||||
export enum DeviceOnlineStatus {
|
||||
UNKNOWN = 0, // 未知
|
||||
@@ -38,6 +46,9 @@ export interface Device {
|
||||
bound_card_count: number // 已绑定卡数量
|
||||
status: DeviceStatus // 状态 (1:在库, 2:已分销, 3:已激活, 4:已停用)
|
||||
status_name: string // 状态名称
|
||||
generation?: number // 资产世代编号(初始值1,每次换货转新后+1)
|
||||
asset_status?: DeviceAssetStatus // 业务状态 (1:在库, 2:已销售, 3:已换货, 4:已停用)
|
||||
asset_status_name?: string // 业务状态名称(中文)
|
||||
shop_id: number | null // 店铺ID
|
||||
shop_name: string // 店铺名称
|
||||
batch_no: string // 批次号
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { BaseResponse, PaginationParams } from './common'
|
||||
|
||||
export type ExportTaskScene = 'device' | 'iot_card'
|
||||
export type ExportTaskScene = 'device' | 'iot_card' | 'order'
|
||||
|
||||
export type ExportTaskFormat = 'xlsx' | 'csv'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user