recordFilling.js 2.1 KB

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