From 301df333c4dc0c28cee67a8579784bd1c3b85abe Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期四, 22 二月 2024 15:07:51 +0800
Subject: [PATCH] 1、标准加工时间页面取消按照时间查询 2、设备利用率、设备开动率以及班次利用率页面查询区域日期被删除后因查询不到数据时表格中不会出现任何数据且无提示,故增加提示及禁止删除日期 3、设备综合效率分析页面和设备加工工件报表页面时间被手动清空与点击重置按钮清空后的查询条件不同,调整为时间为空时则查询除时间限定内所有数据 4、利用率走势分析、利用率分段分析以及报警分析页面简化页面查询功能,禁止删除日期 5、优化假期管理、加工数量管理以及合格率管理页面手动清空日期后无法正常查询数据 6、统计分析与统计图表页面调整重置按钮功能为重置名称为第一级车间以及日期为当日前一天,且无法手动清空日期 7、对比分析页面调整重置按钮功能为重置日期为当日前一周,且无法手动清空日期

---
 src/views/eam/SpecialtyMaintenanceOrderList.vue |   65 +++++++++++++++++++++++++-------
 1 files changed, 51 insertions(+), 14 deletions(-)

diff --git a/src/views/eam/SpecialtyMaintenanceOrderList.vue b/src/views/eam/SpecialtyMaintenanceOrderList.vue
index cb286e9..acafc95 100644
--- a/src/views/eam/SpecialtyMaintenanceOrderList.vue
+++ b/src/views/eam/SpecialtyMaintenanceOrderList.vue
@@ -1,7 +1,7 @@
 <template>
   <a-card
     :bordered="false"
-    title="涓撲笟淇濆吇宸ュ崟"
+    title="棰勯槻鎬т繚鍏诲伐鍗�"
   >
     <!-- 鏌ヨ鍖哄煙 -->
     <div class="table-page-search-wrapper">
@@ -126,6 +126,7 @@
         :loading="loading"
         class="j-table-force-nowrap"
         @change="handleTableChange"
+        :rowClassName="tableRowClass"
       >
         <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" -->
         <span
@@ -199,7 +200,7 @@
             v-has="'specialtyMaintenanceOrder:assign'"
           >娲惧伐</a>
           <a
-            v-if="record.status == '2'&& record.assignMode == '3'  && record.inspectionUserName != null  "
+            v-if="record.status == '2'&& record.assignMode == '3'  && record.maintenanceUserName != null  "
             @click="handleAssignOrder(record)"
             v-has="'specialtyMaintenanceOrder:assign'"
           >鏀规淳</a>
@@ -327,16 +328,7 @@
             return parseInt(index) + 1;
           }
         },
-        {
-          title: '鐘舵��',
-          align: "center",
-          dataIndex: 'statusName'
-        },
-        {
-          title: '缁翠繚鏂瑰紡',
-          align: "center",
-          dataIndex: 'maintenanceMode'
-        },
+
         {
           title: '淇濆吇宸ュ崟鍙�',
           align: "center",
@@ -344,7 +336,7 @@
           scopedSlots: { customRender: 'num' }
         },
         {
-          title: '瀵硅薄閮ㄩ棬',
+          title: '浣跨敤閮ㄩ棬',
           align: "center",
           dataIndex: 'departName',
         },
@@ -372,6 +364,16 @@
           title: '璐d换鐝粍',
           align: "center",
           dataIndex: 'teamName',
+        },
+        {
+          title: '鐘舵��',
+          align: "center",
+          dataIndex: 'statusName'
+        },
+        {
+          title: '缁翠繚鏂瑰紡',
+          align: "center",
+          dataIndex: 'maintenanceMode'
         },
         // {
         //   title: '宸ユ椂瀹氶/姣忓皬鏃�',
@@ -573,9 +575,44 @@
     //   //娓呯┖鍒楄〃閫変腑
     //   this.onClearSelected()
     // },
+
+    //棰勮棰滆壊
+    tableRowClass(record, index) {
+      if ("1" == record.status || "2" == record.status) {
+        if (record.yellowWarningTime < record.currentDateTime && record.currentDateTime < record.redWarningTime) {
+          return 'yellow'
+        } else if (record.redWarningTime < record.currentDateTime && record.currentDateTime < record.planStartTime) {
+          return 'error'
+        } else if (record.planStartTime < record.currentDateTime) {
+          return 'frozenRowClass'
+        }
+      }
+    },
   }
 }
 </script>
-<style scoped>
+<style >
 @import '~@assets/less/common.less';
+.frozenRowClass {
+  color: #c9c9c9;
+  font-weight: bold;
+}
+.success {
+  color: green;
+}
+.error {
+  color: red;
+  font-weight: bold;
+}
+.yellow {
+  color: yellow;
+  font-weight: bold;
+}
+.fontweight {
+  font-weight: bold;
+}
+
+.ant-table-tbody .red {
+  background-color: red !important;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3