From 05095bd774631a680763fa94dd1e458f1fd8a801 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Tue, 14 Sep 2021 11:21:06 +0800
Subject: [PATCH] tijiso
---
hb_client/.env.development | 4 +-
hb_client/src/router/index.js | 22 +-
hb_client/src/views/em/detection.vue | 370 ++++++++++++++++++
.../{equipment/index.vue => em/equipment.vue} | 16 +-
hb_client/src/views/mtm/material.vue | 8 +
hb_client/src/views/sam/contract.vue | 62 ++-
.../em/migrations/0005_auto_20210914_1049.py | 38 ++
hb_server/apps/em/models.py | 21 +-
.../mtm/migrations/0013_auto_20210914_1049.py | 23 ++
hb_server/apps/mtm/models.py | 4 +-
10 files changed, 508 insertions(+), 60 deletions(-)
create mode 100644 hb_client/src/views/em/detection.vue
rename hb_client/src/views/{equipment/index.vue => em/equipment.vue} (98%)
create mode 100644 hb_server/apps/em/migrations/0005_auto_20210914_1049.py
create mode 100644 hb_server/apps/mtm/migrations/0013_auto_20210914_1049.py
diff --git a/hb_client/.env.development b/hb_client/.env.development
index ef83e12..003a43c 100644
--- a/hb_client/.env.development
+++ b/hb_client/.env.development
@@ -2,8 +2,8 @@
ENV = 'development'
# base api
-VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
-#VUE_APP_BASE_API = 'http://47.95.0.242:2222/api'
+#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
+VUE_APP_BASE_API = 'http://47.95.0.242:2222/api'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 8310390..2719050 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -124,22 +124,22 @@ export const asyncRoutes = [
]
},
{
- path: '/equipment',
+ path: '/em',
component: Layout,
- redirect: '/equipment/index',
- name: 'equipment',
+ redirect: '/em/equipment',
+ name: 'em',
meta: { title: '设备管理', icon: 'example', perms: ['equipment_set'] },
children: [
{
- path: 'index',
- name: 'index',
- component: () => import('@/views/equipment/index'),
+ path: 'equipment',
+ name: 'equipment',
+ component: () => import('@/views/em/equipment'),
meta: { title: '生产设备', icon: 'example', perms: ['index_manage'] }
},
{
- path: 'index',
- name: 'index',
- component: () => import('@/views/equipment/index'),
+ path: 'detection ',
+ name: 'detection ',
+ component: () => import('@/views/em/detection'),
meta: { title: '监视和测量设备', icon: 'example', perms: ['index_manage'] }
}
]
@@ -147,7 +147,7 @@ export const asyncRoutes = [
{
path: '/sam',
component: Layout,
- redirect: '/sam/index',
+ redirect: '/sam/customer',
name: 'sam',
meta: { title: '合同管理', icon: 'example', perms: ['equipment_set'] },
children: [
@@ -191,7 +191,7 @@ export const asyncRoutes = [
{
path: '/procurement',
component: Layout,
- redirect: '/procurement/index',
+ redirect: '/procurement/vendor',
name: 'procurement',
meta: { title: '采购管理', icon: 'example', perms: ['procurement_set'] },
children: [
diff --git a/hb_client/src/views/em/detection.vue b/hb_client/src/views/em/detection.vue
new file mode 100644
index 0000000..3badc6c
--- /dev/null
+++ b/hb_client/src/views/em/detection.vue
@@ -0,0 +1,370 @@
+
+
+
+
+
+ 搜索
+ 重置
+
+
+ 新增设备
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+ {{ scope.row.number }}
+
+
+ {{ scope.row.model }}
+
+
+ {{ type_[scope.row.type] }}
+
+
+ {{ scope.row.buy_date }}
+
+
+ {{ scope.row.belong_dept_.name }}
+
+
+ {{ scope.row.keeper_.username }}
+
+
+ {{ scope.row.place }}
+
+
+ {{ scope.row.description }}
+
+
+ {{ scope.row.create_time }}
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
diff --git a/hb_client/src/views/equipment/index.vue b/hb_client/src/views/em/equipment.vue
similarity index 98%
rename from hb_client/src/views/equipment/index.vue
rename to hb_client/src/views/em/equipment.vue
index 6feaa63..72948e8 100644
--- a/hb_client/src/views/equipment/index.vue
+++ b/hb_client/src/views/em/equipment.vue
@@ -114,24 +114,24 @@
:rules="rule1"
>
-
+
-
+
-
+
-
+
@@ -141,7 +141,7 @@
-
+
-
+
-
+
-
+
新增仓库新增客户
@@ -91,29 +91,30 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
+
-
+
@@ -125,45 +126,32 @@