From df605c69a17bb548e3f98e10f7cc3c3298e5d8f7 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 25 三月 2026 16:31:10 +0800
Subject: [PATCH] 过程检验列表加上不良数量、合格数量字段。过程检验编辑页面也加上不良数量、合格数量字段,不良数量输入框手填,合格数量,数量输入框置灰,根据根据不良数量+合格数量=数量这一逻辑计算。若不填默认不良数量为0。数量是订单本次生产数量-报废数量
---
src/views/productionManagement/productionReporting/index.vue | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index c0b5157..5c019b8 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/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>
--
Gitblit v1.9.3