diff --git a/hb_client/.env.development b/hb_client/.env.development index 003a43c..ef83e12 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/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 7f13757..10fe313 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -340,23 +340,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 d088894..9a51bce 100644 --- a/hb_client/src/views/pm/management.vue +++ b/hb_client/src/views/pm/management.vue @@ -45,7 +45,7 @@ -