From c05b81c7f50df80ab247a05f9f92af2d799e77cd Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 10 四月 2026 15:59:04 +0800
Subject: [PATCH] feat:1.销售添加是否生产 2.生产订单添加备注

---
 src/views/productionManagement/productionReporting/index.vue |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index c0b5157..a639831 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
@@ -230,6 +231,11 @@
     width: 120,
   },
   {
+    label: "鏂欏彿",
+    prop: "materialCode",
+    width: 120,
+  },
+  {
     label: "浜у嚭鏁伴噺",
     prop: "quantity",
     width: 120,
@@ -237,6 +243,16 @@
   {
     label: "鎶ュ簾鏁伴噺",
     prop: "scrapQty",
+    width: 120,
+  },
+  {
+    label: "鍚堟牸鐜�",
+    prop: "actualQualifiedRate",
+    width: 120,
+  },
+  {
+    label: "鏍囧噯鍚堟牸鐜�",
+    prop: "processQualifiedRate",
     width: 120,
   },
   {
@@ -302,6 +318,14 @@
   }
   handleQuery();
 };
+
+const rowClassName = ({row}) => {
+  if (Number(row.actualQualifiedRate) < Number(row.processQualifiedRate)) {
+    return 'danger-row';
+  }
+  return '';
+};
+
 const deleteReport = row => {
   ElMessageBox.confirm("纭畾鍒犻櫎璇ユ姤宸ュ悧锛�", "鎻愮ず", {
     confirmButtonText: "纭畾",
@@ -476,4 +500,8 @@
 });
 </script>
 
-<style scoped></style>
+<style scoped>
+:deep(.danger-row td) {
+  color: #e95a66 !important;
+}
+</style>

--
Gitblit v1.9.3