recordFilling.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. }