order.js 718 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import request from '@/utils/request'
  2. // 删除订单
  3. export function Delete(id) {
  4. return request({
  5. url: `/api/extend/CrmOrder/${id}`,
  6. method: 'DELETE'
  7. })
  8. }
  9. // 获取订单列表
  10. export function getOrderList(data, options) {
  11. return request({
  12. url: `/api/extend/CrmOrder`,
  13. method: 'get',
  14. data,
  15. options
  16. })
  17. }
  18. // 获取商品列表
  19. export function getGoodsList(data) {
  20. return request({
  21. url: `/api/extend/CrmOrder/Goods`,
  22. method: 'get',
  23. data,
  24. options: {
  25. load: false
  26. }
  27. })
  28. }
  29. // 获取客户列表
  30. export function getCustomerList(keyword) {
  31. return request({
  32. url: `/api/extend/CrmOrder/Customer`,
  33. method: 'get',
  34. data: {
  35. keyword: keyword || ''
  36. },
  37. options: {
  38. load: false
  39. }
  40. })
  41. }