index.ts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. import request from '@/config/axios'
  2. // 瑞恒日报 VO
  3. export interface IotRhDailyReportVO {
  4. createTime: number
  5. id: number // 主键id
  6. deptId: number // 施工队伍id
  7. projectId: number // 项目id
  8. taskId: number // 任务id
  9. projectClassification: string // 项目类别(钻井 修井 注氮 酸化压裂... )
  10. relocationDays: number // 搬迁安装天数
  11. designInjection: number // 设计注气量
  12. transitTime: number // 运行时效
  13. dailyGasInjection: number // 当日注气量(万方)
  14. dailyWaterInjection: number // 当日注水量(方)
  15. dailyInjectGasTime: number // 当日注气时间(H)
  16. dailyInjectWaterTime: number // 当日注水时间(H)
  17. dailyPowerUsage: number // 当日用电量(kWh)
  18. nonProductionTime: number // 非生产时间(H)
  19. nptReason: string // 非生产时间原因
  20. constructionStartDate: Date // 施工开始日期
  21. constructionEndDate: Date // 施工结束日期
  22. productionStatus: string // 当日生产情况生产动态
  23. nextPlan: string // 下步工作计划
  24. constructionStatus: number // 施工状态(动迁 准备 施工 完工)
  25. personnel: string // 人员情况
  26. capacity: number // 产能
  27. totalGasInjection: number // 累计注气量(万方)
  28. totalWaterInjection: number // 累计注水量(方)
  29. cumulativeCompletion: number // 累计完工井次
  30. extProperty: string // 不同专业公司的扩展属性值
  31. sort: number // 排序值
  32. remark: string // 备注
  33. status: number // 状态(0启用 1禁用)
  34. processInstanceId: string // 流程实例id
  35. auditStatus: number // 审批状态 未提交、审批中、审批通过、审批不通过、已取消
  36. }
  37. export interface IotRhDailyReportTotalWorkloadVO {
  38. totalFuelConsumption?: number
  39. totalPowerConsumption?: number
  40. totalWaterInjection?: number
  41. totalGasInjection?: number
  42. totalN2GasInjection?: number
  43. totalNaturalGasInjection?: number
  44. utilizationRate?: number
  45. }
  46. // 瑞恒日报 API
  47. export const IotRhDailyReportApi = {
  48. // 查询瑞恒日报分页
  49. getIotRhDailyReportPage: async (params: any) => {
  50. return await request.get({ url: `/pms/iot-rh-daily-report/page`, params })
  51. },
  52. getIotRhDailyReportTeamPage: async (params: any) => {
  53. return await request.get({ url: `/pms/iot-rh-daily-report/teamReports`, params })
  54. },
  55. getIotRhDailyReportWellPage: async (params: any) => {
  56. return await request.get({ url: `/pms/iot-rh-daily-report/wellReports`, params })
  57. },
  58. getIotRhDailyReportSummary: async (params: any) => {
  59. return await request.get({ url: `/pms/iot-rh-daily-report/statistics`, params })
  60. },
  61. getIotRhDailyReportSummaryPolyline: async (params: any) => {
  62. return await request.get({ url: `/pms/iot-rh-daily-report/polylineStatistics`, params })
  63. },
  64. nptStatistics: async (params: any) => {
  65. return await request.get({ url: `/pms/iot-rh-daily-report/nptStatistics`, params })
  66. },
  67. // 累计工作量统计
  68. totalWorkload: async (params: any): Promise<IotRhDailyReportTotalWorkloadVO> => {
  69. return await request.get({ url: `/pms/iot-rh-daily-report/totalWorkload`, params })
  70. },
  71. // 按照日期查询瑞恒日报统计数据 已填报 未填报 数量
  72. rhDailyReportStatistics: async (params: any) => {
  73. return await request.get({ url: `/pms/iot-rh-daily-report/rhDailyReportStatistics`, params })
  74. },
  75. exportRhDailyReportStatistics: async (params: any) => {
  76. return await request.download({
  77. url: `/pms/iot-rh-daily-report/exportStatistics`,
  78. params
  79. })
  80. },
  81. // 按照日期查询瑞恒日报统计数据 未填报队伍明细
  82. rhUnReportDetails: async (params: any) => {
  83. return await request.get({ url: `/pms/iot-rh-daily-report/rhUnReportDetails`, params })
  84. },
  85. // 查询项目任务实际进度列表
  86. taskActualProgress: async (params: any) => {
  87. return await request.get({ url: `/pms/iot-rh-daily-report/taskActualProgress`, params })
  88. },
  89. // 查询瑞恒日报详情
  90. getIotRhDailyReport: async (id: number) => {
  91. return await request.get({ url: `/pms/iot-rh-daily-report/get?id=` + id })
  92. },
  93. // 新增瑞恒日报
  94. createIotRhDailyReport: async (data: IotRhDailyReportVO) => {
  95. return await request.post({ url: `/pms/iot-rh-daily-report/create`, data })
  96. },
  97. // 修改瑞恒日报
  98. updateIotRhDailyReport: async (data: IotRhDailyReportVO) => {
  99. return await request.put({ url: `/pms/iot-rh-daily-report/update`, data })
  100. },
  101. approvalIotRhDailyReport: async (data: { id: number; auditStatus: 20 | 30; opinion: string }) => {
  102. return await request.put({ url: `/pms/iot-rh-daily-report/approval`, data })
  103. },
  104. // 删除瑞恒日报
  105. deleteIotRhDailyReport: async (id: number) => {
  106. return await request.delete({ url: `/pms/iot-rh-daily-report/delete?id=` + id })
  107. },
  108. // 导出瑞恒日报 Excel
  109. exportIotRhDailyReport: async (params) => {
  110. return await request.download({ url: `/pms/iot-rh-daily-report/export-excel`, params })
  111. },
  112. exportIotRhDailyReportWell: async (params) => {
  113. return await request.download({ url: `/pms/iot-rh-daily-report/exportSingleWells`, params })
  114. },
  115. exportIotRhDailyReportTeam: async (params) => {
  116. return await request.download({ url: `/pms/iot-rh-daily-report/exportSingleTeams`, params })
  117. }
  118. }