feat(analytics): 规格型号带物料名 + 设备字典(/options 数据契约扩展)
- 后端新增 SpecModelOption/DeviceOption schema - get_analytics_options 返回规格型号的物料名(同型号取首个非空名)+ 关联设备列表 - 前端同步 SpecModelOption/DeviceOption 类型
This commit is contained in:
@ -71,9 +71,22 @@ export interface AssigneeOption {
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface SpecModelOption {
|
||||
spec_model: string;
|
||||
material_name: string;
|
||||
}
|
||||
|
||||
export interface DeviceOption {
|
||||
product_sn: string;
|
||||
external_serial: string | null;
|
||||
material_name: string;
|
||||
spec_model: string;
|
||||
}
|
||||
|
||||
export interface AnalyticsOptions {
|
||||
assignees: AssigneeOption[];
|
||||
spec_models: string[];
|
||||
spec_models: SpecModelOption[];
|
||||
devices: DeviceOption[];
|
||||
}
|
||||
|
||||
// ─── 查询参数 ──────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user