From 8896cbd7186a0f77cb2a58955747eff388c6676b Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Wed, 29 Dec 2021 14:01:54 +0800 Subject: [PATCH] xiala --- hb_client/src/api/pm.js | 7 + hb_client/src/router/index.js | 33 ++- hb_client/src/views/pm/management.vue | 2 +- hb_client/src/views/pm/plan.vue | 7 +- hb_client/src/views/qm/admissiontest.vue | 323 +++++++++++++++++++++ hb_client/src/views/qm/processtest.vue | 143 ++++++++++ hb_client/src/views/qm/producttest.vue | 326 ++++++++++++++++++++++ hb_client/src/views/qm/standard.vue | 284 ------------------- hb_client/src/views/qm/taskdetails.vue | 135 +++++++++ hb_client/src/views/qm/taskrecordfrom.vue | 94 +++++++ hb_client/src/views/qm/testitem.vue | 257 ----------------- hb_client/src/views/sam/order.vue | 4 +- hb_client/src/views/wpm/need.vue | 4 +- hb_client/src/views/wpm/operation.vue | 11 +- hb_client/src/views/wpm/operationdo.vue | 10 +- hb_client/src/views/wpm/worktask.vue | 4 +- 16 files changed, 1078 insertions(+), 566 deletions(-) create mode 100644 hb_client/src/views/qm/admissiontest.vue create mode 100644 hb_client/src/views/qm/processtest.vue create mode 100644 hb_client/src/views/qm/producttest.vue delete mode 100644 hb_client/src/views/qm/standard.vue create mode 100644 hb_client/src/views/qm/taskdetails.vue create mode 100644 hb_client/src/views/qm/taskrecordfrom.vue delete mode 100644 hb_client/src/views/qm/testitem.vue diff --git a/hb_client/src/api/pm.js b/hb_client/src/api/pm.js index 2bc359d..2e25b30 100644 --- a/hb_client/src/api/pm.js +++ b/hb_client/src/api/pm.js @@ -8,6 +8,13 @@ export function getProductionplanList(query) { params: query }) } +export function getProductionplan(id) { + return request({ + url: `/pm/production_plan/${id}/`, + method: 'get' + }) +} + export function createProductionplan(data) { return request({ url: 'pm/production_plan/', diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index 3ac6882..f2081c8 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -348,23 +348,38 @@ export const asyncRoutes = [ } , { - path: 'testitem', - name: 'testitem', - component: () => import('@/views/qm/testitem'), + path: 'admissiontest', + name: 'admissiontest', + component: () => import('@/views/qm/admissiontest'), meta: { title: '入场检验', icon: 'example', perms: ['index_manage'] } } , { - path: 'testitem', - name: 'testitem', - component: () => import('@/views/qm/testitem'), + path: 'processtest', + name: 'processtest', + component: () => import('@/views/qm/processtest'), meta: { title: '过程检验', icon: 'example', perms: ['index_manage'] } + }, + { + path: 'taskdetails/:id', + name: 'taskdetails', + component: () => import('@/views/qm/taskdetails'), + meta: { title: '过程检验详情', perms: ['vendor_manage'] }, + hidden: true } , { - path: 'testitem', - name: 'testitem', - component: () => import('@/views/qm/testitem'), + path: 'taskrecordfrom/:id', + name: 'taskrecordfrom', + component: () => import('@/views/qm/taskrecordfrom'), + meta: { title: '检验记录', perms: ['vendor_manage'] }, + hidden: true + } + , + { + path: 'producttest', + name: 'producttest', + component: () => import('@/views/qm/producttest'), meta: { title: '成品检验', icon: 'example', perms: ['index_manage'] } } diff --git a/hb_client/src/views/pm/management.vue b/hb_client/src/views/pm/management.vue index 359fe94..3f683de 100644 --- a/hb_client/src/views/pm/management.vue +++ b/hb_client/src/views/pm/management.vue @@ -46,7 +46,7 @@ -