diff --git a/src/api/model/qm.js b/src/api/model/qm.js index 0f1aa083..05a94fd8 100644 --- a/src/api/model/qm.js +++ b/src/api/model/qm.js @@ -42,6 +42,43 @@ export default { return await http.get(this.url, data); }, }, + testitem: { + list: { + name: "质检项目", + req: async function (data) { + return await http.get(`${config.API_URL}/qm/testitem/`, data); + }, + }, + item: { + name: "质检项目", + req: async function (id) { + return await http.get(`${config.API_URL}/qm/testitem/${id}/`); + }, + }, + update: { + name: "更新", + req: async function (id, data) { + return await http.put( + `${config.API_URL}/qm/testitem/${id}/`, + data + ); + }, + }, + create: { + name: "创建", + req: async function (data) { + return await http.post(`${config.API_URL}/qm/testitem/`, data); + }, + }, + delete: { + name: "删除", + req: async function (id) { + return await http.delete( + `${config.API_URL}/qm/testitem/${id}/` + ); + }, + }, + }, ftest: { list: { name: "首件检验列表", diff --git a/src/config/route.js b/src/config/route.js index 0edb2adf..0ee6fce1 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -987,6 +987,16 @@ const routes = [ perms: ["mtm"], }, children: [ + { + name: "materials_gx", + path: "/mtm/materials_gx", + meta: { + title: "物料产品", + icon: "el-icon-cellphone", + perms: ["material_gx"], + }, + component: "mtm/materials_gx", + }, { name: "materials", path: "/mtm/materials", @@ -2620,6 +2630,17 @@ const routes = [ }, component: "enm_base/material", }, + { + path: "/enm_base/testItem", + name: "testItem", + meta: { + title: "检测项目", + icon: "el-icon-postcard", + type: "menu", + perms: ["testitem"], + }, + component: "enm_base/testItem", + }, { name: "logDetail", path: "/enm_rm/logDetail", @@ -2977,16 +2998,16 @@ const routes = [ // }, // "component": "statistics/inm_check.vue" // }, - // { - // "name": "good_check", - // "path": "/statistic/good_check", - // "meta": { - // "title": "成品检验统计", - // "icon": "el-icon-DataAnalysis", - // "perms": ["statistic_qm"] - // }, - // "component": "statistics/good_check.vue" - // }, + { + name: "good_check", + path: "/statistic/good_check", + meta: { + title: "成品检验统计", + icon: "el-icon-DataAnalysis", + perms: ["statistic_qm"], + }, + component: "statistics/good_check.vue", + }, // { // "name": "behavior_check", // "path": "/statistic/behavior_check", diff --git a/src/views/enm_base/testItem.vue b/src/views/enm_base/testItem.vue new file mode 100644 index 00000000..2a8a1358 --- /dev/null +++ b/src/views/enm_base/testItem.vue @@ -0,0 +1,181 @@ + + + diff --git a/src/views/enm_base/testItem_form.vue b/src/views/enm_base/testItem_form.vue new file mode 100644 index 00000000..e0d2ae1d --- /dev/null +++ b/src/views/enm_base/testItem_form.vue @@ -0,0 +1,185 @@ + + + + +