index.ts 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. getIotRhDailyReportSummary: async (params: any) => {
  44. return await request.get({ url: `/pms/iot-rh-daily-report/statistics`, params })
  45. },
  46. // 累计工作量统计
  47. totalWorkload: async (params: any) => {
  48. return await request.get({ url: `/pms/iot-rh-daily-report/totalWorkload`, params })
  49. },
  50. // 按照日期查询瑞恒日报统计数据 已填报 未填报 数量
  51. rhDailyReportStatistics: async (params: any) => {
  52. return await request.get({ url: `/pms/iot-rh-daily-report/rhDailyReportStatistics`, params })
  53. },
  54. // 按照日期查询瑞恒日报统计数据 未填报队伍明细
  55. rhUnReportDetails: async (params: any) => {
  56. return await request.get({ url: `/pms/iot-rh-daily-report/rhUnReportDetails`, params })
  57. },
  58. // 查询项目任务实际进度列表
  59. taskActualProgress: async (params: any) => {
  60. return await request.get({ url: `/pms/iot-rh-daily-report/taskActualProgress`, params })
  61. },
  62. // 查询瑞恒日报详情
  63. getIotRhDailyReport: async (id: number) => {
  64. return await request.get({ url: `/pms/iot-rh-daily-report/get?id=` + id })
  65. },
  66. // 新增瑞恒日报
  67. createIotRhDailyReport: async (data: IotRhDailyReportVO) => {
  68. return await request.post({ url: `/pms/iot-rh-daily-report/create`, data })
  69. },
  70. // 修改瑞恒日报
  71. updateIotRhDailyReport: async (data: IotRhDailyReportVO) => {
  72. return await request.put({ url: `/pms/iot-rh-daily-report/update`, data })
  73. },
  74. // 删除瑞恒日报
  75. deleteIotRhDailyReport: async (id: number) => {
  76. return await request.delete({ url: `/pms/iot-rh-daily-report/delete?id=` + id })
  77. },
  78. // 导出瑞恒日报 Excel
  79. exportIotRhDailyReport: async (params) => {
  80. return await request.download({ url: `/pms/iot-rh-daily-report/export-excel`, params })
  81. }
  82. }