From a7efe58a789820ce711b5da54feeac6434cf69e7 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Fri, 3 Sep 2021 14:18:25 +0800
Subject: [PATCH] TIJIAO
---
hb_client/src/api/inm.js | 30 ++++
hb_client/src/router/index.js | 36 +++-
hb_client/src/views/inm/warehouse.vue | 248 ++++++++++++++++++++++++++
3 files changed, 312 insertions(+), 2 deletions(-)
create mode 100644 hb_client/src/api/inm.js
create mode 100644 hb_client/src/views/inm/warehouse.vue
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 @@
+
+
+
+
+
+ 搜索
+ 重置
+
+
+ 新增设备
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+ {{ scope.row.number }}
+
+
+ {{ scope.row.place }}
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+