85 lines
1.7 KiB
JavaScript
85 lines
1.7 KiB
JavaScript
|
/*
|
||
|
* @Author: zwq
|
||
|
* @Date: 2023-11-02 16:20:15
|
||
|
* @LastEditors: zwq
|
||
|
* @LastEditTime: 2024-08-08 15:56:30
|
||
|
* @Description:
|
||
|
*/
|
||
|
import request from '@/utils/request'
|
||
|
|
||
|
// 创建库位设置
|
||
|
export function createWarehouseLocation(data) {
|
||
|
return request({
|
||
|
url: '/extend/warehouse-location/create',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 更新库位设置
|
||
|
export function updateWarehouseLocation(data) {
|
||
|
return request({
|
||
|
url: '/extend/warehouse-location/update',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除库位设置
|
||
|
export function deleteWarehouseLocation(id) {
|
||
|
return request({
|
||
|
url: '/extend/warehouse-location/delete?id=' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得库位设置
|
||
|
export function getWarehouseLocation(id) {
|
||
|
return request({
|
||
|
url: '/extend/warehouse-location/get?id=' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得库位设置列表
|
||
|
export function getWarehouseLocationTree() {
|
||
|
return request({
|
||
|
url: '/extend/warehouse-location/getTree',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得库位设置列表
|
||
|
export function getWarehouseLocationList() {
|
||
|
return request({
|
||
|
url: '/extend/warehouse-location/listAll',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得库位设置分页
|
||
|
export function getWarehouseLocationPage(data) {
|
||
|
return request({
|
||
|
url: '/extend/warehouse-location/page',
|
||
|
method: 'POST',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得code
|
||
|
export function getCode() {
|
||
|
return request({
|
||
|
url: '/extend/warehouse-location/getCode',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
// 导出库位设置 Excel
|
||
|
export function exportWarehouseLocationExcel(query) {
|
||
|
return request({
|
||
|
url: '/extend/warehouse-location/export-excel',
|
||
|
method: 'get',
|
||
|
params: query,
|
||
|
responseType: 'blob'
|
||
|
})
|
||
|
}
|