Files
KCGL/inventory-web/src/api/inbound/semi.ts
dxc 9f0134b2e4 feat: add material search filters to semi, product, service modules
Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
2026-02-11 14:42:16 +08:00

63 lines
1.2 KiB
TypeScript

import request from '@/utils/request'
// 1. 获取列表
export function getSemiList(params: any) {
return request({
url: '/inbound/semi/list',
method: 'get',
params
})
}
// 2. 新增入库
export function createSemiInbound(data: any) {
return request({
url: '/inbound/semi/submit',
method: 'post',
data
})
}
// 3. 更新入库
export function updateSemiInbound(id: number, data: any) {
return request({
url: `/inbound/semi/${id}`,
method: 'put',
data
})
}
// 4. 删除入库
export function deleteSemiInbound(id: number) {
return request({
url: `/inbound/semi/${id}`,
method: 'delete'
})
}
// 5. 搜索基础物料
export function searchMaterialBase(keyword: string) {
return request({
url: '/inbound/semi/search-base',
method: 'get',
params: { keyword }
})
}
// 用户建议
export function getUserSuggestions(params: any) {
return request({
url: '/inbound/semi/suggestions/users',
method: 'get',
params
})
}
// 筛选选项
export function getFilterOptions() {
return request({
url: '/inbound/semi/options',
method: 'get'
})
}