index.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. import http from '@/http/api.js'
  2. // 省市区
  3. export function urbanAreas(data) {
  4. return http.request({
  5. url: '/blade-system/region/lazy-list',
  6. method: 'GET',
  7. data
  8. })
  9. }
  10. // 查询业务员
  11. export function gainUser(data) {
  12. return http.request({
  13. url: '/blade-user/client/gainUser',
  14. method: 'GET',
  15. data
  16. })
  17. }
  18. // 查询基础资料分类
  19. export function customerType(data) {
  20. return http.request({
  21. url: '/blade-client/corpstype/tree',
  22. method: 'GET',
  23. data
  24. })
  25. }
  26. // 查询所有基础资料分类
  27. export function customerTypeAllList(data) {
  28. return http.request({
  29. url: '/blade-sales-part/corpstype/tree',
  30. method: 'GET',
  31. data
  32. })
  33. }
  34. // 保存修改
  35. export function saveChanges(data) {
  36. return http.request({
  37. url: '/blade-client/corpsdesc/submit',
  38. method: 'POST',
  39. data
  40. })
  41. }
  42. // 删除地址
  43. export function removeAddr(data) {
  44. return http.request({
  45. url: '/blade-client/corpsAddr/remove',
  46. method: 'POST',
  47. params:data
  48. })
  49. }
  50. // 删除附件
  51. export function removeFile(data) {
  52. return http.request({
  53. url: '/blade-client/corpsfiles/remove',
  54. method: 'POST',
  55. params:data
  56. })
  57. }
  58. // 查询明细
  59. export function queryDetail(data) {
  60. return http.request({
  61. url: '/blade-client/corpsdesc/detail',
  62. method: 'GET',
  63. data
  64. })
  65. }
  66. // 查询列表
  67. export function queryList(data) {
  68. return http.request({
  69. url: '/blade-sales-part/corpsDesc/list',
  70. method: 'GET',
  71. data
  72. })
  73. }
  74. // 获取业务员数据
  75. export function clientGetUserByRole(data) {
  76. return http.request({
  77. url: '/blade-user/client/getUserByRole',
  78. method: 'GET',
  79. data
  80. })
  81. }
  82. // 获取地理位置
  83. export function regionSelectList(data) {
  84. return http.request({
  85. url: '/blade-system/region/selectList',
  86. method: 'GET',
  87. data
  88. })
  89. }
  90. // 客户保存数据
  91. export function corpsDescSubmit(data) {
  92. return http.request({
  93. url: '/blade-sales-part/corpsDesc/submit',
  94. method: 'POST',
  95. data:data
  96. })
  97. }
  98. // 客户新的保存数据
  99. export function corpsDescAppSubmitV1(data) {
  100. return http.request({
  101. url: '/blade-sales-part/corpsDesc/appSubmitV1',
  102. method: 'POST',
  103. data:data
  104. })
  105. }
  106. // 客户里客户联系人删除
  107. export function corpsAttnUpdate(data) {
  108. return http.request({
  109. url: '/blade-sales-part/corpsAttn/update',
  110. method: 'POST',
  111. data:data
  112. })
  113. }
  114. // 客户里地址信息删除
  115. export function corpsAddrUpdate(data) {
  116. return http.request({
  117. url: '/blade-sales-part/corpsAddr/update',
  118. method: 'POST',
  119. data:data
  120. })
  121. }
  122. // 获取供应商数据 (新)
  123. export function corpstypeTree(data) {
  124. return http.request({
  125. url: '/blade-sales-part/corpstype/tree',
  126. method: 'GET',
  127. data
  128. })
  129. }
  130. // 轮胎的附件删除
  131. export function corpsfilesRemove(data) {
  132. return http.request({
  133. url: '/blade-sales-part/corpsfiles/remove',
  134. method: 'POST',
  135. params:data
  136. })
  137. }
  138. // 生成二维码
  139. export function getQRcode(data) {
  140. return http.request({
  141. url: '/blade-weChat/weChat/QRcode/getQRcode',
  142. method: 'GET',
  143. data
  144. })
  145. }
  146. // 生成二维码
  147. export function getBrand(data) {
  148. return http.request({
  149. url: '/blade-sales-part/brandDesc/listAllV1?type=PP',
  150. method: 'GET',
  151. data
  152. })
  153. }