You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
2.4 KiB
JavaScript
126 lines
2.4 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询库位列表
|
|
export function listWmslocation(query) {
|
|
return request({
|
|
url: '/wms/wmslocation/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询库位详细
|
|
export function getWmslocation(locationId) {
|
|
return request({
|
|
url: '/wms/wmslocation/' + locationId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增库位
|
|
export function addWmslocation(data) {
|
|
return request({
|
|
url: '/wms/wmslocation',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改库位
|
|
export function updateWmslocation(data) {
|
|
return request({
|
|
url: '/wms/wmslocation',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除库位
|
|
export function delWmslocation(locationId) {
|
|
return request({
|
|
url: '/wms/wmslocation/' + locationId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 查询仓库列表
|
|
export function getWarehouses(query) {
|
|
return request({
|
|
url: '/wms/wmslocation/getWarehouses',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
|
|
// 锁定库位
|
|
export function lockWmslocation(locationId) {
|
|
return request({
|
|
url: '/wms/wmslocation/lockWmsLocation/' + locationId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 解锁库位
|
|
export function unlockWmslocation(locationId) {
|
|
return request({
|
|
url: '/wms/wmslocation/unlockWmsLocation/' + locationId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// 打印库位条码
|
|
export function printLocationLabels(locationId) {
|
|
return request({
|
|
url: '/wms/wmslocation/printLocationLabels/' + locationId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
|
|
// 打印料箱条码
|
|
export function printContainerLabels(locationId) {
|
|
return request({
|
|
url: '/wms/wmslocation/printContainerLabels/' + locationId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 查询条码信息列表
|
|
export function selectBarCodeAllocationWarehouse(query) {
|
|
return request({
|
|
url: '/mes/barcode/selectBarCodeAllocationWarehouse',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询库位已关联条码信息列表
|
|
export function selectWarehouseBarCodeList(query) {
|
|
return request({
|
|
url: '/mes/barcode/selectWarehouseBarCodeList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 保存库位关联的条码信息列表
|
|
export function allocateBarCodes(data) {
|
|
return request({
|
|
url: '/wms/wmslocation/allocateBarCodes',
|
|
method: 'put',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 删除库位分配的条码信息列表
|
|
export function unallocateBarCodes(data) {
|
|
return request({
|
|
url: '/wms/wmslocation/unallocateBarCodes',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|