basic.js 818 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import request from '@/utils/request'
  2. // 获取物料申请单列表
  3. export function getReqList(params) {
  4. return request({
  5. url: `/system/apply/material/list`,
  6. method: 'get',
  7. params: params
  8. })
  9. }
  10. // 物料申请单-新增
  11. export function addReq(data) {
  12. return request({
  13. url: `/system/apply/material`,
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. // 获取物料申请单详情
  19. export function getReqDetail(id) {
  20. return request({
  21. url: `/system/apply/material/${id}`,
  22. method: 'get',
  23. })
  24. }
  25. // 物料申请单-修改提交
  26. export function editReq(data) {
  27. return request({
  28. url: `/system/apply/material`,
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 物料申请单-删除
  34. export function delReq(id) {
  35. return request({
  36. url: `/system/apply/material/${id}`,
  37. method: 'delete',
  38. })
  39. }