material.js 795 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { request } from "@/utils/request";
  2. // 获取物料列表
  3. export function getMaterialList(params) {
  4. return request({
  5. url: "/pms/iot-main-work-order-bom-material/workOrderMaterials",
  6. method: "get",
  7. params
  8. });
  9. }
  10. // 新增物料 查询物料主数据
  11. export function getMaterialListData(params) {
  12. return request({
  13. url: "/rq/iot-material/page",
  14. method: "get",
  15. params
  16. });
  17. }
  18. // 物料详情
  19. export function getMaterialDetail(params) {
  20. return request({
  21. url: "/pms/iot-main-work-order-bom-material/page",
  22. method: "get",
  23. params
  24. });
  25. }
  26. // 物料详情 - 维修工单
  27. export function getRepairMaterialDetail(params) {
  28. return request({
  29. url: "/rq/iot-maintain-materials/page",
  30. method: "get",
  31. params
  32. });
  33. }