disposeRubbishService.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import request from "../../common/request"
  2. export default {
  3. save: function (inputForm) {
  4. console.log('提交的数据',inputForm)
  5. return request({
  6. url: "/dispose/rubbish/save",
  7. method: "post",
  8. data: inputForm,
  9. });
  10. },
  11. queryById: function (id) {
  12. return request({
  13. url: "/dispose/rubbish/queryById",
  14. method: "get",
  15. params: { id: id },
  16. });
  17. },
  18. getMaxNo: function () {
  19. return request({
  20. url: "/dispose/rubbish/getMaxNo",
  21. method: "get",
  22. });
  23. },
  24. getProcessingUnit: function () {
  25. return request({
  26. url: "/dispose/rubbish/getProcessingUnit",
  27. method: "get",
  28. });
  29. },
  30. getUserInfoByOffId: function (officeId) {
  31. return request({
  32. url: "/dispose/rubbish/getUserInfoByOffId",
  33. method: "get",
  34. params: {officeId: officeId}
  35. });
  36. },
  37. getRubbishStation: function () {
  38. return request({
  39. url: "/dispose/rubbish/getRubbishStation",
  40. method: "get",
  41. });
  42. },
  43. getByProcInsId: function (procInsIdList) {
  44. return request({
  45. url: "/dispose/rubbish/getByProcInsId",
  46. method: "get",
  47. params: {procInsIds: procInsIdList.join(",")},
  48. });
  49. },
  50. getByWorkOverId: function (programIdList) {
  51. return request({
  52. url: "/dispose/rubbish/getByWorkOverId",
  53. method: "get",
  54. params: {programIds: programIdList.join(",")},
  55. });
  56. },
  57. getDetailCollectByOfficeId: function (officeId) {
  58. return request({
  59. url: "/dispose/rubbish/getDetailCollectByOfficeId",
  60. method: "get",
  61. params: {officeId: officeId}
  62. });
  63. },
  64. getDetailCollectByOfficeIdAndMonth: function (officeId,yearMonth) {
  65. return request({
  66. url: "/dispose/rubbish/getDetailCollectByOfficeIdAndMonth",
  67. method: "get",
  68. params: {officeId: officeId,yearMonth:yearMonth}
  69. });
  70. },
  71. getByNo: function (no) {
  72. return request({
  73. url: "/dispose/rubbish/getByNo",
  74. method: "get",
  75. params: {no: no}
  76. });
  77. },
  78. };