company.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 recharge(data) {
  31. return request({
  32. url: '/his/company/recharge',
  33. method: 'post',
  34. data: data
  35. })
  36. }
  37. // 红包充值
  38. export function redRecharge(data) {
  39. return request({
  40. url: '/his/company/redRecharge',
  41. method: 'post',
  42. data: data
  43. })
  44. }
  45. // 新增诊所管理
  46. export function addCompany(data) {
  47. return request({
  48. url: '/his/company',
  49. method: 'post',
  50. data: data
  51. })
  52. }
  53. // 修改诊所管理
  54. export function updateCompany(data) {
  55. return request({
  56. url: '/his/company',
  57. method: 'put',
  58. data: data
  59. })
  60. }
  61. // 删除诊所管理
  62. export function delCompany(companyId) {
  63. return request({
  64. url: '/his/company/' + companyId,
  65. method: 'delete'
  66. })
  67. }
  68. // 导出诊所管理
  69. export function exportCompany(query) {
  70. return request({
  71. url: '/his/company/export',
  72. method: 'get',
  73. params: query
  74. })
  75. }
  76. // 查询诊所管理详细
  77. export function getDivConfig(companyId) {
  78. return request({
  79. url: '/his/company/getDivConfig/' + companyId,
  80. method: 'get'
  81. })
  82. }
  83. export function setDiv(data) {
  84. return request({
  85. url: '/his/company/setDiv',
  86. method: 'post',
  87. data: data
  88. })
  89. }