BoilerTaskItemInfo.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="task-center">
  3. <view class="row-center">
  4. <!-- 检验日期 -->
  5. <text class="title">
  6. 检验日期:
  7. <text class="text">{{ item.checkDate }}</text>
  8. </text>
  9. <!-- 检验性质 -->
  10. <text class="title">
  11. 检验性质:
  12. <text class="text">
  13. {{ columns.find((col) => col.value === item.checkType)?.label || '-' }}
  14. </text>
  15. </text>
  16. <!-- 主报告状态 -->
  17. <text class="title">
  18. 主报告状态:
  19. <text>{{ taskStatusList.find((col) => col.value === item.taskStatus)?.label || '-' }}</text>
  20. </text>
  21. </view>
  22. <view class="row-center">
  23. <text class="title">
  24. 设备注册代码:
  25. <text class="text">{{ item.equipCode }}</text>
  26. </text>
  27. </view>
  28. <view class="row-center">
  29. <text class="title">
  30. 使用证编号:
  31. <text class="text">{{ item.useRegisterNo }}</text>
  32. </text>
  33. <!-- <text class="title">费用:<text class="text">{{ item.fee || '-' }}</text></text> -->
  34. </view>
  35. <view class="row-center">
  36. <text class="title">
  37. 单位名称:
  38. <text class="text">{{ item.unitName }}</text>
  39. </text>
  40. </view>
  41. </view>
  42. </template>
  43. <script lang="ts" setup>
  44. import { computed, ref, watch } from 'vue'
  45. import { PressureCheckerMyTaskStatus } from '@/utils/dictMap'
  46. interface Props {
  47. item: any
  48. }
  49. const props = defineProps<Props>()
  50. const columns = [
  51. { label: '定期检验', value: 100 },
  52. { label: '年度检查', value: 200 },
  53. // { label: '超年限检验', value: 300 },
  54. ]
  55. const taskStatusList = [
  56. { label: '待认领', value: PressureCheckerMyTaskStatus.WAIT_CONFIRM },
  57. { label: '作废', value: PressureCheckerMyTaskStatus.CANCELLATION },
  58. { label: '待录入', value: PressureCheckerMyTaskStatus.CONFIRMED },
  59. { label: '记录录入', value: PressureCheckerMyTaskStatus.RECORD_INPUT },
  60. { label: '记录校核', value: PressureCheckerMyTaskStatus.RECORD_CHECK },
  61. { label: '报告编制', value: PressureCheckerMyTaskStatus.REPORT_INPUT },
  62. { label: '报告审核', value: PressureCheckerMyTaskStatus.REPORT_AUDIT },
  63. { label: '报告审批', value: PressureCheckerMyTaskStatus.REPORT_APPROVE },
  64. { label: '报告报告办结', value: PressureCheckerMyTaskStatus.REPORT_END },
  65. ]
  66. </script>
  67. <style lang="scss" scoped>
  68. .task-center {
  69. display: flex;
  70. align-items: center;
  71. flex-flow: column nowrap;
  72. justify-content: space-between;
  73. padding: 8px 12px;
  74. background-color: rgb(244, 244, 244);
  75. border-radius: 5px;
  76. }
  77. .row-center {
  78. display: flex;
  79. flex-direction: row;
  80. flex-wrap: wrap;
  81. justify-content: space-between;
  82. align-items: center;
  83. width: 100%;
  84. }
  85. .title {
  86. color: rgb(108, 108, 108);
  87. font-size: 12px;
  88. line-height: 25px;
  89. margin-right: 5px;
  90. }
  91. .text {
  92. color: rgb(51, 51, 51);
  93. font-size: 12px;
  94. line-height: 25px;
  95. }
  96. </style>