From 51bb9402270ad3a98006645c24017a5b9d528ab2 Mon Sep 17 00:00:00 2001 From: shaoyong Date: Tue, 2 Jan 2024 18:03:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=96=B9=E6=A1=88=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/quality/qcProjectType.js | 44 ++ src/api/quality/qcSampleRule.js | 44 ++ src/router/index.js | 14 + src/views/quality/project/index.vue | 57 ++- src/views/quality/project/projectType.vue | 346 +++++++++++++++ src/views/quality/qcProduce/index.vue | 4 +- src/views/quality/qcProjectType/data.vue | 507 ++++++++++++++++++++++ src/views/quality/qcProjectType/index.vue | 277 ++++++++++++ src/views/quality/qcSampleRule/index.vue | 360 +++++++++++++++ 9 files changed, 1649 insertions(+), 4 deletions(-) create mode 100644 src/api/quality/qcProjectType.js create mode 100644 src/api/quality/qcSampleRule.js create mode 100644 src/views/quality/project/projectType.vue create mode 100644 src/views/quality/qcProjectType/data.vue create mode 100644 src/views/quality/qcProjectType/index.vue create mode 100644 src/views/quality/qcSampleRule/index.vue diff --git a/src/api/quality/qcProjectType.js b/src/api/quality/qcProjectType.js new file mode 100644 index 0000000..a826823 --- /dev/null +++ b/src/api/quality/qcProjectType.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询检验方案维护列表 +export function listQcProjectType(query) { + return request({ + url: '/quality/qcProjectType/list', + method: 'get', + params: query + }); +} + +// 查询检验方案维护详细 +export function getQcProjectType(id) { + return request({ + url: '/quality/qcProjectType/' + id, + method: 'get' + }); +} + +// 新增检验方案维护 +export function addQcProjectType(data) { + return request({ + url: '/quality/qcProjectType', + method: 'post', + data: data + }); +} + +// 修改检验方案维护 +export function updateQcProjectType(data) { + return request({ + url: '/quality/qcProjectType', + method: 'put', + data: data + }); +} + +// 删除检验方案维护 +export function delQcProjectType(id) { + return request({ + url: '/quality/qcProjectType/' + id, + method: 'delete' + }); +} diff --git a/src/api/quality/qcSampleRule.js b/src/api/quality/qcSampleRule.js new file mode 100644 index 0000000..89782bd --- /dev/null +++ b/src/api/quality/qcSampleRule.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询来料抽样规则列表 +export function listQcSampleRule(query) { + return request({ + url: '/quality/qcSampleRule/list', + method: 'get', + params: query + }); +} + +// 查询来料抽样规则详细 +export function getQcSampleRule(id) { + return request({ + url: '/quality/qcSampleRule/' + id, + method: 'get' + }); +} + +// 新增来料抽样规则 +export function addQcSampleRule(data) { + return request({ + url: '/quality/qcSampleRule', + method: 'post', + data: data + }); +} + +// 修改来料抽样规则 +export function updateQcSampleRule(data) { + return request({ + url: '/quality/qcSampleRule', + method: 'put', + data: data + }); +} + +// 删除来料抽样规则 +export function delQcSampleRule(id) { + return request({ + url: '/quality/qcSampleRule/' + id, + method: 'delete' + }); +} diff --git a/src/router/index.js b/src/router/index.js index 1524fe6..36885c6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -174,6 +174,20 @@ export const dynamicRoutes = [ } ] }, + { + path: '/qua/quality/qcProject-data', + component: Layout, + hidden: true, + permissions: ['quality:qcProjectType:edit'], + children: [ + { + path: 'index/:projectType(\\w+)', + component: () => import('@/views/quality/qcProjectType/data'), + name: 'ProjectData', + meta: { title: '检验方案详情', activeMenu: '/quality/qcProjectType' } + } + ] + }, { path: '/monitor/job-log', component: Layout, diff --git a/src/views/quality/project/index.vue b/src/views/quality/project/index.vue index 3540349..49f83df 100644 --- a/src/views/quality/project/index.vue +++ b/src/views/quality/project/index.vue @@ -38,6 +38,19 @@ @keyup.enter.native="handleQuery" /> + + + + + 搜索 重置 @@ -87,6 +100,15 @@ v-hasPermi="['quality:project:export']" >导出 + + 检验方案 + @@ -141,6 +163,20 @@ + + + + + + + + + @@ -227,14 +263,19 @@ 取 消 + + + + \ No newline at end of file diff --git a/src/views/quality/qcProduce/index.vue b/src/views/quality/qcProduce/index.vue index c359ddd..668c18b 100644 --- a/src/views/quality/qcProduce/index.vue +++ b/src/views/quality/qcProduce/index.vue @@ -142,8 +142,8 @@ :disabled="multiple" @click="handleDelete" v-hasPermi="['quality:qcProduce:remove']" - >删除--> - + >删除 + --> +
+ + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导入 + + + 导出 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
将文件拖到此处,或点击上传
+
+
+ 是否更新已经存在的用户数据 +
+ 仅允许导入xls、xlsx格式文件。 + 下载模板 +
+
+ +
+ +
+ + + diff --git a/src/views/quality/qcProjectType/index.vue b/src/views/quality/qcProjectType/index.vue new file mode 100644 index 0000000..af6a6e1 --- /dev/null +++ b/src/views/quality/qcProjectType/index.vue @@ -0,0 +1,277 @@ + + + diff --git a/src/views/quality/qcSampleRule/index.vue b/src/views/quality/qcSampleRule/index.vue new file mode 100644 index 0000000..9274ed0 --- /dev/null +++ b/src/views/quality/qcSampleRule/index.vue @@ -0,0 +1,360 @@ + + +