reserve.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import request from '@/utils/request'
  2. // 获取列表
  3. export function getList(params) {
  4. return request({
  5. url: '/reserve/list',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 获取详情
  11. export function getDetail(params) {
  12. return request({
  13. url: '/reserve/detail',
  14. method: 'get',
  15. params
  16. })
  17. }
  18. // 关闭
  19. export function closeData(params) {
  20. return request({
  21. url: '/reserve/close',
  22. method: 'post',
  23. params
  24. })
  25. }
  26. // 获取产品列表
  27. export function getGoodsList(params) {
  28. return request({
  29. url: '/reserve/listOrder',
  30. method: 'get',
  31. params
  32. })
  33. }
  34. // 新增
  35. export function addData(params) {
  36. return request({
  37. url: '/reserve/add',
  38. method: 'post',
  39. data: params
  40. })
  41. }
  42. // 编辑
  43. export function editData(params) {
  44. return request({
  45. url: '/reserve/updateReserved',
  46. method: 'post',
  47. data: params
  48. })
  49. }
  50. // 查询经销商列表
  51. export function checkDealerList(params) {
  52. return request({
  53. url: '/reserve/detailCustomer',
  54. method: 'get',
  55. params
  56. })
  57. }
  58. // 查询物料列表
  59. export function checkMaterialList(params) {
  60. return request({
  61. url: '/reserve/detailMaterialNumber',
  62. method: 'get',
  63. params
  64. })
  65. }