index.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import request from '@/config/axios'
  2. // 运行记录填报 VO
  3. export interface IotOpeationFillVO {
  4. id: any // 主键id
  5. wellName: string // 井号
  6. deviceCode: string // 资产编号
  7. deviceCategoryId: number
  8. deviceName: string // 设备名称
  9. fillContent: any // 填写内容
  10. deviceType: string // 设备类别
  11. deviceComponent: string // 设备部件
  12. deptId: number // 公司id
  13. orgName: string // 所属组织
  14. proId: number // 项目部id
  15. proName: string // 所属项目部
  16. teamId: number // 小队id
  17. teamName: string // 所属小队
  18. dutyName: string // 设备负责人
  19. creDate: Date // 填写日期
  20. name: string
  21. type: string
  22. modelAttr: string
  23. modelId: number
  24. isFill: number
  25. pointCode: string
  26. pointName: string
  27. orderName: string
  28. orderType: string
  29. orderStatus: number
  30. createTime: any
  31. totalRunTime: number
  32. userId: any
  33. isSum: number
  34. deviceId: any
  35. limitType: any
  36. currentSumValue: any
  37. maxAllowedValue: any
  38. isCollection: any
  39. description: any
  40. }
  41. // 运行记录填报 API
  42. export const IotOpeationFillApi = {
  43. // 查询运行记录填报分页
  44. getIotOpeationFillPage: async (params: any) => {
  45. return await request.get({ url: `/rq/iot-opeation-fill/page`, params })
  46. },
  47. getIotOrderPage: async (params: any) => {
  48. return await request.get({ url: `/rq/iot-opeation-fill/orderPage`, params })
  49. },
  50. getIotOpeationFillPage1: async (params: any) => {
  51. return await request.get({ url: `/rq/iot-opeation-fill/page1`, params })
  52. },
  53. getDeviceData: async (params: any) => {
  54. return await request.get({ url: `/rq/iot-opeation-fill/countPage`, params })
  55. },
  56. getFillRecordsPage: async (params: any) => {
  57. return await request.get({ url: `/rq/iot-opeation-fill/fillRecordPage`, params })
  58. },
  59. getAttrs: async (params: any) => {
  60. return await request.get({ url: `/rq/iot-opeation-fill/getAttrs`, params })
  61. },
  62. getAttrs1: async (params: any) => {
  63. return await request.get({ url: `/rq/iot-opeation-fill/getAttrs1`, params })
  64. },
  65. getDeivceFillInfo: async (params: any) => {
  66. return await request.get({ url: `/rq/iot-opeation-fill/getDeivceFillInfo`, params })
  67. },
  68. // 查询运行记录填报详情
  69. getIotOpeationFill: async (id: number) => {
  70. return await request.get({ url: `/rq/iot-opeation-fill/get?id=` + id })
  71. },
  72. // 新增运行记录填报
  73. createIotOpeationFill: async (data: IotOpeationFillVO) => {
  74. return await request.post({ url: `/rq/iot-opeation-fill/create`, data })
  75. },
  76. // 新增运行记录填报
  77. insertLog: async (data: any) => {
  78. return await request.post({ url: `/rq/iot-opeation-fill/insertLog`, data })
  79. },
  80. getReportDetails: async (id: any) => {
  81. return await request.get({ url: `/rq/iot-opeation-fill/prod/detail/${id}` })
  82. },
  83. // 修改运行记录填报
  84. updateIotOpeationFill: async (data: IotOpeationFillVO) => {
  85. return await request.put({ url: `/rq/iot-opeation-fill/update`, data })
  86. },
  87. // 修改运行记录填报
  88. updateIotOpeationFill1: async (data: IotOpeationFillVO) => {
  89. return await request.put({ url: `/rq/iot-opeation-fill/update1`, data })
  90. },
  91. // 删除运行记录填报
  92. deleteIotOpeationFill: async (id: number) => {
  93. return await request.delete({ url: `/rq/iot-opeation-fill/delete?id=` + id })
  94. },
  95. // 导出运行记录填报 Excel
  96. exportIotOpeationFill: async (params) => {
  97. return await request.download({ url: `/rq/iot-opeation-fill/export-excel`, params })
  98. },
  99. // 获取公司
  100. getOrgName: async (id) => {
  101. return await request.get({ url: `/rq/report/dept/${id}` })
  102. }
  103. }