statistics.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. /**
  2. * 统计相关API
  3. */
  4. import request from '@/utils/request'
  5. /**
  6. * 导出库存成本列表
  7. * @param params
  8. */
  9. export function getstockCostExport(params) {
  10. return request({
  11. url: 'admin/stock/statistics/export-cost',
  12. method: 'get',
  13. responseType: 'blob',
  14. loaidng: false,
  15. params
  16. })
  17. }
  18. /**
  19. * 查询库存成本统计分页列表数据
  20. * @param params
  21. */
  22. export function getstockCostStatistics(params) {
  23. return request({
  24. url: 'admin/stock/statistics/cost',
  25. method: 'get',
  26. loaidng: false,
  27. params
  28. })
  29. }
  30. /**
  31. * 导出库存列表
  32. * @param params
  33. */
  34. export function getstockExport(params) {
  35. return request({
  36. url: 'admin/stock/statistics/export',
  37. method: 'get',
  38. responseType: 'blob',
  39. loaidng: false,
  40. params
  41. })
  42. }
  43. /**
  44. * 查询库存统计分页列表数据
  45. * @param params
  46. */
  47. export function getstockStatistics(params) {
  48. return request({
  49. url: 'admin/stock/statistics',
  50. method: 'get',
  51. loaidng: false,
  52. params
  53. })
  54. }
  55. /**
  56. * 导出采购列表
  57. * @param params
  58. */
  59. export function getwarehouseEntryExport(params) {
  60. return request({
  61. url: 'admin/erp/warehouseEntry/export',
  62. method: 'get',
  63. responseType: 'blob',
  64. loaidng: false,
  65. params
  66. })
  67. }
  68. /**
  69. * 查询采购统计分页列表数据
  70. * @param params
  71. */
  72. export function getwarehouseEntryStatistics(params) {
  73. return request({
  74. url: 'admin/erp/warehouseEntry/statistics',
  75. method: 'get',
  76. loaidng: false,
  77. params
  78. })
  79. }
  80. /**
  81. * 获取某商品入库统计
  82. * @param {*} params
  83. * @returns
  84. */
  85. export function getStockBatchFlow(params) {
  86. return request({
  87. url: 'admin/erp/stockBatchFlow',
  88. method: 'get',
  89. loaidng: false,
  90. params
  91. })
  92. }
  93. /**
  94. * 导出供应商退货列表
  95. * @param params
  96. */
  97. export function getsupplierReturnExport(params) {
  98. return request({
  99. url: 'admin/erp/supplierReturn/export',
  100. method: 'get',
  101. responseType: 'blob',
  102. loaidng: false,
  103. params
  104. })
  105. }
  106. /**
  107. * 查询供应商退货统计分页列表数据
  108. * @param params
  109. */
  110. export function getsupplierReturnStatistics(params) {
  111. return request({
  112. url: 'admin/erp/supplierReturn/statistics',
  113. method: 'get',
  114. loaidng: false,
  115. params
  116. })
  117. }
  118. /**
  119. * 导出出库列表
  120. * @param params
  121. */
  122. export function getwarehouseOutExport(params) {
  123. return request({
  124. url: 'admin/erp/warehouseOut/export',
  125. method: 'get',
  126. responseType: 'blob',
  127. loaidng: false,
  128. params
  129. })
  130. }
  131. /**
  132. * 查询出库统计分页列表数据
  133. * @param params
  134. */
  135. export function getwarehouseOutStatistics(params) {
  136. return request({
  137. url: 'admin/erp/warehouseOut/statistics',
  138. method: 'get',
  139. loaidng: false,
  140. params
  141. })
  142. }
  143. /**
  144. * 导出订单退货列表
  145. * @param params
  146. */
  147. export function getorderReturnExport(params) {
  148. return request({
  149. url: 'admin/erp/orderReturn/export',
  150. method: 'get',
  151. responseType: 'blob',
  152. loaidng: false,
  153. params
  154. })
  155. }
  156. /**
  157. * 查询订单退货统计分页列表数据
  158. * @param params
  159. */
  160. export function getorderReturnStatistics(params) {
  161. return request({
  162. url: 'admin/erp/orderReturn/statistics',
  163. method: 'get',
  164. loaidng: false,
  165. params
  166. })
  167. }
  168. /**
  169. * 导出调拨列表
  170. * @param params
  171. */
  172. export function getStockTransferExport(params) {
  173. return request({
  174. url: 'admin/erp/stockTransfer/export',
  175. method: 'get',
  176. responseType: 'blob',
  177. loaidng: false,
  178. params
  179. })
  180. }
  181. /**
  182. * 查询调拨统计分页列表数据
  183. * @param params
  184. */
  185. export function getstockTransferStatistics(params) {
  186. return request({
  187. url: '/admin/erp/stockTransfer',
  188. method: 'get',
  189. loaidng: false,
  190. params
  191. })
  192. }
  193. /**
  194. * 导出库存调整单商品列表
  195. * @param params
  196. */
  197. export function getStockDamageReportExport(params) {
  198. return request({
  199. url: 'admin/stock/damage/report/export',
  200. method: 'get',
  201. responseType: 'blob',
  202. loaidng: false,
  203. params
  204. })
  205. }
  206. /**
  207. * 查询库存调整单商品统计分页列表数据
  208. * @param params
  209. */
  210. export function getStockDamageReportStatistics(params) {
  211. return request({
  212. url: 'admin/stock/damage/report/statistics',
  213. method: 'get',
  214. loaidng: false,
  215. params
  216. })
  217. }
  218. /**
  219. * 导出商品换货单商品列表
  220. * @param params
  221. */
  222. export function getChangeFormExport(params) {
  223. return request({
  224. url: 'admin/change/form/export',
  225. method: 'get',
  226. loaidng: false,
  227. responseType: 'blob',
  228. params
  229. })
  230. }
  231. /**
  232. * 查询商品换货单商品统计分页列表数据
  233. * @param params
  234. */
  235. export function getChangeFormStatistics(params) {
  236. return request({
  237. url: 'admin/change/form/statistics',
  238. method: 'get',
  239. loaidng: false,
  240. params
  241. })
  242. }