index.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. import request from '@/utils/request';
  2. /**
  3. * 查询供应商列表
  4. * @param query
  5. * @returns {*}
  6. */
  7. export const listProductor = (query) => {
  8. return request({
  9. url: '/jdyw/productor/list',
  10. method: 'get',
  11. params: query
  12. });
  13. };
  14. /**
  15. * 查询供应商信息详细
  16. * @param id
  17. */
  18. export const getProductor = (id) => {
  19. return request({
  20. url: '/jdyw/productor/' + id,
  21. method: 'get'
  22. });
  23. };
  24. /**
  25. * 新增供应商信息
  26. * @param data
  27. */
  28. export const addProductor = (data) => {
  29. return request({
  30. url: '/jdyw/productor',
  31. method: 'post',
  32. data: data
  33. });
  34. };
  35. /**
  36. * 修改供应商信息
  37. * @param data
  38. */
  39. export const updateProductor = (data) => {
  40. return request({
  41. url: '/jdyw/productor',
  42. method: 'put',
  43. data: data
  44. });
  45. };
  46. /**
  47. * 删除供应商信息
  48. * @param id
  49. */
  50. export const delProductor = (id: string | number | Array<string | number>) => {
  51. return request({
  52. url: '/jdyw/productor/' + id,
  53. method: 'delete'
  54. });
  55. };
  56. /**
  57. * 查询售后人员列表
  58. * @param query
  59. * @returns {*}
  60. */
  61. export const listProductorEngineers = (query) => {
  62. return request({
  63. url: '/jdyw/productorEngineers/list',
  64. method: 'get',
  65. params: query
  66. });
  67. };
  68. /**
  69. * 查询售后人员信息详细
  70. * @param id
  71. */
  72. export const getProductorEngineers = (id) => {
  73. return request({
  74. url: '/jdyw/productorEngineers/' + id,
  75. method: 'get'
  76. });
  77. };
  78. /**
  79. * 新增售后人员信息
  80. * @param data
  81. */
  82. export const addProductorEngineers = (data) => {
  83. return request({
  84. url: '/jdyw/productorEngineers',
  85. method: 'post',
  86. data: data
  87. });
  88. };
  89. /**
  90. * 修改售后人员信息
  91. * @param data
  92. */
  93. export const updateProductorEngineers = (data) => {
  94. return request({
  95. url: '/jdyw/productorEngineers',
  96. method: 'put',
  97. data: data
  98. });
  99. };
  100. /**
  101. * 删除售后人员信息
  102. * @param id
  103. */
  104. export const delProductorEngineers = (id: string | number | Array<string | number>) => {
  105. return request({
  106. url: '/jdyw/productorEngineers/' + id,
  107. method: 'delete'
  108. });
  109. };