feat(bom): 归档业务闭环——状态筛选+归档/取消归档入口
- get_bom_list/get_bom_summary 状态过滤支持 archived,enabled 语义改为“启用且未归档” - get_bom_list 输出补 is_archived;新增 update_archived 与 POST /bom/archive(整组切换归档、清缓存、审计) - “未指定版本自动取最新”硬化为仅认启用且未归档(get_bom_detail / get_bom_no_by_parent) - 前端:状态按钮组加“归档”;列表状态列区分归档;操作列加“归档/取消归档”按钮
This commit is contained in:
@ -61,6 +61,15 @@ export function updateBomStatus(data: { bom_no: string; version: string; is_enab
|
||||
})
|
||||
}
|
||||
|
||||
// 归档/取消归档(仍启用可编辑,但不再作为其它 BOM 子件的引用候选)
|
||||
export function updateBomArchive(data: { bom_no: string; version: string; is_archived: boolean }) {
|
||||
return request({
|
||||
url: '/v1/bom/archive',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 保存BOM
|
||||
export function saveBom(data: any) {
|
||||
return request({
|
||||
|
||||
Reference in New Issue
Block a user