半成品/成品入库:BOM 编号下拉按父件规格联动过滤(前后端双端改造)
- 后端 /inbound/{semi,product}/search-bom 增加 parent_spec 可选参数,Service 层在 MaterialBase.spec_model 上加等值过滤
This commit is contained in:
@ -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 }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -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 }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user