81 lines
1.5 KiB
JavaScript
81 lines
1.5 KiB
JavaScript
import request from '@/router/axios'
|
|
|
|
export function fetchList(query) {
|
|
return request({
|
|
url: '/wms/wms-storage-location/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
export function getStorageLocationPageBycode(str) {
|
|
return request({
|
|
url: '/wms/wms-storage-location/getStorageLocationPageBycode',
|
|
method: 'get',
|
|
params: str
|
|
})
|
|
}
|
|
|
|
export function addObj(obj) {
|
|
return request({
|
|
url: '/wms/wms-storage-location',
|
|
method: 'post',
|
|
data: obj
|
|
})
|
|
}
|
|
|
|
export function getObj(id) {
|
|
return request({
|
|
url: '/wms/wms-storage-location/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export function delObj(id) {
|
|
return request({
|
|
url: '/wms/wms-storage-location/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
export function putObj(obj) {
|
|
return request({
|
|
url: '/wms/wms-storage-location',
|
|
method: 'put',
|
|
data: obj
|
|
})
|
|
}
|
|
|
|
export function labelPrint(printList) {
|
|
return request({
|
|
url: '/wms/wms-storage-location/by-labelRePrint',
|
|
method: 'post',
|
|
data: printList
|
|
})
|
|
}
|
|
|
|
export function getStorageBin(storageLocation) {
|
|
return request({
|
|
url: '/wms/wms-storage-location/getStorageBin/' + storageLocation,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export function updateBatchById(obj) {
|
|
return request({
|
|
url: '/wms/wms-storage-location/updateBatchById',
|
|
method: 'put',
|
|
data: obj
|
|
})
|
|
}
|
|
|
|
export function getDefaultLocationsMap(erpStorageLocationList) {
|
|
return request({
|
|
url: '/wms/wms-storage-location/getDefaultLocationsMap/',
|
|
method: 'get',
|
|
params: {
|
|
erpStorageLocationList: erpStorageLocationList
|
|
}
|
|
});
|
|
}
|