实际合格率低于【合格率】时,每个【生产工单】、【生产报工】台账需要标红显示
已修改2个文件
41 ■■■■■ 文件已修改
src/views/productionManagement/productionReporting/index.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/workOrder/index.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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>
src/views/productionManagement/workOrder/index.vue
@@ -25,6 +25,7 @@
                :tableData="tableData"
                :page="page"
                :tableLoading="tableLoading"
                :rowClassName="rowClassName"
                @pagination="pagination">
        <template #completionStatus="{ row }">
          <el-progress :percentage="toProgressPercentage(row?.completionStatus)"
@@ -289,7 +290,7 @@
  //   width: "80",
  // },
  {
    label: "工单编号",
    label: "工单编号1",
    prop: "workOrderNo",
    width: "140",
  },
@@ -458,6 +459,13 @@
  scrapQty: [
    {validator: validateScrapQty, trigger: 'blur'}
  ]
};
const rowClassName = ({row}) => {
  if (Number(row.completionStatus) > 0 && Number(row.actualQualifiedRate) < Number(row.processQualifiedRate)) {
    return 'danger-row';
  }
  return '';
};
// 处理本次生产数量输入,限制必须大于等于1
@@ -875,7 +883,11 @@
}
</style>
<style lang="scss">
<style lang="scss" scoped>
:deep(.danger-row td) {
  color: #e95a66 !important;
}
@media print {
  @page {
    size: landscape;