Pārlūkot izejas kodu

显示通用的检验方案

xy 3 nedēļas atpakaļ
vecāks
revīzija
5e4fa9a4c8

+ 1 - 1
yudao-ui-admin-vue3/src/views/pressure2/boilertaskorder/components/AddInspectionplan.vue

@@ -160,7 +160,7 @@ const getInspectionPlanData = async (params: Record<string, any>) => {
   let filteredOptions = optionsResult.value
   if (inspectionPlanType.value === 'commPlan') {
     // 通用方案:筛选 reportType=900 且 pjType=5 的数据
-    filteredOptions = optionsResult.value.filter(item => item.reportType === 900 && item.pjType === 3)
+    filteredOptions = optionsResult.value.filter(item => item.reportType === 900 && (item.pjType === 3 || item.pjType === 5))
   } else if (inspectionPlanType.value === 'selfPlan') {
     // 自编方案:筛选 reportType=500 且 pjType=3 的数据
     filteredOptions = optionsResult.value.filter(item => item.reportType === 500 && item.pjType === 5)

+ 1 - 1
yudao-ui-admin-vue3/src/views/pressure2/pipetaskorder/components/AddInspectionplan.vue

@@ -160,7 +160,7 @@ const getInspectionPlanData = async (params: Record<string, any>) => {
   let filteredOptions = optionsResult.value
   if (inspectionPlanType.value === 'commPlan') {
     // 通用方案
-    filteredOptions = optionsResult.value.filter(item => item.reportType === 900 && item.pjType === 4)
+    filteredOptions = optionsResult.value.filter(item => item.reportType === 900 && (item.pjType === 4 || item.pjType === 5))
   } else if (inspectionPlanType.value === 'selfPlan') {
     // 自编方案
     filteredOptions = optionsResult.value.filter(item => item.reportType === 500 && item.pjType === 5)