sop.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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 infoSop(query) {
  12. return request({
  13. url: '/qw/sop/info',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. export function listMySop(query) {
  19. return request({
  20. url: '/qw/sop/myList',
  21. method: 'get',
  22. params: query
  23. })
  24. }
  25. export function listDeptSop(query) {
  26. return request({
  27. url: '/qw/sop/deptList',
  28. method: 'get',
  29. params: query
  30. })
  31. }
  32. // 查询企微sop模板列表
  33. export function listAiChatSop(query) {
  34. return request({
  35. url: '/qw/sop/listAiChatSop',
  36. method: 'get',
  37. params: query
  38. })
  39. }
  40. export function courseList() {
  41. return request({
  42. url: '/qw/sop/courseList',
  43. method: 'get',
  44. })
  45. }
  46. export function videoList(id,query) {
  47. return request({
  48. url: '/qw/sop/videoList/' + id,
  49. params: query,
  50. method: 'get'
  51. })
  52. }
  53. // 查询企微sop详细
  54. export function getSop(id) {
  55. return request({
  56. url: '/qw/sop/' + id,
  57. method: 'get'
  58. })
  59. }
  60. // 新增企微sop
  61. export function addSop(data) {
  62. return request({
  63. url: '/qw/sop',
  64. method: 'post',
  65. data: data
  66. })
  67. }
  68. // 修改企微sop
  69. export function updateSop(data) {
  70. return request({
  71. url: '/qw/sop',
  72. method: 'put',
  73. data: data
  74. })
  75. }
  76. //修改企微sop自动创建时间
  77. export function updateAutoSopTime(data) {
  78. return request({
  79. url: '/qw/sop/updateAutoSopTime',
  80. method: 'post',
  81. data: data
  82. })
  83. }
  84. //修改状态
  85. export function updateSopStatus(data) {
  86. return request({
  87. url: '/qw/sop/updateSopStatus',
  88. method: 'post',
  89. data: data
  90. })
  91. }
  92. // 删除企微sop
  93. export function delSop(id) {
  94. return request({
  95. url: '/qw/sop/' + id,
  96. method: 'delete'
  97. })
  98. }
  99. // 删除企微sop
  100. export function delSopLogs(id) {
  101. return request({
  102. url: '/qw/sop/delSopLogs/' + id,
  103. method: 'delete'
  104. })
  105. }
  106. //批量执行企微sop
  107. export function executeSop(ids) {
  108. return request({
  109. url: '/qw/sop/executeSop/' + ids,
  110. method: 'put'
  111. })
  112. }
  113. //批量执行企微sop先改状态
  114. export function updateStatus(ids) {
  115. return request({
  116. url: '/qw/sop/updateStatus/' + ids,
  117. method: 'get'
  118. })
  119. }
  120. // 导出企微sop
  121. export function exportSop(query) {
  122. return request({
  123. url: '/qw/sop/export',
  124. method: 'get',
  125. params: query
  126. })
  127. }
  128. // 导出我的企微sop
  129. export function myExportSop(query) {
  130. return request({
  131. url: '/qw/sop/myExport',
  132. method: 'get',
  133. params: query
  134. })
  135. }
  136. // 导出企微sop
  137. export function getSopVoiceList(params) {
  138. return request({
  139. url: '/qw/sop/getSopVoiceList',
  140. method: 'get',
  141. params
  142. })
  143. }
  144. // 修改企微sop
  145. export function updateSopQwUser(data) {
  146. return request({
  147. url: '/qw/sop/updateSopQwUser',
  148. method: 'post',
  149. data: data
  150. })
  151. }
  152. export function getRoles() {
  153. return request({
  154. url: '/qw/sop/getRoles',
  155. method: 'get'
  156. })
  157. }