company.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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 changeRedPacketState(data) {
  85. return request({
  86. url: '/his/company/changeRedPacketState',
  87. method: 'post',
  88. data: data
  89. })
  90. }
  91. // 查询诊所管理详细
  92. export function getDivConfig(companyId) {
  93. return request({
  94. url: '/his/company/getDivConfig/' + companyId,
  95. method: 'get'
  96. })
  97. }
  98. export function setDiv(data) {
  99. return request({
  100. url: '/his/company/setDiv',
  101. method: 'post',
  102. data: data
  103. })
  104. }
  105. export function exitMiniProgram(data) {
  106. return request({
  107. url: '/his/company/exitMiniProgram',
  108. method: 'post',
  109. data: data
  110. })
  111. }
  112. export function getGatewayCompanyList(companyId) {
  113. return request({
  114. url: '/easyCall/gateway/getGatewayCompanyList',
  115. method: 'get'
  116. })
  117. }
  118. /** 服务号点播下拉(口令看课) */
  119. export function listCourseMaAppOptions() {
  120. return request({
  121. url: '/his/company/courseMaAppOptions',
  122. method: 'get'
  123. })
  124. }
  125. /** 口令看课开关 */
  126. export function changeWatchPasswordEnabled(data) {
  127. return request({
  128. url: '/his/company/changeWatchPasswordEnabled',
  129. method: 'post',
  130. data: data
  131. })
  132. }
  133. /** 公司红包新/老商户 */
  134. export function changeRedPacketMerchant(data) {
  135. return request({
  136. url: '/his/company/changeRedPacketMerchant',
  137. method: 'post',
  138. data: data
  139. })
  140. }
  141. export function listRedPacketMerchantOptions() {
  142. return request({
  143. url: '/his/company/redPacketMerchantOptions',
  144. method: 'get'
  145. })
  146. }