feat: BOM 库存接口支持按版本查询,修复同一编号多版本下拉回显错乱
This commit is contained in:
@ -19,12 +19,13 @@ export function getBomSummary(params?: { keyword?: string }) {
|
||||
}
|
||||
|
||||
// 获取BOM详情(含库存信息)
|
||||
export function getBomWithStock(bomNo: string) {
|
||||
export function getBomWithStock(bomNo: string, version?: string) {
|
||||
const trimmed = bomNo.replace(/^\/+|\/+$/g, '');
|
||||
const encoded = encodeURIComponent(trimmed);
|
||||
return request({
|
||||
url: `/v1/bom/stock/${encoded}`,
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
params: version ? { version } : {}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user