mt-ck-wms-ui/src/api/basicData/Cache/storageBox.js
2022-01-13 10:45:55 +08:00

71 lines
1.5 KiB
JavaScript

/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2022-01-11 16:43:22
* @Description:
*/
import request from '@/utils/request'
export function storageBoxList(data) { // 获取存储箱列表
return request({
url: '/api/wms/storagebox/page',
method: 'post',
data
})
}
export function storageBoxDetail(id) { // 获取存储箱单条数据
return request({
url: '/api/wms/storagebox/getById',
method: 'post',
data: { id }
})
}
export function storageBoxUpdate(data) { // 更新存储箱单条数据
return request({
url: '/api/wms/storagebox/update',
method: 'post',
data
})
}
export function storageBoxAdd(data) { // 新增存储箱单条数据
return request({
url: '/api/wms/storagebox/add',
method: 'post',
data
})
}
export function storageBoxCode() { // 获取存储箱code
return request({
url: '/api/wms/storagebox/get-code',
method: 'post'
})
}
export function storageBoxDelete(id) { // 删除存储箱单条数据
return request({
url: '/api/wms/storagebox/delete',
method: 'post',
data: { id }
})
}
export function PositionDetailInfoAdd(data) { // 新增存储箱地址单条数据
return request({
url: '/api/wms/storagebox-site/add',
method: 'post',
data
})
}
export function PositionDetailInfoList(data) { // 获取存储箱地址列表
return request({
url: '/api/wms/storagebox-site/page',
method: 'post',
data
})
}