72 lines
1.7 KiB
TypeScript
72 lines
1.7 KiB
TypeScript
import request from '@/utils/request'
|
|
|
|
const v = "1.0"
|
|
|
|
export function getEntryList(data:any): Promise<any> {
|
|
return request({
|
|
url: '/system',
|
|
method: 'post',
|
|
params: {
|
|
method: 'storage.entry.list',
|
|
v,
|
|
timestamp: new Date().getTime()
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function getEntryDetail(data:any): Promise<any> {
|
|
return request({
|
|
url: '/system',
|
|
method: 'post',
|
|
params: {
|
|
method: 'storage.entry.get',
|
|
v,
|
|
timestamp: new Date().getTime()
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function cancelEntry(data:any): Promise<any> {
|
|
return request({
|
|
url: '/system',
|
|
method: 'post',
|
|
params: {
|
|
method: 'storage.entry.cancel',
|
|
v,
|
|
timestamp: new Date().getTime()
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function completeEntry(data:any): Promise<any> {
|
|
return request({
|
|
url: '/system',
|
|
method: 'post',
|
|
params: {
|
|
method: 'storage.entry.completeEntry',
|
|
v,
|
|
timestamp: new Date().getTime()
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 废弃接口,不再使用
|
|
export function createEntry(data:any): Promise<any> {
|
|
return Promise.reject(new Error('storage.entry.create 已下线,请使用 quickPutaway / matchPutaway 流程'))
|
|
}
|
|
|
|
export function addDetail(data:any): Promise<any> {
|
|
return Promise.reject(new Error('storage.entry.addDetail 已下线,入库单明细不再对外编辑'))
|
|
}
|
|
|
|
export function deleteDetail(data:any): Promise<any> {
|
|
return Promise.reject(new Error('storage.entry.deleteDetail 已下线,入库单明细不再对外编辑'))
|
|
}
|
|
|
|
export function detailChange(data:any): Promise<any> {
|
|
return Promise.reject(new Error('storage.entry.detailChange 已下线,入库单明细不再对外编辑'))
|
|
} |