company.js 1.9 KB

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