feat(bom): 前端 BOM API——候选版本、独立启停、物料搜索支持公司
- bom.ts 新增 getChildBomVersions(候选版本) 与 updateBomStatus(独立启停) - inbound/buy.ts searchMaterialBase 增加可选 company 参数(跨域按公司过滤)
This commit is contained in:
@ -43,12 +43,14 @@ export function getFilterOptions() {
|
||||
})
|
||||
}
|
||||
|
||||
// 6. 搜索基础物料
|
||||
export function searchMaterialBase(keyword: string, page: number = 1) {
|
||||
// 6. 搜索基础物料(company 可选:跨域下按公司过滤;不传则由后端按当前用户公司隔离)
|
||||
export function searchMaterialBase(keyword: string, page: number = 1, company?: string) {
|
||||
const params: any = { keyword, page }
|
||||
if (company) params.company_name = company
|
||||
return request({
|
||||
url: '/inbound/buy/search-base',
|
||||
method: 'get',
|
||||
params: { keyword, page }
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user