streetConfiguration.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. export function dispatchListDispatch(data) {
  3. return request({
  4. url: `/dispatch/listDispatch?moduleId=${data.moduleId}`,
  5. method: 'post',
  6. data
  7. })
  8. }
  9. export function dispatchListDispatchExport(data, name) {
  10. return postBlob({
  11. url: '/dispatch/listDispatch/export',
  12. data,
  13. name
  14. })
  15. }
  16. export function dispatchDelDispatch(params) {
  17. return request({
  18. url: '/dispatch/delDispatch',
  19. method: 'post',
  20. params
  21. })
  22. }
  23. export function dispatchImport(data) {
  24. return handleImport('/dispatch/import', data.formdata, data.id || '')
  25. }
  26. export function dispatchPList(data) {
  27. return request({
  28. url: '/dispatch/pList',
  29. method: 'post',
  30. data
  31. })
  32. }
  33. export function dispatchSalesList(data) {
  34. return request({
  35. url: '/dispatch/salesList',
  36. method: 'post',
  37. data
  38. })
  39. }
  40. export function dispatchCList(data) {
  41. return request({
  42. url: '/dispatch/cList',
  43. method: 'post',
  44. data
  45. })
  46. }
  47. export function dispatchAList(data) {
  48. return request({
  49. url: '/dispatch/aList',
  50. method: 'post',
  51. data
  52. })
  53. }
  54. export function dispatchSList(data) {
  55. return request({
  56. url: '/dispatch/sList',
  57. method: 'post',
  58. data
  59. })
  60. }
  61. //
  62. export function dispatchChannel(data) {
  63. return request({
  64. url: '/dispatch/channel',
  65. method: 'post',
  66. data
  67. })
  68. }
  69. export function dispatchSmallList(data) {
  70. return request({
  71. url: '/dispatch/smallList',
  72. method: 'post',
  73. data
  74. })
  75. }
  76. export function dispatchCategoryList(data) {
  77. return request({
  78. url: '/dispatch/categoryList',
  79. method: 'post',
  80. data
  81. })
  82. }
  83. export function dispatchSourceList(data) {
  84. return request({
  85. url: '/dispatch/sourceList',
  86. method: 'post',
  87. data
  88. })
  89. }
  90. export function dispatchSaveDispatch(data) {
  91. return request({
  92. url: '/dispatch/saveDispatch',
  93. method: 'post',
  94. data
  95. })
  96. }