company.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 addCompany(data) {
  39. return request({
  40. url: '/his/company',
  41. method: 'post',
  42. data: data
  43. })
  44. }
  45. // 修改诊所管理
  46. export function updateCompany(data) {
  47. return request({
  48. url: '/his/company',
  49. method: 'put',
  50. data: data
  51. })
  52. }
  53. // 删除诊所管理
  54. export function delCompany(companyId) {
  55. return request({
  56. url: '/his/company/' + companyId,
  57. method: 'delete'
  58. })
  59. }
  60. // 导出诊所管理
  61. export function exportCompany(query) {
  62. return request({
  63. url: '/his/company/export',
  64. method: 'get',
  65. params: query
  66. })
  67. }
  68. // 查询诊所管理详细
  69. export function getDivConfig(companyId) {
  70. return request({
  71. url: '/his/company/getDivConfig/' + companyId,
  72. method: 'get'
  73. })
  74. }
  75. export function setDiv(data) {
  76. return request({
  77. url: '/his/company/setDiv',
  78. method: 'post',
  79. data: data
  80. })
  81. }