gaoluyang
2026-04-14 8f2ef19209bb9b693a9db65350c0ef695b76c9a0
src/views/qualityManagement/metricMaintenance/index.vue
@@ -283,14 +283,14 @@
    prop: 'standardNo',
    dataType: 'slot',
    slot: 'standardNoCell',
    minWidth: 160,
    width: 120,
    align: 'center',
    headerSlot: 'standardNoHeader'
  },
  {
    label: '标准名称',
    prop: 'standardName',
    minWidth: 180,
      width: 120,
    align: 'center',
    headerSlot: 'standardNameHeader'
  },
@@ -298,6 +298,7 @@
    label: '类别',
    prop: 'inspectType',
    headerSlot: 'inspectTypeHeader',
      width: 120,
    align: 'center',
    dataType: 'tag',
    formatData: (val) => {
@@ -309,21 +310,22 @@
      return map[val] || val
    }
  },
  {
    label: '工序',
    prop: 'processId',
    align: 'center',
    dataType: 'tag',
    formatData: (val) => {
      const target = processOptions.value.find(
        (item) => String(item.value) === String(val)
      )
      return target?.label || val
    }
  },
  // {
  //   label: '工序',
  //   prop: 'processId',
  //   align: 'center',
  //   dataType: 'tag',
  //   formatData: (val) => {
  //     const target = processOptions.value.find(
  //       (item) => String(item.value) === String(val)
  //     )
  //     return target?.label || val
  //   }
  // },
  {
    label: '状态',
    prop: 'state',
      width: 120,
    headerSlot: 'stateHeader',
    align: 'center',
    dataType: 'tag',
@@ -432,6 +434,18 @@
const handleSelectionChange = (selection) => {
  selectedRows.value = selection
  if (!selection.length) {
    currentStandard.value = null
    detailTableData.value = []
    return
  }
  const nextStandard = selection[selection.length - 1]
  if (currentStandard.value?.id === nextStandard.id) return
  currentStandard.value = nextStandard
  loadDetail(nextStandard.id)
}
// 批量审核:状态 1=批准,2=撤销
@@ -698,11 +712,6 @@
</script>
<style scoped>
.metric-maintenance {
  padding: 0;
  min-width: 0;
}
.metric-maintenance-row {
  width: 100%;
}
@@ -829,4 +838,4 @@
  width: 100%;
  margin-top: 4px;
}
</style>
</style>