huminmin
4 天以前 781778cdea9e3656dc00ae9945aa73deaea32f9b
src/views/qualityManagement/finalInspection/index.vue
@@ -101,6 +101,11 @@
    width: 120
  },
  {
    label: "生产批号",
    prop: "batchNo",
    width: 140
  },
  {
    label: "检验员",
    prop: "checkName",
  },
@@ -113,12 +118,21 @@
    prop: "model",
  },
  {
    label: "料号",
    prop: "materialCode",
  },
  {
    label: "单位",
    prop: "unit",
  },
  {
    label: "数量",
    prop: "quantity",
    width: 100
  },
  {
    label: "合格数量",
    prop: "qualifiedQuantity",
    width: 100
  },
  {
@@ -277,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;
@@ -339,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("已取消");