Explorar el Código

调整检测录入记录文件的检验方案过滤逻辑

yangguanjin hace 1 semana
padre
commit
7d51b9c072
Se han modificado 1 ficheros con 10 adiciones y 9 borrados
  1. 10 9
      src/api/task.ts

+ 10 - 9
src/api/task.ts

@@ -423,15 +423,16 @@ export const getFilterReport = (reportList: any[] | undefined, equipCode?: strin
       item.reportType === PressureReportType.SUBPACKAGE ||
       item.reportType === PressureReportType.FINITE_SPACE
     ) {
-      if ([PressureReportType.INSPECTIONPLAN].includes(item.reportType as number)) {
-        // 蚁群原版是只显示已通过检验方案
-        // 显示退回以外的检验方案(未提交则作为提交审核的入口,要配套上传文件功能)
-        if (![300].includes(item.status)) {
-          otherReportList.push({ ...item, equipCode })
-        }
-      } else {
-        otherReportList.push({ ...item, equipCode })
-      }
+      // if ([PressureReportType.INSPECTIONPLAN].includes(item.reportType as number)) {
+      //   // 蚁群原版是只显示已通过检验方案
+      //   // 显示退回以外的检验方案(未提交则作为提交审核的入口,要配套上传文件功能)
+      //   if (![300].includes(item.status)) {
+      //     otherReportList.push({ ...item, equipCode })
+      //   }
+      // } else {
+      //   otherReportList.push({ ...item, equipCode })
+      // }
+      otherReportList.push({ ...item, equipCode })
     } else {
       checkReportList.push(item)
     }