gaoluyang
6 天以前 50316697ae6a627b9a3535e94608063ac1eb404e
巡检任务状态按巡检结果判断,已巡检不再显示“未巡检”

- 提交巡检结果(0异常/1正常)后直接显示“已完成”
- 不再依赖附件数量判断,避免正常巡检(无照片)一直显示“未巡检”

Co-Authored-By: Claude Code <noreply@anthropic.com>
已修改1个文件
11 ■■■■■ 文件已修改
src/pages/inspectionUpload/index.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/inspectionUpload/index.vue
@@ -296,6 +296,17 @@
  };
  const getFileStatus = record => {
    // 已提交巡检结果(0-异常,1-正常)即表示该任务已巡检完成,
    // 不再依赖附件数量判断,避免“正常”巡检(无照片)仍显示“未巡检”
    const inspectionResult = record.inspectionResult;
    if (
      inspectionResult !== undefined &&
      inspectionResult !== null &&
      String(inspectionResult).trim() !== ""
    ) {
      return 2;
    }
    let _beforeProduction =
      (record.commonFileListBeforeVO && record.commonFileListBeforeVO.length) ||
      (record.commonFileListBefore && record.commonFileListBefore.length);