|
@@ -51,31 +51,43 @@
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col v-bind="ElColSpanConfig">
|
|
|
|
|
+ <el-form-item class="w-full" label="设备种类" prop="equipType">
|
|
|
|
|
+ <el-select v-model="queryParams.equipType" placeholder="请选择设备种类" clearable>
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in equipPipeTypeOptions"
|
|
|
|
|
+ :key="dict.value"
|
|
|
|
|
+ :label="dict.label"
|
|
|
|
|
+ :value="dict.value"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
<!-- <el-col v-bind="ElColSpanConfig">-->
|
|
<!-- <el-col v-bind="ElColSpanConfig">-->
|
|
|
-<!-- <el-form-item label="检验性质" prop="checkType" class="w-full">-->
|
|
|
|
|
-<!-- <el-select v-model="queryParams.checkType" placeholder="请选择" clearable>-->
|
|
|
|
|
|
|
+<!-- <el-form-item label="检验性质" prop="checkTypeName" class="w-full">-->
|
|
|
|
|
+<!-- <el-select v-model="queryParams.checkTypeName" placeholder="请选择" clearable>-->
|
|
|
<!-- <el-option-->
|
|
<!-- <el-option-->
|
|
|
-<!-- v-for="(item, key) in checkTypeMap"-->
|
|
|
|
|
-<!-- :key="key"-->
|
|
|
|
|
-<!-- :label="item"-->
|
|
|
|
|
-<!-- :value="key"-->
|
|
|
|
|
|
|
+<!-- v-for="(item) in allCheckTypeOptions"-->
|
|
|
|
|
+<!-- :key="item.value"-->
|
|
|
|
|
+<!-- :label="item.label"-->
|
|
|
|
|
+<!-- :value="item.value"-->
|
|
|
<!-- />-->
|
|
<!-- />-->
|
|
|
<!-- </el-select>-->
|
|
<!-- </el-select>-->
|
|
|
<!-- </el-form-item>-->
|
|
<!-- </el-form-item>-->
|
|
|
<!-- </el-col>-->
|
|
<!-- </el-col>-->
|
|
|
- <el-col v-bind="ElColSpanConfig">
|
|
|
|
|
- <el-form-item class="w-full" label="单位名称" prop="unitName">
|
|
|
|
|
- <el-input
|
|
|
|
|
- class="w-full"
|
|
|
|
|
- v-model="queryParams.unitName"
|
|
|
|
|
- placeholder="请输入单位名称"
|
|
|
|
|
- clearable
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-collapse-transition>
|
|
<el-collapse-transition>
|
|
|
<el-row getter="24" v-show="isSearchExpanded">
|
|
<el-row getter="24" v-show="isSearchExpanded">
|
|
|
|
|
+ <el-col v-bind="ElColSpanConfig">
|
|
|
|
|
+ <el-form-item class="w-full" label="单位名称" prop="unitName">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ class="w-full"
|
|
|
|
|
+ v-model="queryParams.unitName"
|
|
|
|
|
+ placeholder="请输入单位名称"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col v-bind="ElColSpanConfig">
|
|
<el-col v-bind="ElColSpanConfig">
|
|
|
<el-form-item class="w-full" label="区域" prop="equipDistrict">
|
|
<el-form-item class="w-full" label="区域" prop="equipDistrict">
|
|
|
<AreaSelect
|
|
<AreaSelect
|
|
@@ -87,18 +99,6 @@
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col v-bind="ElColSpanConfig">
|
|
|
|
|
- <el-form-item class="w-full" label="设备类型" prop="equipMainType">
|
|
|
|
|
- <el-select v-model="queryParams.equipMainType" placeholder="请选择设备类型" clearable>
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="dict in equipMainTypeList"
|
|
|
|
|
- :key="dict.value"
|
|
|
|
|
- :label="dict.label"
|
|
|
|
|
- :value="dict.value"
|
|
|
|
|
- />
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-collapse-transition>
|
|
</el-collapse-transition>
|
|
|
</el-form>
|
|
</el-form>
|
|
@@ -165,14 +165,14 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="区域" align="center" prop="equipDistrictName" min-width="130" />
|
|
<el-table-column label="区域" align="center" prop="equipDistrictName" min-width="130" />
|
|
|
<el-table-column label="使用证编号" align="center" prop="useRegisterNo" min-width="130" />
|
|
<el-table-column label="使用证编号" align="center" prop="useRegisterNo" min-width="130" />
|
|
|
- <el-table-column label="检验性质" align="center" prop="checkType" min-width="120">
|
|
|
|
|
|
|
+ <el-table-column label="检验性质" align="center" prop="checkTypeName" min-width="120">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
- {{ checkTypeMap[row.checkType] }}
|
|
|
|
|
|
|
+ {{ row.checkTypeName || '-'}}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="运行状态" align="center" prop="equipStatus" min-width="120">
|
|
|
|
|
|
|
+ <el-table-column label="运行状态" align="center" prop="equipStatusName" min-width="120">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
- {{ row.equipStatus ? equipStatusList.find(item => item.value == row.equipStatus)?.label : '-' }}
|
|
|
|
|
|
|
+ {{ row.equipStatusName || '-' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="下次检验日期" align="center" prop="nextCheckDate" width="120">
|
|
<el-table-column label="下次检验日期" align="center" prop="nextCheckDate" width="120">
|
|
@@ -239,7 +239,7 @@
|
|
|
import { formatArrayDate } from '@/utils/formatTime'
|
|
import { formatArrayDate } from '@/utils/formatTime'
|
|
|
import fetchAPis, { ListItemVo } from './index.api'
|
|
import fetchAPis, { ListItemVo } from './index.api'
|
|
|
import RefuseAnnualInspectionRemarkForm from './RefuseAnnualInspectionRemarkForm.vue'
|
|
import RefuseAnnualInspectionRemarkForm from './RefuseAnnualInspectionRemarkForm.vue'
|
|
|
-import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
|
|
|
|
|
|
|
+import { DICT_TYPE, getStrDictOptions, mergeDictOptionsWithValueAsLabel } from '@/utils/dict'
|
|
|
import { ElMessageBox, ElTable } from 'element-plus'
|
|
import { ElMessageBox, ElTable } from 'element-plus'
|
|
|
import unitContainerForm from '@/components/unitContainerForm/index.vue'
|
|
import unitContainerForm from '@/components/unitContainerForm/index.vue'
|
|
|
import { ArrowDown, ArrowUp } from '@element-plus/icons-vue'
|
|
import { ArrowDown, ArrowUp } from '@element-plus/icons-vue'
|
|
@@ -251,7 +251,6 @@ defineOptions({ name: 'RefuseAnnualInspection' })
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
const dictStore = useDictStore()
|
|
const dictStore = useDictStore()
|
|
|
|
|
|
|
|
-const equipStatusList = getStrDictOptions(DICT_TYPE.SYSTEM_EQUIP_CONTAINER_STATUS)
|
|
|
|
|
const equipBoilerTypeOptions = getStrDictOptions(DICT_TYPE.SYSTEM_EQUIP_BOILER_TYPE)
|
|
const equipBoilerTypeOptions = getStrDictOptions(DICT_TYPE.SYSTEM_EQUIP_BOILER_TYPE)
|
|
|
const equipMainTypeList = dictStore.getDictMap[DICT_TYPE.PRESSURE2_EQUIP_MAIN_TYPE]
|
|
const equipMainTypeList = dictStore.getDictMap[DICT_TYPE.PRESSURE2_EQUIP_MAIN_TYPE]
|
|
|
const equipPipeTypeOptions = getStrDictOptions(DICT_TYPE.PIPE_TYPE)
|
|
const equipPipeTypeOptions = getStrDictOptions(DICT_TYPE.PIPE_TYPE)
|
|
@@ -293,18 +292,14 @@ const queryParams = reactive<Recordable>({
|
|
|
const queryFormRef = ref() // 搜索的表单
|
|
const queryFormRef = ref() // 搜索的表单
|
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
|
|
|
|
|
|
-const checkTypeMap = {
|
|
|
|
|
- 100: '法定',
|
|
|
|
|
- 200: '年检',
|
|
|
|
|
- 300: '超年限'
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
import { useDictStore } from '@/store/modules/dict'
|
|
import { useDictStore } from '@/store/modules/dict'
|
|
|
import {
|
|
import {
|
|
|
AppointmentConfirmOrderRefuseItemApi,
|
|
AppointmentConfirmOrderRefuseItemApi,
|
|
|
AppointmentConfirmOrderRefuseItemVO
|
|
AppointmentConfirmOrderRefuseItemVO
|
|
|
} from '@/api/pressure2/appointmentconfirmorderrefuseitem'
|
|
} from '@/api/pressure2/appointmentconfirmorderrefuseitem'
|
|
|
-import {PressureEquipMainType, PressureEquipMainTypeMap} from "@/utils/constants";
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ PressureEquipMainType,
|
|
|
|
|
+} from "@/utils/constants";
|
|
|
import download from "@/utils/download";
|
|
import download from "@/utils/download";
|
|
|
const getReasonDictStatus = computed(() => dictStore.getDictMap['refuseInspectedCategory'])
|
|
const getReasonDictStatus = computed(() => dictStore.getDictMap['refuseInspectedCategory'])
|
|
|
const getRowReason = (row) => {
|
|
const getRowReason = (row) => {
|