index.ts 3.0 KB

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