policy_list.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. import request from '@/utils/request'
  2. // 销售政策
  3. export function getList(params) {
  4. return request({
  5. url: '/policy/list',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. //新增政策
  11. export function addPoliy(params) {
  12. return request({
  13. url: '/policy/add',
  14. method: 'post',
  15. data: params
  16. })
  17. }
  18. //新增政策条件
  19. export function addPoliyCondition(params) {
  20. return request({
  21. url: '/policy/condition/add',
  22. method: 'post',
  23. data: params
  24. })
  25. }
  26. //政策条件列表
  27. export function getConditionList(params) {
  28. return request({
  29. url: '/policy/condition/list',
  30. method: 'get',
  31. params
  32. })
  33. }
  34. export function updatePolicy(params) {
  35. return request({
  36. url: '/policy/update',
  37. method: 'post',
  38. data: params
  39. })
  40. }
  41. export function deletePolicy(params) {
  42. return request({
  43. url: '/policy/delete',
  44. method: 'post',
  45. params
  46. })
  47. }
  48. export function getConditionMaterialDetail(params) {
  49. return request({
  50. url: '/policy/condition/detail',
  51. method: 'get',
  52. params
  53. })
  54. }
  55. //政策条件的机型列表
  56. export function getConditionMaterialList(params) {
  57. return request({
  58. url: '/policy/condition/material/list',
  59. method: 'get',
  60. params
  61. })
  62. }
  63. //经销商api
  64. export function getCrList(params) {
  65. return request({
  66. url: '/customer/list',
  67. method: 'get',
  68. params
  69. })
  70. }
  71. //政策销售商列表
  72. export function getCustomerList(params) {
  73. return request({
  74. url: '/policy/customer/list',
  75. method: 'get',
  76. params
  77. })
  78. }
  79. //获取销售政策编号
  80. export function getId(params) {
  81. return request({
  82. url: '/policy/id',
  83. method: 'get',
  84. params
  85. })
  86. }
  87. export function deleteCondition(params) {
  88. return request({
  89. url: '/policy/condition/delete',
  90. method: 'post',
  91. params
  92. })
  93. }
  94. export function toExamine(params) {
  95. return request({
  96. url: '/policy/examine',
  97. method: 'post',
  98. params
  99. })
  100. }
  101. //导入政策货品
  102. // /policy/material/import
  103. //政策货品列表
  104. export function getMaterialList(params) {
  105. return request({
  106. url: '/policy/material/list',
  107. method: 'get',
  108. params
  109. })
  110. }
  111. //提审政策
  112. export function getpolicySubmit(params) {
  113. return request({
  114. url: '/policy/policy/submit',
  115. method: 'post',
  116. params
  117. })
  118. }
  119. //删除政策货品
  120. export function deleteMaterialPolicy(params) {
  121. return request({
  122. url: '/policy/material/delete',
  123. method: 'post',
  124. params
  125. })
  126. }
  127. //获取经销商详情
  128. export function getPolicyDetail(params) {
  129. return request({
  130. url: '/policy/detail',
  131. method: 'get',
  132. params
  133. })
  134. }
  135. // 对应经销商
  136. export function getCustomerlist(params) {
  137. return request({
  138. url: '/policy/customer_count/list',
  139. method: 'get',
  140. params
  141. })
  142. }
  143. export function eidtBatch(params) {
  144. return request({
  145. url: '/policy/customer_count/batch',
  146. method: 'post',
  147. params
  148. })
  149. }
  150. //销售类型
  151. export function getTypeList(params) {
  152. return request({
  153. url: '/sale/type/list',
  154. method: 'get',
  155. params
  156. })
  157. }
  158. export function DeleteData(params) {
  159. return request({
  160. url: '/policy/material/delete',
  161. method: 'psot',
  162. params
  163. })
  164. }
  165. export function addData(params) {
  166. return request({
  167. url: '/sale/type/add',
  168. method: 'post',
  169. data: params
  170. })
  171. }
  172. export function delTypeData(params) {
  173. return request({
  174. url: '/sale/type/delete',
  175. method: 'post',
  176. params
  177. })
  178. }
  179. export function getDetail(params) {
  180. return request({
  181. url: '/sale/type/detail',
  182. method: 'post',
  183. data: params
  184. })
  185. }
  186. export function updateType(params) {
  187. return request({
  188. url: '/sale/type/update',
  189. method: 'post',
  190. data: params
  191. })
  192. }
  193. // 返利钱包列表
  194. export function getWalletList(params) {
  195. return request({
  196. url: '/wallet/rebate/list',
  197. method: 'get',
  198. params
  199. })
  200. }
  201. export function addWallet(params) {
  202. return request({
  203. url: '/wallet/add',
  204. method: 'post',
  205. data: params
  206. })
  207. }
  208. export function getWalletDetail(params) {
  209. return request({
  210. url: '/wallet/rebate/detail',
  211. method: 'get',
  212. params
  213. })
  214. }
  215. export function updateWallet(params) {
  216. return request({
  217. url: '/wallet/update',
  218. method: 'post',
  219. data: params
  220. })
  221. }
  222. // 销售品类
  223. export function getDictList(params) {
  224. return request({
  225. url: '/common/dict/list',
  226. method: 'get',
  227. params
  228. })
  229. }
  230. // 产品品类
  231. export function getProductList(params) {
  232. return request({
  233. url: '/product-category/list',
  234. method: 'get',
  235. params
  236. })
  237. }