index.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. ryUnReportDetails: async (params: any) => {
  62. return await request.get({ url: `/pms/iot-ry-daily-report/ryUnReportDetails`, params })
  63. },
  64. getIotRyDailyReportSummaryPolyline: async (params: any) => {
  65. return await request.get({ url: `/pms/iot-ry-daily-report/polylineStatistics`, params })
  66. },
  67. // 查询瑞鹰日报分页
  68. getIotRyDailyReportPage: async (params: any) => {
  69. return await request.get({ url: `/pms/iot-ry-daily-report/page`, params })
  70. },
  71. getIotRyDailyReportSummary: async (params: any) => {
  72. return await request.get({ url: `/pms/iot-ry-daily-report/statistics`, params })
  73. },
  74. // 累计工作量统计
  75. totalWorkload: async (params: any) => {
  76. return await request.get({ url: `/pms/iot-ry-daily-report/totalWorkload`, params })
  77. },
  78. // 按照日期查询瑞恒日报统计数据 已填报 未填报 数量
  79. ryDailyReportStatistics: async (params: any) => {
  80. return await request.get({ url: `/pms/iot-ry-daily-report/ryDailyReportStatistics`, params })
  81. },
  82. // 查询瑞鹰日报详情
  83. getIotRyDailyReport: async (id: number) => {
  84. return await request.get({ url: `/pms/iot-ry-daily-report/get?id=` + id })
  85. },
  86. // 新增瑞鹰日报
  87. createIotRyDailyReport: async (data: IotRyDailyReportVO) => {
  88. return await request.post({ url: `/pms/iot-ry-daily-report/create`, data })
  89. },
  90. // 修改瑞鹰日报
  91. updateIotRyDailyReport: async (data: IotRyDailyReportVO) => {
  92. return await request.put({ url: `/pms/iot-ry-daily-report/update`, data })
  93. },
  94. // 删除瑞鹰日报
  95. deleteIotRyDailyReport: async (id: number) => {
  96. return await request.delete({ url: `/pms/iot-ry-daily-report/delete?id=` + id })
  97. },
  98. // 导出瑞鹰日报 Excel
  99. exportIotRyDailyReport: async (params) => {
  100. return await request.download({ url: `/pms/iot-ry-daily-report/export-excel`, params })
  101. }
  102. }