Files
KCGL/inventory-web/src/api/inbound/semi.ts
2026-01-28 17:44:39 +08:00

45 lines
917 B
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 }
})
}