MaterialManagementService.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from "../../common/request"
  2. import { PUBLIC_MODULES_PATH as prefix } from "../AppPath";
  3. export default {
  4. list: function (param) {
  5. return request({
  6. url: prefix + '/material/management/list',
  7. method: 'get',
  8. params: param
  9. })
  10. },
  11. save: function (param) {
  12. return request({
  13. url: prefix + '/material/management/save',
  14. method: 'post',
  15. data: param
  16. })
  17. },
  18. findById: function (id) {
  19. return request({
  20. url: prefix + '/material/management/findById',
  21. method: 'get',
  22. params: {id: id}
  23. })
  24. },
  25. remove: function (id) {
  26. return request({
  27. url: prefix + '/material/management/remove',
  28. method: 'get',
  29. params: {id: id}
  30. })
  31. },
  32. updateStatusById: function (param) {
  33. return request({
  34. url: prefix + '/material/management/updateStatusById',
  35. method: 'post',
  36. data: param
  37. })
  38. },
  39. exportFile: function (params) {
  40. return request({
  41. url: prefix + '/reimbursementApproval/info/exportFile',
  42. method: 'get',
  43. params: params,
  44. responseType: 'blob'
  45. })
  46. },
  47. findTradeByTypeId: function (typeId) {
  48. return request({
  49. url: prefix + '/material/management/findTradeByTypeId',
  50. method: 'get',
  51. params: {typeId: typeId}
  52. })
  53. }
  54. }