offline.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. // 获取列表
  3. export function getList(params) {
  4. return request({
  5. url: '/offline/list',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 删除
  11. export function deleteData(params) {
  12. return request({
  13. url: '/offline/delete',
  14. method: 'post',
  15. params
  16. })
  17. }
  18. // 新增
  19. export function addData(params) {
  20. return request({
  21. url: '/offline/save',
  22. method: 'post',
  23. data: params
  24. })
  25. }
  26. // 编辑
  27. export function editData(params) {
  28. return request({
  29. url: '/offline/update',
  30. method: 'post',
  31. data: params
  32. })
  33. }
  34. // 获取详情
  35. export function getDetail(params) {
  36. return request({
  37. url: '/offline/detail',
  38. method: 'get',
  39. params
  40. })
  41. }
  42. // 网点列表
  43. export function getWebsiteList(params) {
  44. return request({
  45. url: '/select/websit',
  46. method: 'get',
  47. params
  48. })
  49. }
  50. // 区域列表
  51. export function getZoneList(params) {
  52. return request({
  53. url: '/select/zone',
  54. method: 'get',
  55. params
  56. })
  57. }
  58. // 获取年销售列表
  59. export function getYearList(params) {
  60. return request({
  61. url: '/report/year/statistics',
  62. method: 'get',
  63. params
  64. })
  65. }
  66. // 获取月销售列表
  67. export function getMonthList(params) {
  68. return request({
  69. url: '/report/month/statistics',
  70. method: 'get',
  71. params
  72. })
  73. }
  74. // 获取日销售列表
  75. export function getDayList(params) {
  76. return request({
  77. url: '/report/day/statistics',
  78. method: 'get',
  79. params
  80. })
  81. }