recordFilling.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. import { request } from "@/utils/request.js";
  2. export function getRecordFillingList(params) {
  3. return request({
  4. url: "/rq/iot-opeation-fill/page1",
  5. method: "GET",
  6. params,
  7. });
  8. }
  9. export function getRecordFillingDetailGetPage(params) {
  10. return request({
  11. url: "/rq/iot-opeation-fill/page",
  12. method: "GET",
  13. params,
  14. });
  15. }
  16. export function getRecordFillingDetailGetAttrs(params) {
  17. return request({
  18. url: "/rq/iot-opeation-fill/getAttrs",
  19. method: "GET",
  20. params,
  21. });
  22. }
  23. // 运行记录填报
  24. export function recordFillingDetailInsertLog(data) {
  25. return request({
  26. url: "/rq/iot-opeation-fill/insertLog",
  27. method: "POST",
  28. data,
  29. });
  30. }
  31. /**
  32. * 运气记录详情
  33. * @param id
  34. */
  35. export const getRecordFillingDetail = id =>
  36. request({
  37. url: "/rq/iot-opeation-fill/get",
  38. method: "GET",
  39. params: { id },
  40. });
  41. /**
  42. * 运行记录模板列表
  43. */
  44. export const getRecordFillingTemplateList = () =>
  45. request({
  46. url: "/rq/iot-model-template/page",
  47. method: "GET",
  48. params: { pageNo: 1, pageSize: 100, status: 0 },
  49. });
  50. /**
  51. * 获取设备模板属性列表
  52. * @param deviceCategoryId
  53. */
  54. export const getRecordFillingOptionList = deviceCategoryId =>
  55. request({
  56. url: "rq/iot-model-template-attrs/page",
  57. method: "GET",
  58. params: { pageNo: 1, pageSize: 100, deviceCategoryId },
  59. });
  60. // 忽略运行工单
  61. export function recordFillingIgnore(data) {
  62. return request({
  63. url: "/rq/iot-opeation-fill/update1",
  64. method: "put",
  65. data: data,
  66. });
  67. }
  68. // 运行记录填报后更新工单状态
  69. export function recordFillingUpOperationOrder(data) {
  70. return request({
  71. url: "/rq/iot-opeation-fill/upOperationOrder",
  72. method: "POST",
  73. data: data,
  74. });
  75. }
  76. // 获取运行记录填报工单详情-设备列表+属性
  77. export function recordFillingDetailGetPageAndAttrs(params) {
  78. return request({
  79. url: "/rq/iot-opeation-fill/orderFillpage1",
  80. method: "GET",
  81. params,
  82. });
  83. }
  84. export function reportDetailsGet(id) {
  85. return request({
  86. url: `rq/iot-opeation-fill/prod/detail/${id}`,
  87. method: "GET",
  88. });
  89. }
  90. // 保存运行记录填报工单详情填报内容
  91. export function recordFillingDetailInsertDataList(data) {
  92. return request({
  93. url: "/rq/iot-opeation-fill/insertDataList",
  94. method: "POST",
  95. data: data,
  96. });
  97. }
  98. // 获取部门名称
  99. export function getDeptName(deptId) {
  100. return request({
  101. url: `/rq/report/dept/${deptId}`,
  102. method: "GET",
  103. });
  104. }