|
|
@@ -414,7 +414,7 @@
|
|
|
width="150px"
|
|
|
align="center">
|
|
|
<template #default>
|
|
|
- 法定检验
|
|
|
+ {{ typeOptions.find(type => type.value == inspectionNatureTypeList.find(item => item.nature == taskOrderDetail.checkType).type)?.label || '-' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -991,6 +991,7 @@ import PipelineDetailList from "./PipelineDetailList.vue";
|
|
|
import {EquipPipeSchedulingDetailVO} from "@/api/pressure2/pipescheduling";
|
|
|
import OrderDialog from "@/views/pressure2/boilertaskorder/components/OrderDialog.vue";
|
|
|
import calcCheckItemFee from './calcCheckItemFee.vue'
|
|
|
+import {InspectionNatureTypeApi} from "../../../../api/pressure2/inspectionnaturetype";
|
|
|
|
|
|
|
|
|
const userStore = useUserStore()
|
|
|
@@ -1110,14 +1111,30 @@ const serviceOrderDialogFormData = ref<Record<string,any>>({
|
|
|
confirmStatus: ''
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+const typeOptions = [
|
|
|
+ {
|
|
|
+ value: 1,
|
|
|
+ label: '法定'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 2,
|
|
|
+ label: '委托'
|
|
|
+ }
|
|
|
+]
|
|
|
+
|
|
|
const formRef = ref()
|
|
|
// 选中的设备
|
|
|
const selectedEquips = ref<PipeTaskOrderItemVO[]>([])
|
|
|
-
|
|
|
+const inspectionNatureTypeList = ref([])
|
|
|
watch(() => props.taskOrder, (newVal) => {
|
|
|
if (newVal) {
|
|
|
taskOrderDetail.value = JSON.parse(JSON.stringify(newVal)); // Use deep copy if modifications are made locally, otherwise direct assignment is fine
|
|
|
-
|
|
|
+ InspectionNatureTypeApi.getInspectionNatureTypePage({
|
|
|
+ equip:"300"
|
|
|
+ }).then(res=>{
|
|
|
+ inspectionNatureTypeList.value = res.list
|
|
|
+ })
|
|
|
// 更新异常单信息
|
|
|
const orderExceptionRespVO = taskOrderDetail.value.orderExceptionRespVO
|
|
|
if(orderExceptionRespVO){
|