Commit b30467db authored by wanglianghe's avatar wanglianghe

货架管理

parent 0397b3f9
import request from '@/utils/request'
// 创建货架
export function createShelf(data) {
return request({
url: '/ecw/shelf/create',
method: 'post',
data: data
})
}
// 更新货架
export function updateShelf(data) {
return request({
url: '/ecw/shelf/update',
method: 'put',
data: data
})
}
// 删除货架
export function deleteShelf(id) {
return request({
url: '/ecw/shelf/delete?id=' + id,
method: 'delete'
})
}
// 获得货架
export function getShelf(id) {
return request({
url: '/ecw/shelf/get?id=' + id,
method: 'get'
})
}
// 获得货架分页
export function getShelfPage(query) {
return request({
url: '/ecw/shelf/page',
method: 'get',
params: query
})
}
// 导出货架 Excel
export function exportShelfExcel(query) {
return request({
url: '/ecw/shelf/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
...@@ -43,6 +43,15 @@ export function getWarehousePage(query) { ...@@ -43,6 +43,15 @@ export function getWarehousePage(query) {
}) })
} }
// 获得仓库列表
export function getWarehouseList(query) {
return request({
url: '/ecw/warehouse/list',
method: 'get',
params: query
})
}
// 导出仓库 Excel // 导出仓库 Excel
export function exportWarehouseExcel(query) { export function exportWarehouseExcel(query) {
return request({ return request({
......
...@@ -171,7 +171,7 @@ export const constantRoutes = [ ...@@ -171,7 +171,7 @@ export const constantRoutes = [
path: 'warehouse', path: 'warehouse',
component: (resolve) => require(['@/views/ecw/warehouse/index'], resolve), component: (resolve) => require(['@/views/ecw/warehouse/index'], resolve),
name: 'warehouse', name: 'warehouse',
meta: {title: '网点仓库', activeMenu: '/config/node'} meta: {title: '网点仓库', activeMenu: '/warehouse/node'}
} }
] ]
}, },
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment