添加半成品页面进行数据
This commit is contained in:
@ -0,0 +1,45 @@
|
||||
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 }
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user