index.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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-client/corpstype/AllList',
  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-client/corpsdesc/list',
  70. method: 'GET',
  71. data
  72. })
  73. }