spring
2026-03-18 ffa0f0b4d51e995c1ab35803af1b34b337e1d4f8
src/views/qualityManagement/nonconformingManagement/index.vue
@@ -80,31 +80,13 @@
const { searchForm } = toRefs(data);
const tableColumn = ref([
  {
    label: "状态",
    prop: "inspectState",
    dataType: "tag",
    formatData: (params) => {
      if (params == 0) {
        return "待处理";
      } else if (params == 1) {
        return "已处理";
      } else {
        return null;
      }
    },
    formatType: (params) => {
      if (params == '不合格') {
        return "danger";
      } else if (params == '合格') {
        return "success";
      } else {
        return null;
      }
    },
  },
  {
    label: "检测日期",
    prop: "checkTime",
    width: 120
  },
  {
    label: "批号",
    prop: "batchNo",
    width: 120
  },
  {
@@ -147,11 +129,11 @@
    label: "单位",
    prop: "unit",
  },
  {
    label: "数量",
    prop: "quantity",
    width: 100
  },
  // {
  //   label: "数量",
  //   prop: "quantity",
  //   width: 100
  // },
  {
    label: "不合格现象",
    prop: "defectivePhenomena",
@@ -171,23 +153,6 @@
    label: "处理日期",
    prop: "dealTime",
    width: 120
  },
  {
    dataType: "action",
    label: "操作",
    align: "center",
    fixed: "right",
    width: 100,
    operation: [
      {
        name: "处理",
        type: "text",
        clickFun: (row) => {
          openInspectionForm("edit", row);
        },
        disabled: (row) => row.inspectState === 1,
      },
    ],
  },
]);
const tableData = ref([]);