| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- import request from '@/utils/request'
- // 获取SAI执行人列表
- export function listSaiInspectors() {
- return request({
- url: '/plant/staffmgr/listSaiInspectors',
- method: 'get',
- })
- }
- // 获取SAI整改负责人列表
- export function listSaiExecutors() {
- return request({
- url: '/plant/staffmgr/listSaiExecutors',
- method: 'get',
- })
- }
- // 获取当前登录员工信息
- export function getLoginStaffInfo() {
- return request({
- url: '/plant/staffmgr/loginStaffInfo',
- method: 'get'
- })
- }
- // 获取当前用户id
- export function getStaffId() {
- return request({
- url: '/plant/staffmgr/getStaffId',
- method: 'get',
- })
- }
- // 判断当前用户是否为导师
- export function isMentor() {
- return request({
- url: '/plant/staffmgr/isMentor',
- method: 'get',
- })
- }
- // 查询导师下拉列表
- export function listMentors2(query) {
- return request({
- url: '/plant/staffmgr/listMentors',
- method: 'get',
- params: query
- })
- }
- // 查询人员管理列表
- export function listStaffmgr(query) {
- return request({
- url: '/plant/staffmgr/list',
- method: 'get',
- params: query
- })
- }
- export function listStaffmgrByActualposts(query) {
- return request({
- url: '/plant/staffmgr/listStaffmgrByActualposts',
- method: 'get',
- params: query
- })
- }
- export function listAllStaffmgr(query) {
- return request({
- url: '/plant/staffmgr/getAllList',
- method: 'get',
- params: query
- })
- }
- export function listStaffmgrByDeptAndTeam(query) {
- return request({
- url: '/plant/staffmgr/listByDeptAndTeam',
- method: 'get',
- params: query
- })
- }
- export function listStaffByMonitor(query) {
- return request({
- url: '/plant/staffmgr/listStaffByMonitor',
- method: 'get',
- params: query
- })
- }
- // 查询人员管理列表
- export function listStaffmgrAll(query) {
- return request({
- url: '/plant/staffmgr/listAll',
- method: 'get',
- params: query
- })
- }
- // 查询人员公司级培训时间列表
- export function selectTimeStaffmgr(query) {
- return request({
- url: '/plant/staffmgr/selectTime',
- method: 'get',
- params: query
- })
- }
- export function selectAverageAge(query) {
- return request({
- url: '/plant/staffmgr/averageAge',
- method: 'get',
- params: query
- })
- }
- // 查询组织架构人员管理列表
- export function listOgzStaffmgr(query) {
- return request({
- url: '/plant/staffmgr/ogzList',
- method: 'get',
- params: query
- })
- }
- // 上级领导字段查询人员管理列表
- export function listpIdStaffmgr(query) {
- return request({
- url: '/plant/staffmgr/pIdList',
- method: 'get',
- params: query
- })
- }
- // 查询离职人员管理列表
- export function listLeftStaffmgr(query) {
- return request({
- url: '/plant/staffmgr/leftList',
- method: 'get',
- params: query
- })
- }
- // 学历统计
- export function eduData(query) {
- return request({
- url: '/plant/staffmgr/eduData',
- method: 'get',
- params: query
- })
- }
- // 英语统计
- export function engData(query) {
- return request({
- url: '/plant/staffmgr/engData',
- method: 'get',
- params: query
- })
- }
- // 年龄统计
- export function ageData(query) {
- return request({
- url: '/plant/staffmgr/ageData',
- method: 'get',
- params: query
- })
- }
- // 英语统计
- export function teamData(query) {
- return request({
- url: '/plant/staffmgr/teamData',
- method: 'get',
- params: query
- })
- }
- // 查询人员管理详细
- export function getStaffmgr(id) {
- return request({
- url: '/plant/staffmgr/' + id,
- method: 'get'
- })
- }
- export function getStaffmgrByStaffid(id) {
- return request({
- url: '/plant/staffmgr/staffid/' + id,
- method: 'get'
- })
- }
- // 删除人员管理
- export function selectByStaffId(staffIds) {
- return request({
- url: '/plant/staffmgr/byStaffId/' + staffIds,
- method: 'get',
- })
- }
- // 新增人员管理
- export function addStaffmgr(data) {
- return request({
- url: '/plant/staffmgr',
- method: 'post',
- data: data
- })
- }
- // 修改人员管理
- export function updateStaffmgr(data) {
- return request({
- url: '/plant/staffmgr',
- method: 'put',
- data: data
- })
- }
- // 转岗人员管理
- export function updatePost(data) {
- return request({
- url: '/plant/staffmgr/updatePost',
- method: 'put',
- data: data
- })
- }
- // 删除人员管理
- export function delStaffmgr(id) {
- return request({
- url: '/plant/staffmgr/' + id,
- method: 'delete',
- })
- }
- // 删除离职人员管理
- export function delLeftStaffmgr(id) {
- return request({
- url: '/plant/staffmgr/left/' + id,
- method: 'get',
- })
- }
- // 删除退休人员管理
- export function delRetireStaffmgr(id) {
- return request({
- url: '/plant/staffmgr/retire/' + id,
- method: 'get',
- })
- }
- // 复职人员管理
- export function reLeftStaffmgr(id) {
- return request({
- url: '/plant/staffmgr/reLeft/' + id,
- method: 'get',
- })
- }
- // 导出人员管理
- export function exportStaffmgr(query) {
- return request({
- url: '/plant/staffmgr/export',
- method: 'get',
- params: query
- })
- }
|