callCenter.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import request from '@/utils/request'
  2. /**
  3. * 通话记录列表
  4. * type
  5. * structure_id: 部门id
  6. * user_id 员工ID
  7. * 分页
  8. */
  9. export function crmCallIndexAPI(data) {
  10. return request({
  11. url: 'biCustomer/queryCallList',
  12. method: 'post',
  13. data: data,
  14. headers: {
  15. 'Content-Type': 'application/json;charset=UTF-8'
  16. }
  17. })
  18. }
  19. /**
  20. * 通话记录统计分析
  21. * type
  22. * structure_id: 部门id
  23. * user_id 员工ID
  24. * 分页
  25. */
  26. export function crmCallAnalysisAPI(data) {
  27. return request({
  28. url: 'biCustomer/queryCallAnalysis',
  29. method: 'post',
  30. data: data,
  31. headers: {
  32. 'Content-Type': 'application/json;charset=UTF-8'
  33. }
  34. })
  35. }
  36. /**
  37. * 下载
  38. */
  39. export function crmCallDownloadAPI(data) {
  40. return request({
  41. url: 'crmCall/download',
  42. method: 'post',
  43. data: data,
  44. responseType: 'blob'
  45. })
  46. }
  47. /**
  48. * 搜索呼入电话
  49. */
  50. export function crmCallInNumberSearchAPI(data) {
  51. return request({
  52. url: 'crmCall/searchPhone',
  53. method: 'post',
  54. data: data
  55. })
  56. }
  57. /**
  58. * 查询客户模块电话号码
  59. */
  60. export function crmCallQueryPhoneNumberAPI(data) {
  61. return request({
  62. url: 'crmCall/queryPhoneNumber',
  63. method: 'post',
  64. data: data
  65. })
  66. }
  67. /**
  68. * 录音转文字
  69. */
  70. // export function crmCallAudioToStrAPI(data) {
  71. // return request({
  72. // url: 'crmCall/queryPhoneNumber',
  73. // method: 'post',
  74. // data: data
  75. // })
  76. // }