index.ts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. getFillRecordsPage: async (params: any) => {
  46. return await request.get({ url: `/rq/iot-opeation-fill/fillRecordPage`, params })
  47. },
  48. getAttrs:async (params: any) => {
  49. return await request.get({ url: `/rq/iot-opeation-fill/getAttrs`, params })
  50. },
  51. getDeivceFillInfo:async (params: any) => {
  52. return await request.get({ url: `/rq/iot-opeation-fill/getDeivceFillInfo`, params })
  53. },
  54. // 查询运行记录填报详情
  55. getIotOpeationFill: async (id: number) => {
  56. return await request.get({ url: `/rq/iot-opeation-fill/get?id=` + id })
  57. },
  58. // 新增运行记录填报
  59. createIotOpeationFill: async (data: IotOpeationFillVO) => {
  60. return await request.post({ url: `/rq/iot-opeation-fill/create`, data })
  61. },
  62. // 新增运行记录填报
  63. insertLog: async (data: IotOpeationFillVO) => {
  64. return await request.post({ url: `/rq/iot-opeation-fill/insertLog`, data })
  65. },
  66. // 修改运行记录填报
  67. updateIotOpeationFill: async (data: IotOpeationFillVO) => {
  68. return await request.put({ url: `/rq/iot-opeation-fill/update`, data })
  69. },
  70. // 删除运行记录填报
  71. deleteIotOpeationFill: async (id: number) => {
  72. return await request.delete({ url: `/rq/iot-opeation-fill/delete?id=` + id })
  73. },
  74. // 导出运行记录填报 Excel
  75. exportIotOpeationFill: async (params) => {
  76. return await request.download({ url: `/rq/iot-opeation-fill/export-excel`, params })
  77. },
  78. }