ZN
2026-03-19 cae70531775662bfa788ff65d52274b404eb1c40
fix(生产报表): 调整审核状态列位置和操作按钮逻辑

将审核状态列移至工序列后,使其更符合业务流程顺序。同时修改操作按钮逻辑:删除按钮始终显示,审核按钮在已审核状态下禁用而非隐藏,提升操作一致性。
已修改1个文件
45 ■■■■ 文件已修改
src/views/productionManagement/productionReporting/index.vue 45 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionReporting/index.vue
@@ -218,6 +218,20 @@
      prop: "process",
      width: 120,
    },
     {
      label: "审核状态",
      prop: "auditStatus",
      width: 120,
      dataType: "tag",
      formatData: val => {
        const statusMap = { 0: "未审核", 1: "通过", 2: "不通过" };
        return statusMap[val] ?? "未知";
      },
      formatType: val => {
        const typeMap = { 0: "info", 1: "success", 2: "danger" };
        return typeMap[val] ?? "";
      },
    },
    {
      label: "工单编号",
      prop: "workOrderNo",
@@ -259,20 +273,6 @@
      width: 120,
    },
    {
      label: "审核状态",
      prop: "auditStatus",
      width: 120,
      dataType: "tag",
      formatData: val => {
        const statusMap = { 0: "未审核", 1: "通过", 2: "不通过" };
        return statusMap[val] ?? "未知";
      },
      formatType: val => {
        const typeMap = { 0: "info", 1: "success", 2: "danger" };
        return typeMap[val] ?? "";
      },
    },
    {
      label: "创建时间",
      prop: "createTime",
      width: 120,
@@ -292,21 +292,20 @@
          },
        },
        {
          name:"审核",
          // 黄色
          color: "#E6A23C",
          clickFun: row => {
            handleAudit(row);
          },
          showHide: row => Number(row?.auditStatus) === 0, // 仅当未审核时显示审核按钮
        },
        {
          name: "删除",
          type: "danger",
          clickFun: row => {
            deleteReport(row);
          },
        },
        {
          name:"审核",
          color: "#E6A23C",
          clickFun: row => {
            handleAudit(row);
          },
          disabled: row => Number(row?.auditStatus) !== 0, // 已审核时禁用审核按钮
        },
      ],
    },
  ]);