From 8a27610586c3dcc4e5314f829bba54496aa06aca Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Thu, 16 Sep 2021 10:21:54 +0800
Subject: [PATCH] zhiliangguanli
---
hb_client/src/api/qm.js | 59 ++++++
hb_client/src/router/index.js | 18 +-
hb_client/src/views/qm/standard.vue | 286 ++++++++++++++++++++++++++++
hb_client/src/views/qm/testitem.vue | 258 +++++++++++++++++++++++++
4 files changed, 612 insertions(+), 9 deletions(-)
create mode 100644 hb_client/src/api/qm.js
create mode 100644 hb_client/src/views/qm/standard.vue
create mode 100644 hb_client/src/views/qm/testitem.vue
diff --git a/hb_client/src/api/qm.js b/hb_client/src/api/qm.js
new file mode 100644
index 0000000..b362dce
--- /dev/null
+++ b/hb_client/src/api/qm.js
@@ -0,0 +1,59 @@
+import request from '@/utils/request'
+//标准规范
+export function getStandardList(query) {
+ return request({
+ url: '/qm/standard/',
+ method: 'get',
+ params: query
+ })
+}
+export function createStandard(data) {
+ return request({
+ url: '/qm/standard/',
+ method: 'post',
+ data
+ })
+}
+export function updateStandard(id, data) {
+ return request({
+ url: `/qm/standard/${id}/`,
+ method: 'put',
+ data
+ })
+}
+export function deleteStandard(id, data) {
+ return request({
+ url: `/qm/standard/${id}/`,
+ method: 'delete',
+ data
+ })
+}
+//检测项目
+export function getTestitemList(query) {
+ return request({
+ url: '/qm/testitem/',
+ method: 'get',
+ params: query
+ })
+}
+export function createTestitem(data) {
+ return request({
+ url: '/qm/testitem/',
+ method: 'post',
+ data
+ })
+}
+export function updateTestitem(id, data) {
+ return request({
+ url: `/qm/testitem/${id}/`,
+ method: 'put',
+ data
+ })
+}
+export function deleteTestitem(id, data) {
+ return request({
+ url: `/qm/testitem/${id}/`,
+ method: 'delete',
+ data
+ })
+}
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 45838b2..d2325df 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -179,22 +179,22 @@ export const asyncRoutes = [
}
,
{
- path: '/sam',
+ path: '/qm',
component: Layout,
- redirect: '/sam/customer',
- name: 'sam',
+ redirect: '/qm/standard',
+ name: 'qm',
meta: { title: '质量管理', icon: 'example', perms: ['equipment_set'] },
children: [
{
- path: 'customer',
- name: 'customer',
- component: () => import('@/views/sam/customer'),
+ path: 'standard',
+ name: 'standard',
+ component: () => import('@/views/qm/standard'),
meta: { title: '标准', icon: 'example', perms: ['index_manage'] }
},
{
- path: 'contract',
- name: 'contract',
- component: () => import('@/views/sam/contract'),
+ path: 'testitem',
+ name: 'testitem',
+ component: () => import('@/views/qm/testitem'),
meta: { title: '检测项目', icon: 'example', perms: ['index_manage'] }
}
]
diff --git a/hb_client/src/views/qm/standard.vue b/hb_client/src/views/qm/standard.vue
new file mode 100644
index 0000000..ffd426d
--- /dev/null
+++ b/hb_client/src/views/qm/standard.vue
@@ -0,0 +1,286 @@
+
+
+
+
+
+ 搜索
+ 重置
+
+
+ 新增标准
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+ {{ scope.row.number }}
+
+
+
+ 是
+ 否
+
+
+
+
+ {{scope.row.file_.name}}
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上传文件
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
diff --git a/hb_client/src/views/qm/testitem.vue b/hb_client/src/views/qm/testitem.vue
new file mode 100644
index 0000000..1c92b00
--- /dev/null
+++ b/hb_client/src/views/qm/testitem.vue
@@ -0,0 +1,258 @@
+
+
+
+
+
+ 搜索
+ 重置
+
+
+ 新增项目
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+ {{ scope.row.term_number }}
+
+
+ {{ scope.row.standard_.name }}
+
+
+ {{ scope.row.standard_.number }}
+
+
+
+ {{ scope.row.create_time }}
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+