|
@@ -442,6 +442,7 @@ import {processInspectorGroups} from './inspector'
|
|
|
import type {ProcessedDeptData} from './inspector'
|
|
import type {ProcessedDeptData} from './inspector'
|
|
|
import {InspectionNatureTypeApi} from "@/api/pressure2/inspectionnaturetype";
|
|
import {InspectionNatureTypeApi} from "@/api/pressure2/inspectionnaturetype";
|
|
|
import {getDept} from "@/api/system/dept";
|
|
import {getDept} from "@/api/system/dept";
|
|
|
|
|
+import {ClientUnitApi} from "../../../../api/system/clientunit";
|
|
|
|
|
|
|
|
const message = useMessage()
|
|
const message = useMessage()
|
|
|
const {queryCheckItemList, querySchedulingCheckItemList} = BoilerTaskOrderApi
|
|
const {queryCheckItemList, querySchedulingCheckItemList} = BoilerTaskOrderApi
|
|
@@ -1161,6 +1162,14 @@ const handleQueryCheckItemList = async () => {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ const unitId = allTasks.length > 0 ? allTasks[0].unitId : undefined
|
|
|
|
|
+ if (unitId){
|
|
|
|
|
+ ClientUnitApi.getClientUnit(unitId).then(res => {
|
|
|
|
|
+ formData.value.inIsExempt = res.isExempt
|
|
|
|
|
+ formData.value.outIsExempt = res.isExempt
|
|
|
|
|
+ formData.value.preIsExempt = res.isExempt
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// 获取统一的设备类型,如果列表为空则设为 undefined
|
|
// 获取统一的设备类型,如果列表为空则设为 undefined
|
|
|
const equipType = allTasks.length > 0 ? allTasks[0].type : undefined
|
|
const equipType = allTasks.length > 0 ? allTasks[0].type : undefined
|