diff --git a/hb_client/src/api/inm.js b/hb_client/src/api/inm.js new file mode 100644 index 0000000..3258078 --- /dev/null +++ b/hb_client/src/api/inm.js @@ -0,0 +1,30 @@ +import request from '@/utils/request' + +export function getWarehouseList(query) { + return request({ + url: '/inm/warehouse/', + method: 'get', + params: query + }) +} +export function createWarehouse(data) { + return request({ + url: '/inm/warehouse/', + method: 'post', + data + }) +} +export function updateWarehouse(id, data) { + return request({ + url: `/inm/warehouse/${id}/`, + method: 'put', + data + }) +} +export function deleteWarehouse(id, data) { + return request({ + url: `/inm/warehouse/${id}/`, + method: 'delete', + data + }) +} diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index 924dfbc..309d736 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -87,6 +87,12 @@ export const asyncRoutes = [ name: 'equipment', meta: { title: '设备管理', icon: 'example', perms: ['equipment_set'] }, children: [ + { + path: 'index', + name: 'index', + component: () => import('@/views/equipment/index'), + meta: { title: '设备台账', icon: 'example', perms: ['index_manage'] } + }, { path: 'index', name: 'index', @@ -95,14 +101,34 @@ export const asyncRoutes = [ } ] }, - + { + path: '/inm', + component: Layout, + redirect: '/inm/warehouse', + name: 'inm', + meta: { title: '库存管理', icon: 'example', perms: ['equipment_set'] }, + children: [ + { + path: 'warehouse', + name: 'warehouse', + component: () => import('@/views/inm/warehouse'), + meta: { title: '仓库', icon: 'example', perms: ['index_manage'] } + }, + { + path: 'warehouse', + name: 'warehouse', + component: () => import('@/views/inm/warehouse'), + meta: { title: '仓库', icon: 'example', perms: ['index_manage'] } + } + ] + }, { path: '/mtm', component: Layout, redirect: '/mtm/material/', name: 'mtm', - meta: { title: '制造技术管理', icon: 'example', perms: ['procurement_set'] }, + meta: { title: '制造管理', icon: 'example', perms: ['procurement_set'] }, children: [ { path: 'material', @@ -147,6 +173,12 @@ export const asyncRoutes = [ name: 'procurement', meta: { title: '采购管理', icon: 'example', perms: ['procurement_set'] }, children: [ + { + path: 'vendor', + name: 'vendor', + component: () => import('@/views/procurement/vendor'), + meta: { title: '供应商', icon: 'example', perms: ['vendor_manage'] } + }, { path: 'vendor', name: 'vendor', diff --git a/hb_client/src/views/inm/warehouse.vue b/hb_client/src/views/inm/warehouse.vue new file mode 100644 index 0000000..a7c9e23 --- /dev/null +++ b/hb_client/src/views/inm/warehouse.vue @@ -0,0 +1,248 @@ + +