indent.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import request from '@/utils/axios2'
  2. // 获取/搜索 询价列表
  3. export const getIndentList = (data) =>
  4. request({
  5. method: 'post',
  6. url: `/indent/lists`,
  7. data,
  8. })
  9. export const getCreator = (data) =>
  10. request({
  11. method: 'post',
  12. url: `/indent/admins`,
  13. data,
  14. })
  15. export const getVendorList = (data) =>
  16. request({
  17. url: `/indent/supplier`,
  18. method: 'post',
  19. data,
  20. })
  21. export const getCustomList = (data) =>
  22. request({
  23. url: '/indent/account',
  24. method: 'post',
  25. data,
  26. })
  27. // 创建询价
  28. export const createIndent = (data) =>
  29. request({
  30. url: '/indent/indent',
  31. method: 'post',
  32. data,
  33. })
  34. // 删除询价/报价
  35. export const deleteIndent = (data) =>
  36. request({
  37. url: '/indent/delete',
  38. method: 'post',
  39. data,
  40. })
  41. export const getSkuList = (data) =>
  42. request({
  43. url: '/indent/skuselect',
  44. method: 'post',
  45. data,
  46. })
  47. // 创建报价
  48. export const createQuote = (data) =>
  49. request({
  50. url: '/indent/newquote',
  51. method: 'post',
  52. data,
  53. })
  54. // 获取运费参数详情
  55. export const getSettingDetail = (data) =>
  56. request({
  57. url: '/indent/settingsDetails',
  58. method: 'post',
  59. data,
  60. })
  61. // 运费参数设置
  62. export const saveSetting = (data) =>
  63. request({
  64. url: '/indent/settings',
  65. method: 'post',
  66. data,
  67. })
  68. // 获取商品分类数据
  69. export const getCategoryTree = () =>
  70. request({
  71. url: '/Indent_category/IndentCategorySelect',
  72. method: 'get',
  73. })
  74. // sku申请
  75. export const applySKU = (data) =>
  76. request({
  77. url: '/Indent/apply',
  78. method: 'post',
  79. data,
  80. })
  81. // 创建引用报价数据
  82. export const cloneQuote = (data) =>
  83. request({
  84. url: '/indent/cloneids',
  85. method: 'post',
  86. data,
  87. })
  88. export const getCalcParams = (data) =>
  89. request({
  90. url: '/indent/cal',
  91. method: 'post',
  92. data,
  93. })
  94. export const saveCalcData = (data) =>
  95. request({
  96. url: '/indent/savecal',
  97. method: 'post',
  98. data,
  99. })
  100. // 采纳报价. 实际上就是设置默认. 一条询价下面只会有一条报价被采纳
  101. export const setDefaultQuote = (data) =>
  102. request({
  103. url: '/indent/setdefault',
  104. method: 'post',
  105. data,
  106. })
  107. // 计价导出的记录. 转单 界面列表数据
  108. export const getCalcPriceRecord = (data) =>
  109. request({
  110. url: '/indent_change/getList',
  111. method: 'post',
  112. data,
  113. })
  114. // 向crm转单
  115. export const generateOrder = (data) =>
  116. request({
  117. url: '/indent_change/updatechange',
  118. method: 'post',
  119. data,
  120. })
  121. export const downloadPDF = (data) =>
  122. request({
  123. url: '/indent/export',
  124. method: 'post',
  125. data,
  126. })