index.ts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. import request from '@/config/axios'
  2. // 瑞鹰日报 VO
  3. export interface IotRyDailyReportVO {
  4. createTime: number
  5. transitTime: any
  6. totalStaffNum: any
  7. offDutyStaffNum: any
  8. id: number // 主键id
  9. deptId: number // 施工队伍id
  10. projectId: number // 项目id
  11. taskId: number // 任务id
  12. projectClassification: string // 项目类别(钻井 修井 注氮 酸化压裂... )
  13. relocationDays: number // 搬迁安装天数(D)
  14. latestWellDoneTime: Date // 上井次完井时间
  15. currentDepth: number // 当前井深(m)
  16. dailyFootage: number // 日进尺(m)
  17. monthlyFootage: number // 月进尺(m)
  18. annualFootage: number // 年累计进尺(m)
  19. dailyPowerUsage: number // 当日用电量(kWh)
  20. monthlyPowerUsage: number // 当月用电量(kWh)
  21. dailyFuel: number // 当日油耗(吨)
  22. monthlyFuel: number // 当月油耗(吨)
  23. nonProductionTime: number // 非生产时间(H)
  24. nptReason: string // 非生产时间原因
  25. drillingWorkingTime: number
  26. otherProductionTime: number
  27. accidentTime: number
  28. repairTime: number
  29. selfStopTime: number
  30. complexityTime: number
  31. relocationTime: number
  32. rectificationTime: number
  33. waitingStopTime: number
  34. winterBreakTime: number
  35. constructionStartDate: Date // 施工开始日期
  36. constructionEndDate: Date // 施工结束日期
  37. productionStatus: string // 当日生产情况生产动态
  38. nextPlan: string // 下步工作计划
  39. rigStatus: number // 施工状态(动迁 准备 施工 完工)
  40. personnel: string // 人员情况
  41. mudDensity: number // 泥浆性能-密度(g/cm³)
  42. mudViscosity: number // 泥浆性能-粘度(S)
  43. lateralLength: number // 水平段长度(m) 适用于水平井
  44. wellInclination: number // 井斜(°)
  45. azimuth: number // 方位(°)
  46. extProperty: string // 不同专业公司的扩展属性值
  47. sort: number // 排序值
  48. remark: string // 备注
  49. status: number // 状态(0启用 1禁用)
  50. processInstanceId: string // 流程实例id
  51. auditStatus: number // 审批状态 未提交、审批中、审批通过、审批不通过、已取消
  52. }
  53. // 瑞鹰日报 API
  54. export const IotRyDailyReportApi = {
  55. exportRyDailyReportStatistics: async (params: any) => {
  56. return await request.download({
  57. url: `/pms/iot-ry-daily-report/exportStatistics`,
  58. params
  59. })
  60. },
  61. getIotRyDailyReportTeamPage: async (params: any) => {
  62. return await request.get({ url: `/pms/iot-ry-daily-report/teamReports`, params })
  63. },
  64. getIotRyDailyReportWellPage: async (params: any) => {
  65. return await request.get({ url: `/pms/iot-ry-daily-report/wellReports`, params })
  66. },
  67. ryUnReportDetails: async (params: any) => {
  68. return await request.get({ url: `/pms/iot-ry-daily-report/ryUnReportDetails`, params })
  69. },
  70. getIotRyDailyReportSummaryPolyline: async (params: any) => {
  71. return await request.get({ url: `/pms/iot-ry-daily-report/polylineStatistics`, params })
  72. },
  73. // 查询瑞鹰日报分页
  74. getIotRyDailyReportPage: async (params: any) => {
  75. return await request.get({ url: `/pms/iot-ry-daily-report/page`, params })
  76. },
  77. getIotRyDailyReportSummary: async (params: any) => {
  78. return await request.get({ url: `/pms/iot-ry-daily-report/statistics`, params })
  79. },
  80. // 累计工作量统计
  81. totalWorkload: async (params: any) => {
  82. return await request.get({ url: `/pms/iot-ry-daily-report/totalWorkload`, params })
  83. },
  84. // 按照日期查询瑞恒日报统计数据 已填报 未填报 数量
  85. ryDailyReportStatistics: async (params: any) => {
  86. return await request.get({ url: `/pms/iot-ry-daily-report/ryDailyReportStatistics`, params })
  87. },
  88. // 查询瑞鹰日报详情
  89. getIotRyDailyReport: async (id: number) => {
  90. return await request.get({ url: `/pms/iot-ry-daily-report/get?id=` + id })
  91. },
  92. // 新增瑞鹰日报
  93. createIotRyDailyReport: async (data: IotRyDailyReportVO) => {
  94. return await request.post({ url: `/pms/iot-ry-daily-report/create`, data })
  95. },
  96. // 修改瑞鹰日报
  97. updateIotRyDailyReport: async (data: IotRyDailyReportVO) => {
  98. return await request.put({ url: `/pms/iot-ry-daily-report/update`, data })
  99. },
  100. // 删除瑞鹰日报
  101. deleteIotRyDailyReport: async (id: number) => {
  102. return await request.delete({ url: `/pms/iot-ry-daily-report/delete?id=` + id })
  103. },
  104. // 导出瑞鹰日报 Excel
  105. exportIotRyDailyReport: async (params) => {
  106. return await request.download({ url: `/pms/iot-ry-daily-report/export-excel`, params })
  107. },
  108. approvalIotRyDailyReport: async (data: {
  109. id: number
  110. auditStatus: 20 | 30
  111. opinion: string
  112. constructionBrief?: string
  113. }) => {
  114. return await request.put({ url: `/pms/iot-ry-daily-report/approval`, data })
  115. },
  116. exportIotRyDailyReportWell: async (params) => {
  117. return await request.download({ url: `/pms/iot-ry-daily-report/exportSingleWells`, params })
  118. },
  119. exportIotRyDailyReportTeam: async (params) => {
  120. return await request.download({ url: `/pms/iot-ry-daily-report/exportSingleTeams`, params })
  121. }
  122. }