storeAfterSales.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. import request from '@/utils/request'
  2. // 查询售后记录列表
  3. export function listSales(query) {
  4. return request({
  5. url: '/store/storeAfterSales/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询售后记录列表
  11. export function myListSales(query) {
  12. return request({
  13. url: '/store/storeAfterSales/myList',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询售后记录详细
  19. export function getSales(id) {
  20. return request({
  21. url: '/store/storeAfterSales/' + id,
  22. method: 'get'
  23. })
  24. }
  25. // 查询售后记录详细
  26. export function itemList(id) {
  27. return request({
  28. url: '/store/storeAfterSales/itemList/' + id,
  29. method: 'get'
  30. })
  31. }
  32. export function codeId(id) {
  33. return request({
  34. url: '/store/storeAfterSales/codeId/' + id,
  35. method: 'get'
  36. })
  37. }
  38. export function logList(id) {
  39. return request({
  40. url: '/store/storeAfterSales/logList/' + id,
  41. method: 'get'
  42. })
  43. }
  44. // 新增售后记录
  45. export function addSales(data) {
  46. return request({
  47. url: '/store/storeAfterSales',
  48. method: 'post',
  49. data: data
  50. })
  51. }
  52. // 修改售后记录
  53. export function updateSales(data) {
  54. return request({
  55. url: '/store/storeAfterSales',
  56. method: 'put',
  57. data: data
  58. })
  59. }
  60. // 审核
  61. export function auditing(data) {
  62. return request({
  63. url: '/store/storeAfterSales/auditing',
  64. method: 'put',
  65. data: data
  66. })
  67. }
  68. // 财务审核
  69. export function tuiMoney(data) {
  70. return request({
  71. url: '/store/storeAfterSales/tuiMoney',
  72. method: 'put',
  73. data: data
  74. })
  75. }
  76. // 撤销
  77. export function noAuditing(data) {
  78. return request({
  79. url: '/store/storeAfterSales/noAuditing',
  80. method: 'put',
  81. data: data
  82. })
  83. }
  84. // 删除售后记录
  85. export function delSales(id) {
  86. return request({
  87. url: '/store/storeAfterSales/' + id,
  88. method: 'delete'
  89. })
  90. }
  91. // 导出售后记录
  92. export function exportSales(query) {
  93. return request({
  94. url: '/store/storeAfterSales/export',
  95. method: 'get',
  96. params: query
  97. })
  98. }
  99. // 导出售后记录
  100. export function myExportSales(query) {
  101. return request({
  102. url: '/store/storeAfterSales/myExport',
  103. method: 'get',
  104. params: query
  105. })
  106. }