index.ts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. // 瑞恒日报 API
  38. export const IotRhDailyReportApi = {
  39. // 查询瑞恒日报分页
  40. getIotRhDailyReportPage: async (params: any) => {
  41. return await request.get({ url: `/pms/iot-rh-daily-report/page`, params })
  42. },
  43. getIotRhDailyReportTeamPage: async (params: any) => {
  44. return await request.get({ url: `/pms/iot-rh-daily-report/teamReports`, params })
  45. },
  46. getIotRhDailyReportWellPage: async (params: any) => {
  47. return await request.get({ url: `/pms/iot-rh-daily-report/wellReports`, params })
  48. },
  49. getIotRhDailyReportSummary: async (params: any) => {
  50. return await request.get({ url: `/pms/iot-rh-daily-report/statistics`, params })
  51. },
  52. getIotRhDailyReportSummaryPolyline: async (params: any) => {
  53. return await request.get({ url: `/pms/iot-rh-daily-report/polylineStatistics`, params })
  54. },
  55. // 累计工作量统计
  56. totalWorkload: async (params: any) => {
  57. return await request.get({ url: `/pms/iot-rh-daily-report/totalWorkload`, params })
  58. },
  59. // 按照日期查询瑞恒日报统计数据 已填报 未填报 数量
  60. rhDailyReportStatistics: async (params: any) => {
  61. return await request.get({ url: `/pms/iot-rh-daily-report/rhDailyReportStatistics`, params })
  62. },
  63. exportRhDailyReportStatistics: async (params: any) => {
  64. return await request.download({
  65. url: `/pms/iot-rh-daily-report/exportStatistics`,
  66. params
  67. })
  68. },
  69. // 按照日期查询瑞恒日报统计数据 未填报队伍明细
  70. rhUnReportDetails: async (params: any) => {
  71. return await request.get({ url: `/pms/iot-rh-daily-report/rhUnReportDetails`, params })
  72. },
  73. // 查询项目任务实际进度列表
  74. taskActualProgress: async (params: any) => {
  75. return await request.get({ url: `/pms/iot-rh-daily-report/taskActualProgress`, params })
  76. },
  77. // 查询瑞恒日报详情
  78. getIotRhDailyReport: async (id: number) => {
  79. return await request.get({ url: `/pms/iot-rh-daily-report/get?id=` + id })
  80. },
  81. // 新增瑞恒日报
  82. createIotRhDailyReport: async (data: IotRhDailyReportVO) => {
  83. return await request.post({ url: `/pms/iot-rh-daily-report/create`, data })
  84. },
  85. // 修改瑞恒日报
  86. updateIotRhDailyReport: async (data: IotRhDailyReportVO) => {
  87. return await request.put({ url: `/pms/iot-rh-daily-report/update`, data })
  88. },
  89. approvalIotRhDailyReport: async (data: { id: number; auditStatus: 20 | 30; opinion: string }) => {
  90. return await request.put({ url: `/pms/iot-rh-daily-report/approval`, data })
  91. },
  92. // 删除瑞恒日报
  93. deleteIotRhDailyReport: async (id: number) => {
  94. return await request.delete({ url: `/pms/iot-rh-daily-report/delete?id=` + id })
  95. },
  96. // 导出瑞恒日报 Excel
  97. exportIotRhDailyReport: async (params) => {
  98. return await request.download({ url: `/pms/iot-rh-daily-report/export-excel`, params })
  99. }
  100. }