company.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. import request from '@/utils/request'
  2. // 查询诊所管理列表
  3. export function listCompany(query) {
  4. return request({
  5. url: '/his/company/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询诊所管理详细
  11. export function getCompany(companyId) {
  12. return request({
  13. url: '/his/company/' + companyId,
  14. method: 'get'
  15. })
  16. }
  17. export function resetPwd(companyId) {
  18. return request({
  19. url: '/his/company/resetPwd/'+companyId,
  20. method: 'post'
  21. })
  22. }
  23. export function deduct(data) {
  24. return request({
  25. url: '/his/company/deduct',
  26. method: 'post',
  27. data: data
  28. })
  29. }
  30. export function redDeduct(data) {
  31. return request({
  32. url: '/his/company/redDeduct',
  33. method: 'post',
  34. data: data
  35. })
  36. }
  37. export function recharge(data) {
  38. return request({
  39. url: '/his/company/recharge',
  40. method: 'post',
  41. data: data
  42. })
  43. }
  44. // 红包充值
  45. export function redRecharge(data) {
  46. return request({
  47. url: '/his/company/redRecharge',
  48. method: 'post',
  49. data: data
  50. })
  51. }
  52. // 新增诊所管理
  53. export function addCompany(data) {
  54. return request({
  55. url: '/his/company',
  56. method: 'post',
  57. data: data
  58. })
  59. }
  60. // 修改诊所管理
  61. export function updateCompany(data) {
  62. return request({
  63. url: '/his/company',
  64. method: 'put',
  65. data: data
  66. })
  67. }
  68. // 删除诊所管理
  69. export function delCompany(companyId) {
  70. return request({
  71. url: '/his/company/' + companyId,
  72. method: 'delete'
  73. })
  74. }
  75. // 导出诊所管理
  76. export function exportCompany(query) {
  77. return request({
  78. url: '/his/company/export',
  79. method: 'get',
  80. params: query
  81. })
  82. }
  83. // 查询诊所管理详细
  84. export function getDivConfig(companyId) {
  85. return request({
  86. url: '/his/company/getDivConfig/' + companyId,
  87. method: 'get'
  88. })
  89. }
  90. export function setDiv(data) {
  91. return request({
  92. url: '/his/company/setDiv',
  93. method: 'post',
  94. data: data
  95. })
  96. }
  97. export function exitMiniProgram(data) {
  98. return request({
  99. url: '/his/company/exitMiniProgram',
  100. method: 'post',
  101. data: data
  102. })
  103. }