staffmgr.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. import request from '@/utils/request'
  2. // 获取SAI执行人列表
  3. export function listSaiInspectors() {
  4. return request({
  5. url: '/plant/staffmgr/listSaiInspectors',
  6. method: 'get',
  7. })
  8. }
  9. // 获取SAI整改负责人列表
  10. export function listSaiExecutors() {
  11. return request({
  12. url: '/plant/staffmgr/listSaiExecutors',
  13. method: 'get',
  14. })
  15. }
  16. // 获取当前登录员工信息
  17. export function getLoginStaffInfo() {
  18. return request({
  19. url: '/plant/staffmgr/loginStaffInfo',
  20. method: 'get'
  21. })
  22. }
  23. // 获取当前用户id
  24. export function getStaffId() {
  25. return request({
  26. url: '/plant/staffmgr/getStaffId',
  27. method: 'get',
  28. })
  29. }
  30. // 判断当前用户是否为导师
  31. export function isMentor() {
  32. return request({
  33. url: '/plant/staffmgr/isMentor',
  34. method: 'get',
  35. })
  36. }
  37. // 查询导师下拉列表
  38. export function listMentors2(query) {
  39. return request({
  40. url: '/plant/staffmgr/listMentors',
  41. method: 'get',
  42. params: query
  43. })
  44. }
  45. // 查询人员管理列表
  46. export function listStaffmgr(query) {
  47. return request({
  48. url: '/plant/staffmgr/list',
  49. method: 'get',
  50. params: query
  51. })
  52. }
  53. export function listStaffmgrByActualposts(query) {
  54. return request({
  55. url: '/plant/staffmgr/listStaffmgrByActualposts',
  56. method: 'get',
  57. params: query
  58. })
  59. }
  60. export function listAllStaffmgr(query) {
  61. return request({
  62. url: '/plant/staffmgr/getAllList',
  63. method: 'get',
  64. params: query
  65. })
  66. }
  67. export function listStaffmgrByDeptAndTeam(query) {
  68. return request({
  69. url: '/plant/staffmgr/listByDeptAndTeam',
  70. method: 'get',
  71. params: query
  72. })
  73. }
  74. export function listStaffByMonitor(query) {
  75. return request({
  76. url: '/plant/staffmgr/listStaffByMonitor',
  77. method: 'get',
  78. params: query
  79. })
  80. }
  81. // 查询人员管理列表
  82. export function listStaffmgrAll(query) {
  83. return request({
  84. url: '/plant/staffmgr/listAll',
  85. method: 'get',
  86. params: query
  87. })
  88. }
  89. // 查询人员公司级培训时间列表
  90. export function selectTimeStaffmgr(query) {
  91. return request({
  92. url: '/plant/staffmgr/selectTime',
  93. method: 'get',
  94. params: query
  95. })
  96. }
  97. export function selectAverageAge(query) {
  98. return request({
  99. url: '/plant/staffmgr/averageAge',
  100. method: 'get',
  101. params: query
  102. })
  103. }
  104. // 查询组织架构人员管理列表
  105. export function listOgzStaffmgr(query) {
  106. return request({
  107. url: '/plant/staffmgr/ogzList',
  108. method: 'get',
  109. params: query
  110. })
  111. }
  112. // 上级领导字段查询人员管理列表
  113. export function listpIdStaffmgr(query) {
  114. return request({
  115. url: '/plant/staffmgr/pIdList',
  116. method: 'get',
  117. params: query
  118. })
  119. }
  120. // 查询离职人员管理列表
  121. export function listLeftStaffmgr(query) {
  122. return request({
  123. url: '/plant/staffmgr/leftList',
  124. method: 'get',
  125. params: query
  126. })
  127. }
  128. // 学历统计
  129. export function eduData(query) {
  130. return request({
  131. url: '/plant/staffmgr/eduData',
  132. method: 'get',
  133. params: query
  134. })
  135. }
  136. // 英语统计
  137. export function engData(query) {
  138. return request({
  139. url: '/plant/staffmgr/engData',
  140. method: 'get',
  141. params: query
  142. })
  143. }
  144. // 年龄统计
  145. export function ageData(query) {
  146. return request({
  147. url: '/plant/staffmgr/ageData',
  148. method: 'get',
  149. params: query
  150. })
  151. }
  152. // 英语统计
  153. export function teamData(query) {
  154. return request({
  155. url: '/plant/staffmgr/teamData',
  156. method: 'get',
  157. params: query
  158. })
  159. }
  160. // 查询人员管理详细
  161. export function getStaffmgr(id) {
  162. return request({
  163. url: '/plant/staffmgr/' + id,
  164. method: 'get'
  165. })
  166. }
  167. export function getStaffmgrByStaffid(id) {
  168. return request({
  169. url: '/plant/staffmgr/staffid/' + id,
  170. method: 'get'
  171. })
  172. }
  173. // 删除人员管理
  174. export function selectByStaffId(staffIds) {
  175. return request({
  176. url: '/plant/staffmgr/byStaffId/' + staffIds,
  177. method: 'get',
  178. })
  179. }
  180. // 新增人员管理
  181. export function addStaffmgr(data) {
  182. return request({
  183. url: '/plant/staffmgr',
  184. method: 'post',
  185. data: data
  186. })
  187. }
  188. // 修改人员管理
  189. export function updateStaffmgr(data) {
  190. return request({
  191. url: '/plant/staffmgr',
  192. method: 'put',
  193. data: data
  194. })
  195. }
  196. // 转岗人员管理
  197. export function updatePost(data) {
  198. return request({
  199. url: '/plant/staffmgr/updatePost',
  200. method: 'put',
  201. data: data
  202. })
  203. }
  204. // 删除人员管理
  205. export function delStaffmgr(id) {
  206. return request({
  207. url: '/plant/staffmgr/' + id,
  208. method: 'delete',
  209. })
  210. }
  211. // 删除离职人员管理
  212. export function delLeftStaffmgr(id) {
  213. return request({
  214. url: '/plant/staffmgr/left/' + id,
  215. method: 'get',
  216. })
  217. }
  218. // 删除退休人员管理
  219. export function delRetireStaffmgr(id) {
  220. return request({
  221. url: '/plant/staffmgr/retire/' + id,
  222. method: 'get',
  223. })
  224. }
  225. // 复职人员管理
  226. export function reLeftStaffmgr(id) {
  227. return request({
  228. url: '/plant/staffmgr/reLeft/' + id,
  229. method: 'get',
  230. })
  231. }
  232. // 导出人员管理
  233. export function exportStaffmgr(query) {
  234. return request({
  235. url: '/plant/staffmgr/export',
  236. method: 'get',
  237. params: query
  238. })
  239. }