spring
2026-04-02 61449dbf92441b41e37c1d519e8662cca998ff6a
src/views/qualityManagement/finalInspection/index.vue
@@ -19,7 +19,7 @@
        >
      </div>
      <div>
        <el-button type="primary" @click="openForm('add')">新增</el-button>
<!--        <el-button type="primary" @click="openForm('add')">新增</el-button>-->
        <el-button @click="handleOut">导出</el-button>
        <el-button type="danger" plain @click="handleDelete">删除</el-button>
      </div>
@@ -96,6 +96,16 @@
    width: 120
  },
  {
    label: "生产工单号",
    prop: "workOrderNo",
    width: 120
  },
  {
    label: "生产批号",
    prop: "batchNo",
    width: 140
  },
  {
    label: "检验员",
    prop: "checkName",
  },
@@ -108,12 +118,31 @@
    prop: "model",
  },
  {
    label: "料号",
    prop: "materialCode",
  },
  {
    label: "单位",
    prop: "unit",
  },
  {
    label: "数量",
    prop: "quantity",
    width: 100
  },
  {
    label: "合格数量",
    prop: "qualifiedQuantity",
    width: 100
  },
  {
    label: "不良数量",
    prop: "defectiveQuantity",
    width: 100
  },
  {
    label: "不良原因",
    prop: "defectiveReason",
    width: 100
  },
  {
@@ -262,7 +291,11 @@
  params.entryDate = undefined
  qualityInspectListPage({...params, inspectType: 2}).then(res => {
    tableLoading.value = false;
    tableData.value = res.data.records
    const records = res.data.records || [];
    tableData.value = records.map((row) => ({
      ...row,
      batchNo: row.batchNo ?? row.productionBatchNo ?? "",
    }));
    page.total = res.data.total;
  }).catch(err => {
    tableLoading.value = false;
@@ -324,7 +357,7 @@
    type: "warning",
  })
      .then(() => {
        proxy.download("/quality/qualityInspect/export", {inspectType: 2}, "出厂检验.xlsx");
        proxy.download("/quality/qualityInspect/export", {inspectType: 2}, "成品检验.xlsx");
      })
      .catch(() => {
        proxy.$modal.msg("已取消");