sop.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. import request from '@/utils/request'
  2. // 查询企微sop列表
  3. export function listSop(query) {
  4. return request({
  5. url: '/qw/sop/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询企微sop模板列表
  11. export function listAiChatSop(query) {
  12. return request({
  13. url: '/qw/sop/listAiChatSop',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. export function courseList() {
  19. return request({
  20. url: '/qw/sop/courseList',
  21. method: 'get',
  22. })
  23. }
  24. export function videoList(id) {
  25. return request({
  26. url: '/qw/sop/videoList/' + id,
  27. method: 'get'
  28. })
  29. }
  30. // 查询企微sop详细
  31. export function getSop(id) {
  32. return request({
  33. url: '/qw/sop/' + id,
  34. method: 'get'
  35. })
  36. }
  37. // 新增企微sop
  38. export function addSop(data) {
  39. return request({
  40. url: '/qw/sop',
  41. method: 'post',
  42. data: data
  43. })
  44. }
  45. // 修改企微sop
  46. export function updateSop(data) {
  47. return request({
  48. url: '/qw/sop',
  49. method: 'put',
  50. data: data
  51. })
  52. }
  53. //修改企微sop自动创建时间
  54. export function updateAutoSopTime(data) {
  55. return request({
  56. url: '/qw/sop/updateAutoSopTime',
  57. method: 'post',
  58. data: data
  59. })
  60. }
  61. //修改状态
  62. export function updateSopStatus(data) {
  63. return request({
  64. url: '/qw/sop/updateSopStatus',
  65. method: 'post',
  66. data: data
  67. })
  68. }
  69. // 删除企微sop
  70. export function delSop(id) {
  71. return request({
  72. url: '/qw/sop/' + id,
  73. method: 'delete'
  74. })
  75. }
  76. //批量执行企微sop
  77. export function executeSop(ids) {
  78. return request({
  79. url: '/qw/sop/executeSop/' + ids,
  80. method: 'put'
  81. })
  82. }
  83. //批量执行企微sop先改状态
  84. export function updateStatus(ids) {
  85. return request({
  86. url: '/qw/sop/updateStatus/' + ids,
  87. method: 'get'
  88. })
  89. }
  90. // 导出企微sop
  91. export function exportSop(query) {
  92. return request({
  93. url: '/qw/sop/export',
  94. method: 'get',
  95. params: query
  96. })
  97. }
  98. // 导出企微sop
  99. export function getSopVoiceList(params) {
  100. return request({
  101. url: '/qw/sop/getSopVoiceList',
  102. method: 'get',
  103. params
  104. })
  105. }
  106. // 修改企微sop
  107. export function updateSopQwUser(data) {
  108. return request({
  109. url: '/qw/sop/updateSopQwUser',
  110. method: 'post',
  111. data: data
  112. })
  113. }