diff --git a/hb_client/src/api/employee.js b/hb_client/src/api/employee.js index 16ba451..9823969 100644 --- a/hb_client/src/api/employee.js +++ b/hb_client/src/api/employee.js @@ -1,6 +1,12 @@ import request from '@/utils/request' - +export function getEmployeeList(query) { + return request({ + url: '/hrm/employee/', + method: 'get', + params: query + }) +} export function getEmployee(id) { return request({ url: `/hrm/employee/${id}/`, diff --git a/hb_client/src/api/wpm.js b/hb_client/src/api/wpm.js index 5653ac6..853e4ce 100644 --- a/hb_client/src/api/wpm.js +++ b/hb_client/src/api/wpm.js @@ -368,3 +368,12 @@ export function toorder(data) { data }) } + +//申请 +export function needtoorder(data) { + return request({ + url: '/wpm/wproduct/need_to_order/', + method: 'post', + data + }) +} diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index 37a5d1c..683ea7e 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -267,10 +267,10 @@ export const asyncRoutes = [ meta: { title: '生产设备', icon: 'example', perms: ['em_equipment'] } }, { - path: 'detection ', - name: 'detection ', - component: () => import('@/views/em/detection'), - meta: { title: '监视和测量设备', icon: 'example', perms: ['em_detection'] } + path: 'monitoring ', + name: 'monitoring ', + component: () => import('@/views/em/monitoring'), + meta: { title: '监视和测量设备', icon: 'example', perms: ['em_monitoring'] } }, { path: 'record', @@ -407,6 +407,36 @@ export const asyncRoutes = [ ] }, + + { + path: '/personnel', + component: Layout, + redirect: '/personnel/user', + name: 'personnel', + meta: { title: '人员管理', icon: 'example', perms: ['personnel_set'] }, + children: [ + { + path: 'user', + name: 'user', + component: () => import('@/views/personnel/user'), + meta: { title: '人员列表', icon: 'example', perms: ['user_manage'] } + }, + { + path: 'personnel', + name: 'personnel', + component: () => import('@/views/personnel/user'), + meta: { title: '考勤列表', icon: 'example', perms: ['user_manage'] } + } ,{ + path: 'userupdate', + name: 'userupdate', + component: () => import('@/views/personnel/userupdate'), + meta: { title: '人员信息详情', icon: 'employee', perms: ['employee_detail'] }, + hidden: true + }, + + ] + } + , { path: '/inm', component: Layout, @@ -548,13 +578,7 @@ export const asyncRoutes = [ meta: { title: '用户管理', icon: 'user', perms: ['user_manage'] } } , - { - path: 'userupdate', - name: 'userupdate', - component: () => import('@/views/system/userupdate'), - meta: { title: '人员信息详情', icon: 'employee', perms: ['employee_detail'] }, - hidden: true - }, + { path: 'organization', name: 'Organization', diff --git a/hb_client/src/views/em/detection.vue b/hb_client/src/views/em/monitoring.vue similarity index 89% rename from hb_client/src/views/em/detection.vue rename to hb_client/src/views/em/monitoring.vue index c45bf3c..5a8ea92 100644 --- a/hb_client/src/views/em/detection.vue +++ b/hb_client/src/views/em/monitoring.vue @@ -7,7 +7,7 @@ > - + @@ -63,14 +63,17 @@ + {{scope.row.next_check_date}} + +
- + @@ -89,7 +92,7 @@ scope.row.keeper_.username }} - + @@ -199,9 +202,9 @@ > @@ -226,9 +229,9 @@ > @@ -307,8 +310,7 @@ - + diff --git a/hb_client/src/views/personnel/user.vue b/hb_client/src/views/personnel/user.vue new file mode 100644 index 0000000..8af611c --- /dev/null +++ b/hb_client/src/views/personnel/user.vue @@ -0,0 +1,263 @@ + + + diff --git a/hb_client/src/views/personnel/userupdate.vue b/hb_client/src/views/personnel/userupdate.vue new file mode 100644 index 0000000..bba0d14 --- /dev/null +++ b/hb_client/src/views/personnel/userupdate.vue @@ -0,0 +1,283 @@ + + + \ No newline at end of file diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue index 5f411f2..3b75c6c 100644 --- a/hb_client/src/views/pm/plan.vue +++ b/hb_client/src/views/pm/plan.vue @@ -64,7 +64,7 @@ - + diff --git a/hb_client/src/views/pm/resources.vue b/hb_client/src/views/pm/resources.vue index f6b28df..d9728b6 100644 --- a/hb_client/src/views/pm/resources.vue +++ b/hb_client/src/views/pm/resources.vue @@ -110,10 +110,15 @@ - - + + + + + - @@ -143,6 +148,31 @@ + + @@ -200,12 +230,12 @@ export default { "6":'辅助工具', }, - state_:{ - 0:'完好', - 1:'限用', - 2:'在修', - 3:'禁用', - }, + state_: { + 10: '完好', + 20: '限用', + 30: '在修', + 40: '禁用', + }, listQuery: { page: 1, page_size: 20, diff --git a/hb_client/src/views/qm/processtest.vue b/hb_client/src/views/qm/processtest.vue index 76d49b8..d87eccc 100644 --- a/hb_client/src/views/qm/processtest.vue +++ b/hb_client/src/views/qm/processtest.vue @@ -8,67 +8,66 @@ border fit stripe - highlight-current-row height="620" v-el-height-adaptive-table="{ bottomOffset: 40 }" > - + - + - + - - + + - + - + - + - + - + - + - + - + 军检 - + + + + + - + @@ -103,7 +190,7 @@