|
@@ -5,7 +5,11 @@
|
|
|
<view class="row">
|
|
<view class="row">
|
|
|
<text class="item-top-text">
|
|
<text class="item-top-text">
|
|
|
任务单号:{{ item.orderNo }}
|
|
任务单号:{{ item.orderNo }}
|
|
|
- <text>(<text :style="{ color: checkTypeColor }">{{ checkType }}</text>)</text>
|
|
|
|
|
|
|
+ <text>
|
|
|
|
|
+ (
|
|
|
|
|
+ <text :style="{ color: checkTypeColor }">{{ checkType }}</text>
|
|
|
|
|
+ )
|
|
|
|
|
+ </text>
|
|
|
</text>
|
|
</text>
|
|
|
<text v-if="item.equipNum" class="item-top-num-box">{{ item.equipNum }}台</text>
|
|
<text v-if="item.equipNum" class="item-top-num-box">{{ item.equipNum }}台</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -17,8 +21,14 @@
|
|
|
|
|
|
|
|
<view class="item-center">
|
|
<view class="item-center">
|
|
|
<view class="row-center">
|
|
<view class="row-center">
|
|
|
- <text class="title">检测时间:<text class="text">{{ checkDate }}</text></text>
|
|
|
|
|
- <text class="title">设备注册代码:<text class="text">{{ item.equipCode }}</text></text>
|
|
|
|
|
|
|
+ <text class="title">
|
|
|
|
|
+ 检测时间:
|
|
|
|
|
+ <text class="text">{{ checkDate }}</text>
|
|
|
|
|
+ </text>
|
|
|
|
|
+ <text class="title">
|
|
|
|
|
+ 设备注册代码:
|
|
|
|
|
+ <text class="text">{{ item.equipCode }}</text>
|
|
|
|
|
+ </text>
|
|
|
<view class="row">
|
|
<view class="row">
|
|
|
<text class="title">主报告状态:</text>
|
|
<text class="title">主报告状态:</text>
|
|
|
<view class="status-badge">
|
|
<view class="status-badge">
|
|
@@ -27,20 +37,27 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <text class="title">使用单位:<text class="text">{{ item.unitName }}</text></text>
|
|
|
|
|
|
|
+ <text class="title">
|
|
|
|
|
+ 使用单位:
|
|
|
|
|
+ <text class="text">{{ item.unitName }}</text>
|
|
|
|
|
+ </text>
|
|
|
<view class="row-center">
|
|
<view class="row-center">
|
|
|
<text class="title">
|
|
<text class="title">
|
|
|
- 项目负责人:<text class="text">{{ item?.manager?.nickname }}</text>
|
|
|
|
|
|
|
+ 项目负责人:
|
|
|
|
|
+ <text class="text">{{ item?.manager?.nickname }}</text>
|
|
|
</text>
|
|
</text>
|
|
|
<text class="title">
|
|
<text class="title">
|
|
|
- 主检人:<text class="text">{{ item?.mainCheckerUser?.nickname }}</text>
|
|
|
|
|
|
|
+ 主检人:
|
|
|
|
|
+ <text class="text">{{ item?.mainCheckerUser?.nickname }}</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
<text class="title">
|
|
<text class="title">
|
|
|
- 检验员:<text class="text">{{ checkUsersText }}</text>
|
|
|
|
|
|
|
+ 检验员:
|
|
|
|
|
+ <text class="text">{{ checkUsersText }}</text>
|
|
|
</text>
|
|
</text>
|
|
|
<text class="title">
|
|
<text class="title">
|
|
|
- 检验项目:<text class="text">{{ reportText }}</text>
|
|
|
|
|
|
|
+ 检验项目:
|
|
|
|
|
+ <text class="text">{{ reportText }}</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -48,8 +65,12 @@
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { computed } from 'vue'
|
|
import { computed } from 'vue'
|
|
|
-import { PressureCheckTypeMap } from '@/utils/dictMap'
|
|
|
|
|
|
|
+import { PressureCheckTypeMap, BoilerPressureCheckTypeMap, PipeCheckTypeMap, EquipmentType } from '@/utils/dictMap'
|
|
|
import { PressureCheckerMyTaskStatusMap } from '@/utils/dictMap'
|
|
import { PressureCheckerMyTaskStatusMap } from '@/utils/dictMap'
|
|
|
|
|
+import { useConfigStore } from '@/store/config'
|
|
|
|
|
+
|
|
|
|
|
+const configStore = useConfigStore()
|
|
|
|
|
+const equipType = configStore.getEquipType()
|
|
|
|
|
|
|
|
interface Props {
|
|
interface Props {
|
|
|
item: any
|
|
item: any
|
|
@@ -64,7 +85,18 @@ const emit = defineEmits<{
|
|
|
}>()
|
|
}>()
|
|
|
|
|
|
|
|
const checkType = computed(() => {
|
|
const checkType = computed(() => {
|
|
|
- return PressureCheckTypeMap[props.item.checkType] || ''
|
|
|
|
|
|
|
+ let checkTypeMap = BoilerPressureCheckTypeMap
|
|
|
|
|
+ switch(equipType) {
|
|
|
|
|
+ case EquipmentType.BOILER:
|
|
|
|
|
+ checkTypeMap = BoilerPressureCheckTypeMap
|
|
|
|
|
+ break
|
|
|
|
|
+ case EquipmentType.PIPE:
|
|
|
|
|
+ checkTypeMap = PipeCheckTypeMap
|
|
|
|
|
+ break
|
|
|
|
|
+ default:
|
|
|
|
|
+ checkTypeMap = PressureCheckTypeMap
|
|
|
|
|
+ }
|
|
|
|
|
+ return checkTypeMap[props.item.checkType] || ''
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const checkTypeColor = computed(() => {
|
|
const checkTypeColor = computed(() => {
|