diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js index d0e95347..e646da5f 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -416,6 +416,14 @@ export default { ); }, }, + mgroups:{ + name: "获取可交接的工段", + req: async function (data) { + return await http.post( + `${config.API_URL}/wpm/handover/mgroups/`,data + ); + }, + }, }, //车间库存 wmaterial: { diff --git a/src/config/route.js b/src/config/route.js index cfffea42..bd812678 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -2914,17 +2914,7 @@ const routes = [ perms: ["train"], }, component: "edu/train", - }, - { - name: "examrecord", - path: "/edu/examrecord", - meta: { - title: "考试记录", - // icon: "el-icon-notebook", - perms: ["examrecord"], - }, - component: "edu/examrecord", - }, + } ], }, { diff --git a/src/utils/enum.js b/src/utils/enum.js index df6f5d13..acecc11a 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -206,4 +206,10 @@ export const wmState = new EnumFactory({ 30: { text: '返修', type: 'warning' }, 40: { text: '检验', type: 'primary' }, 50: { text: '报废', type: 'danger' }, +}, parseInt) + +export const certStateEnum = new EnumFactory({ + 10: { text: '正常', type: 'success' }, + 20: { text: '临期', type: 'warning' }, + 30: { text: '过期', type: 'danger' } }, parseInt) \ No newline at end of file diff --git a/src/views/edu/exam.vue b/src/views/edu/exam.vue index f23fdabe..983db148 100644 --- a/src/views/edu/exam.vue +++ b/src/views/edu/exam.vue @@ -40,9 +40,7 @@ width="80" >