feat: add BOM API and routing

Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
dxc
2026-02-12 09:43:51 +08:00
parent 04dd6fb3fa
commit 5245ee2da3
2 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,35 @@
import request from '@/utils/request'
// 获取BOM列表
export function getBomList(params?: any) {
return request({
url: '/v1/bom/list',
method: 'get',
params
})
}
// 获取BOM详情
export function getBomDetail(bomNo: string) {
return request({
url: `/v1/bom/detail/${bomNo}`,
method: 'get'
})
}
// 保存BOM
export function saveBom(data: any) {
return request({
url: '/v1/bom/save',
method: 'post',
data
})
}
// 删除BOM暂未实现预留
export function deleteBom(bomNo: string) {
return request({
url: `/v1/bom/${bomNo}`,
method: 'delete'
})
}