From e1b1a29203de502457d8ede2508ba1fa2c55db47 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期一, 27 四月 2026 14:41:53 +0800
Subject: [PATCH] 1

---
 src/views/productionManagement/workOrderManagement/index.vue |   43 +++++++++++++++++--------------------------
 1 files changed, 17 insertions(+), 26 deletions(-)

diff --git a/src/views/productionManagement/workOrderManagement/index.vue b/src/views/productionManagement/workOrderManagement/index.vue
index 2adaa22..a9610e3 100644
--- a/src/views/productionManagement/workOrderManagement/index.vue
+++ b/src/views/productionManagement/workOrderManagement/index.vue
@@ -24,7 +24,6 @@
                 :tableData="tableData"
                 :page="page"
                 :tableLoading="tableLoading"
-                :row-class-name="tableRowClassName"
                 @pagination="pagination">
         <template #completionStatus="{ row }">
           <el-progress :percentage="toProgressPercentage(row?.completionStatus)"
@@ -32,7 +31,10 @@
                        :status="toProgressPercentage(row?.completionStatus) >= 100 ? 'success' : ''" />
         </template>
         <template #todayReportState="{ row }">
-          {{ formatTodayReportState(row?.todayReportState) }}
+          <el-tag :type="todayReportStateTagType(row?.todayReportState)"
+                  size="small">
+            {{ formatTodayReportState(row?.todayReportState) }}
+          </el-tag>
         </template>
         <template #totalReportDurationMinutes="{ row }">
           {{ formatDurationHours(row?.totalReportDurationMinutes) }}
@@ -201,6 +203,13 @@
       width: "80",
     },
     {
+      label: "鎶ュ伐鐘舵��",
+      prop: "todayReportState",
+      dataType: "slot",
+      slot: "todayReportState",
+      width: "110",
+    },
+    {
       label: "宸ュ崟缂栧彿",
       prop: "workOrderNo",
       width: "140",
@@ -242,13 +251,6 @@
       prop: "completionStatus",
       dataType: "slot",
       slot: "completionStatus",
-      width: "140",
-    },
-    {
-      label: "浠婃棩鎶ュ伐鐘舵��",
-      prop: "todayReportState",
-      dataType: "slot",
-      slot: "todayReportState",
       width: "140",
     },
     {
@@ -466,12 +468,12 @@
     if (!Number.isFinite(minutes) || minutes < 0) return "-";
     return (minutes / 60).toFixed(2);
   };
-  const tableRowClassName = ({ row }) => {
-    const state = Number(row?.todayReportState);
-    if (state === 1) return "today-report-not-started";
-    if (state === 2) return "today-report-started";
-    if (state === 3) return "today-report-ended";
-    return "";
+  const todayReportStateTagType = val => {
+    const state = Number(val);
+    if (state === 1) return "info";
+    if (state === 2) return "success";
+    if (state === 3) return "warning";
+    return "info";
   };
 
   // 鏌ヨ鍒楄〃
@@ -776,17 +778,6 @@
     margin-top: 20px;
   }
 
-  :deep(.el-table .today-report-not-started > td) {
-    background-color: #fff7e6 !important;
-  }
-
-  :deep(.el-table .today-report-started > td) {
-    background-color: #ecf5ff !important;
-  }
-
-  :deep(.el-table .today-report-ended > td) {
-    background-color: #f0f9eb !important;
-  }
 </style>
 
 <style  lang="scss">

--
Gitblit v1.9.3