material.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. import request from '@/utils/request'
  2. export function getList(params) {
  3. return request({
  4. url: '/admin/user/mch/list',
  5. method: 'get',
  6. params
  7. })
  8. }
  9. export function getCategoryList(params) {
  10. return request({
  11. url: '/k3/category/list',
  12. method: 'get',
  13. params
  14. })
  15. }
  16. export function getMaterialList(params) {
  17. return request({
  18. url: '/k3/material/list',
  19. method: 'get',
  20. params
  21. })
  22. }
  23. export function getMaterialDetail(params) {
  24. return request({
  25. url: '/k3/material/detail',
  26. method: 'get',
  27. params
  28. })
  29. }
  30. export function getMachineLlist(params) {
  31. return request({
  32. url: '/machine-record/list',
  33. method: 'get',
  34. params
  35. })
  36. }
  37. export function getMachineEdit(params) {
  38. return request({
  39. url: '/machine-record/edit',
  40. method: 'post',
  41. data:params
  42. })
  43. }
  44. export function getMachineDel(params) {
  45. return request({
  46. url: '/machine-record/del',
  47. method: 'post',
  48. data:params
  49. })
  50. }
  51. export function getMachineAdd(params) {
  52. return request({
  53. url:'/machine-record/add',
  54. method: 'post',
  55. data:params
  56. })
  57. }
  58. // 产品对应关系
  59. export function getProductAdd(params) {
  60. return request({
  61. url:'/product-compose/add',
  62. method: 'post',
  63. data:params
  64. })
  65. }
  66. export function getProductDel(params) {
  67. return request({
  68. url:'/product-compose/del',
  69. method: 'post',
  70. params
  71. })
  72. }
  73. export function getProductDetail(params) {
  74. return request({
  75. url:'/product-compose/detail',
  76. method: 'get',
  77. params
  78. })
  79. }
  80. export function getProductEdit(params) {
  81. return request({
  82. url:'/product-compose/edit',
  83. method: 'post',
  84. data:params
  85. })
  86. }
  87. // /product-compose/export
  88. export function getProductList(params) {
  89. return request({
  90. url:'/product-compose/list',
  91. method: 'get',
  92. params
  93. })
  94. }
  95. // 产品调价单管理
  96. export function getProductRriceAdd(params) {
  97. return request({
  98. url:'/product-upd-price/add',
  99. method: 'post',
  100. data:params
  101. })
  102. }
  103. export function getDistList(params) {
  104. return request({
  105. url:'/common/dict/list',
  106. method: 'get',
  107. params
  108. })
  109. }
  110. export function getProductRricedel(params) {
  111. return request({
  112. url:'/product-upd-price/del',
  113. method: 'post',
  114. params:{ids:params.join(',')}
  115. })
  116. }
  117. export function getProductRriceConfirm(params) {
  118. return request({
  119. url:'/product-upd-price/confirm',
  120. method: 'post',
  121. data:params
  122. })
  123. }
  124. export function getProductRriceDetail(params) {
  125. return request({
  126. url:'/product-upd-price/detail',
  127. method: 'get',
  128. params
  129. })
  130. }
  131. export function getProductRriceEdit(params) {
  132. return request({
  133. url:'/product-upd-price/edit',
  134. method: 'post',
  135. data:params
  136. })
  137. }
  138. export function getProductRriceList(params) {
  139. return request({
  140. url:'/product-upd-price/list',
  141. method: 'get',
  142. params
  143. })
  144. }
  145. export function getProductRriceRevoke(params) {
  146. return request({
  147. url:'/product-upd-price/revoke',
  148. method: 'get',
  149. params
  150. })
  151. }
  152. export function getProductRriceSubmit(params) {
  153. return request({
  154. url:'/product-upd-price/submit',
  155. method: 'get',
  156. params
  157. })
  158. }
  159. // 产品价格列表
  160. export function getProductPriceList(params) {
  161. return request({
  162. url:'/product-price/list',
  163. method: 'get',
  164. params
  165. })
  166. }
  167. export function getTypeList(params) {
  168. return request({
  169. url:'/sale/type/list',
  170. method: 'get',
  171. params
  172. })
  173. }
  174. export function getTree(params) {
  175. return request({
  176. url:'/admin/websit/tree',
  177. method: 'get',
  178. params
  179. })
  180. }
  181. export function getRebate(params) {
  182. return request({
  183. url:'/wallet/rebate/list',
  184. method: 'get',
  185. params
  186. })
  187. }
  188. //产品品类
  189. //产品品类列表
  190. export function getProductCategoryList(params) {
  191. return request({
  192. url:'/product-category/list',
  193. method: 'get',
  194. params
  195. })
  196. }
  197. //产品品类小类列表
  198. export function getProductCategorySubList(params) {
  199. return request({
  200. url:'/product-category/sub-list',
  201. method: 'get',
  202. params
  203. })
  204. }
  205. //新增产品品类
  206. export function getProductCategoryAdd(data) {
  207. return request({
  208. url:'/product-category/add',
  209. method: 'post',
  210. data
  211. })
  212. }
  213. //编辑产品品类
  214. export function getProductCategoryEdit(data) {
  215. return request({
  216. url:'/product-category/edit',
  217. method: 'post',
  218. data
  219. })
  220. }
  221. //金蝶存货类别列表
  222. export function getProductCategoryKingDeeCategoryList() {
  223. return request({
  224. url:'/product-category/king-dee-category-list',
  225. method: 'get',
  226. })
  227. }
  228. //新增产品品类小类
  229. export function getProductCategoryAddSub(data) {
  230. return request({
  231. url:'/product-category/add-sub',
  232. method: 'post',
  233. data
  234. })
  235. }