examine.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import request from '@/utils/request'
  2. // 查询人员体检信息列表
  3. export function listExamine(query) {
  4. return request({
  5. url: '/medicalhealth/examine/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询人员体检信息详细
  11. export function getExamine(id) {
  12. return request({
  13. url: '/medicalhealth/examine/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增人员体检信息
  18. export function addExamine(data) {
  19. return request({
  20. url: '/medicalhealth/examine',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改人员体检信息
  26. export function updateExamine(data) {
  27. return request({
  28. url: '/medicalhealth/examine',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 新增人员体检信息表
  34. export function details(data) {
  35. return request({
  36. url: '/medicalhealth/details',
  37. method: 'post',
  38. data: data
  39. })
  40. }
  41. // 删除人员体检信息
  42. export function delExamine(id) {
  43. return request({
  44. url: '/medicalhealth/examine/' + id,
  45. method: 'delete'
  46. })
  47. }
  48. // 删除
  49. export function delshanchu(id) {
  50. return request({
  51. url: '/medicalhealth/details/' + id,
  52. method: 'delete'
  53. })
  54. }
  55. // 导出人员体检信息
  56. export function exportExamine(query) {
  57. return request({
  58. url: '/medicalhealth/examine/export',
  59. method: 'get',
  60. params: query
  61. })
  62. }
  63. // 查询部门
  64. export function getDept(query) {
  65. return request({
  66. url: '/grassrootsregistration/common/getDept',
  67. method: 'get',
  68. params: query
  69. })
  70. }
  71. // 查找主持人/人员
  72. export function getZhuChiRen(data) {
  73. return request({
  74. url: '/grassrootsregistration/common/getZhuChiRen',
  75. method: 'get',
  76. params: {
  77. deptId: data
  78. }
  79. })
  80. }
  81. // 统计
  82. export function getPeopleExaminationcount(query) {
  83. return request({
  84. url: '/peopleManage/people/getPeopleExaminationcount',
  85. method: 'get',
  86. params: query
  87. })
  88. }
  89. // 查询人员体检信息列表
  90. export function getlist(query) {
  91. return request({
  92. url: 'peopleManage/people/getPeopleExaminationList',
  93. method: 'get',
  94. params: query
  95. })
  96. }
  97. //体检完成
  98. export function Examinationedit(data) {
  99. return request({
  100. url: '/peopleManage/people/Examinationedit',
  101. method: 'put',
  102. data: data
  103. })
  104. }