半成品/成品入库:BOM 编号下拉按父件规格联动过滤(前后端双端改造)

- 后端 /inbound/{semi,product}/search-bom 增加 parent_spec 可选参数,Service 层在 MaterialBase.spec_model 上加等值过滤
This commit is contained in:
DXC
2026-06-04 16:01:48 +08:00
parent 332ae3c4cf
commit 8a2da1ac1e
8 changed files with 36 additions and 18 deletions

View File

@ -43,11 +43,11 @@ export function searchMaterialBase(keyword: string, page: number = 1) {
}
// 搜索BOM
export function searchBom(keyword: string) {
export function searchBom(keyword: string, parent_spec?: string) {
return request({
url: '/inbound/product/search-bom',
method: 'get',
params: { keyword }
params: { keyword, parent_spec }
})
}

View File

@ -45,11 +45,11 @@ export function searchMaterialBase(keyword: string, page: number = 1) {
}
// 5.5 搜索BOM (新增)
export function searchBom(keyword: string) {
export function searchBom(keyword: string, parent_spec?: string) {
return request({
url: '/inbound/semi/search-bom',
method: 'get',
params: { keyword }
params: { keyword, parent_spec }
})
}