src/views/productionManagement/productionReporting/index.vue
@@ -43,6 +43,7 @@
                @selection-change="handleSelectionChange"
                :tableLoading="tableLoading"
                @pagination="pagination"
                :rowClassName="rowClassName"
                :total="page.total">
        <template #productNoSlot="{ row }">
          <el-button
@@ -240,6 +241,16 @@
    width: 120,
  },
  {
    label: "合格率",
    prop: "actualQualifiedRate",
    width: 120,
  },
  {
    label: "标准合格率",
    prop: "processQualifiedRate",
    width: 120,
  },
  {
    label: "单位",
    prop: "unit",
    width: 120,
@@ -302,6 +313,14 @@
  }
  handleQuery();
};
const rowClassName = ({row}) => {
  if (Number(row.actualQualifiedRate) < Number(row.processQualifiedRate)) {
    return 'danger-row';
  }
  return '';
};
const deleteReport = row => {
  ElMessageBox.confirm("确定删除该报工吗?", "提示", {
    confirmButtonText: "确定",
@@ -476,4 +495,8 @@
});
</script>
<style scoped></style>
<style scoped>
:deep(.danger-row td) {
  color: #e95a66 !important;
}
</style>