companyRel.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import request from '@/utils/request'
  2. // 查询链属列表
  3. export function listRel(query) {
  4. return request({
  5. url: '/sc-service/rel/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询链属未认证列表
  11. export function sparelist(query) {
  12. return request({
  13. url: '/sc-service/rel/notCertifiedList',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询未认证列表(平台用)
  19. export function adminSpareList(query) {
  20. return request({
  21. url: '/sc-service/rel/adminSpareList',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. // 查询企业列表
  27. export function listCompany(query) {
  28. return request({
  29. url: '/sc-service/rel/companyList',
  30. method: 'get',
  31. params: query
  32. })
  33. }
  34. // 查询企业列表
  35. export function listAllCompany(query) {
  36. return request({
  37. url: '/sc-service/rel/listAllCompany',
  38. method: 'get',
  39. params: query
  40. })
  41. }
  42. // 查询企业
  43. export function listCompanyQuery(scyId) {
  44. return request({
  45. url: '/sc-service/rel/companyListQuery/'+ scyId,
  46. method: 'get'
  47. })
  48. }
  49. // 新增链属
  50. export function addRel(data) {
  51. return request({
  52. url: '/sc-service/rel/addCompanyRel',
  53. method: 'post',
  54. data: data
  55. })
  56. }
  57. // 拒绝与同意链属
  58. export function updateRel(launchScrId,state) {
  59. const data = {
  60. launchScrId,
  61. state
  62. }
  63. return request({
  64. url: '/sc-service/rel/updateRel',
  65. method: 'put',
  66. data: data
  67. })
  68. }
  69. // 重邀
  70. export function againInvite(row) {
  71. return request({
  72. url: '/sc-service/rel/againInvite',
  73. method: 'put',
  74. data: row
  75. })
  76. }
  77. // 删除链属
  78. export function delRel(launchScrId) {
  79. return request({
  80. url: '/sc-service/rel/' + launchScrId,
  81. method: 'delete'
  82. })
  83. }
  84. // 删除链属企业信息数据
  85. export function removeSpare(scpId) {
  86. return request({
  87. url: '/sc-service/rel/removeSpare/' + scpId,
  88. method: 'delete'
  89. })
  90. }
  91. // 查询当前操作员
  92. export function getUser() {
  93. return request({
  94. url: '/sc-service/rel/getUser',
  95. method: 'get'
  96. })
  97. }