index.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import request, { download, downloadFile } from '@/utils/request';
  2. import { AxiosPromise } from 'axios';
  3. // 查询专家信息列表
  4. export const expertList = (query?: any): AxiosPromise => {
  5. return request({
  6. url: '/dgtmedicine/expertPerson/list',
  7. method: 'get',
  8. params: query
  9. });
  10. };
  11. // 新增专家信息
  12. export const expertPersonAdd = (data: any): AxiosPromise => {
  13. return request({
  14. url: '/dgtmedicine/expertPerson/addPerson',
  15. method: 'post',
  16. data
  17. });
  18. };
  19. // 修改专家信息
  20. export const expertPersonUpdate = (data: any): AxiosPromise => {
  21. return request({
  22. url: '/dgtmedicine/expertPerson/editPerson',
  23. method: 'post',
  24. data
  25. });
  26. };
  27. // 下架专家信息
  28. export const expertPersonOff = (id: any): AxiosPromise => {
  29. return request({
  30. url: `/dgtmedicine/expertPerson/unpublish/${id}`,
  31. method: 'get'
  32. });
  33. };
  34. // 上架专家信息
  35. export const expertPersonOn = (id: any): AxiosPromise => {
  36. return request({
  37. url: `/dgtmedicine/expertPerson/publish/${id}`,
  38. method: 'get'
  39. });
  40. };
  41. // 获取专家信息详细信息
  42. export const expertPersonDetail = (id: any): AxiosPromise => {
  43. return request({
  44. url: `/dgtmedicine/expertPerson/getInfo/${id}`,
  45. method: 'get'
  46. });
  47. };
  48. // 删除专家信息
  49. export const expertPersonDelete = (id: any): AxiosPromise => {
  50. return request({
  51. url: `/dgtmedicine/expertPerson/delPerson/${id}`,
  52. method: 'get'
  53. });
  54. };
  55. // 专家统计
  56. export const expertPersonCount = (query?: any): AxiosPromise => {
  57. return request({
  58. url: '/dgtmedicine/expertPerson/queryPersonCount',
  59. method: 'get',
  60. params: query
  61. });
  62. };
  63. // 专家抽取统计
  64. export const queryChooseCount = (query?: any): AxiosPromise => {
  65. return request({
  66. url: '/dgtmedicine/expertChoose/queryChooseCount',
  67. method: 'get',
  68. params: query
  69. });
  70. };
  71. // 查询专家抽取事项信息列表
  72. export const expertItemList = (query?: any): AxiosPromise => {
  73. return request({
  74. url: '/dgtmedicine/expertChoose/list',
  75. method: 'get',
  76. params: query
  77. });
  78. };
  79. // 获取专家抽取事项信息详细信息
  80. export const expertChooseDetail = (id: any): AxiosPromise => {
  81. return request({
  82. url: `/dgtmedicine/expertChoose/getInfo/${id}`,
  83. method: 'get'
  84. });
  85. };
  86. // 事项审批
  87. export const expertChooseApprove = (data: any): AxiosPromise => {
  88. return request({
  89. url: '/dgtmedicine/expertChoose/approvalChoose',
  90. method: 'post',
  91. data
  92. });
  93. };
  94. // 专家组统计
  95. export const expertGroupCount = (query?: any): AxiosPromise => {
  96. return request({
  97. url: '/dgtmedicine/expertPerson/queryPersonGroupCount',
  98. method: 'get'
  99. });
  100. };
  101. // 查询专家抽取关联信息列表
  102. export const expertChooseRelationList = (query?: any): AxiosPromise => {
  103. return request({
  104. url: '/dgtmedicine/expertPersonRef/listExpertPersonRef',
  105. method: 'get',
  106. params: query
  107. });
  108. };