From 8ae47d0d5f14f5e2f561ef8030794e1dd1878d18 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 16 三月 2026 18:00:57 +0800
Subject: [PATCH] 来料样式修改,工艺路线接口对接

---
 src/views/qualityManagement/rawMaterialInspection/index.vue |  117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 115 insertions(+), 2 deletions(-)

diff --git a/src/views/qualityManagement/rawMaterialInspection/index.vue b/src/views/qualityManagement/rawMaterialInspection/index.vue
index 03f9df4..a673c15 100644
--- a/src/views/qualityManagement/rawMaterialInspection/index.vue
+++ b/src/views/qualityManagement/rawMaterialInspection/index.vue
@@ -122,7 +122,8 @@
     {
       label: "妫�娴嬫棩鏈�",
       prop: "checkTime",
-      width: 120,
+      width: 150,
+      className: "date-cell",
     },
     {
       label: "渚涘簲鍟�",
@@ -132,6 +133,8 @@
     {
       label: "妫�楠屽憳",
       prop: "checkName",
+      width: 120,
+      className: "inspector-cell",
     },
     {
       label: "浜у搧鍚嶇О",
@@ -155,18 +158,41 @@
     {
       label: "璇曟牱缂栧彿",
       prop: "sampleCode",
+      width: 120,
+
+      className: "volume-cell",
     },
     {
       label: "璇曟牱鐘舵��",
       prop: "sampleState",
+      dataType: "tag",
+      formatType: params => {
+        if (params === "棰楃矑" || params === "鍥轰綋" || params === "鑶忎綋") {
+          return "success";
+        } else {
+          return "info";
+        }
+      },
     },
     {
       label: "妫�娴嬫�ц川",
       prop: "inspectNature",
+      dataType: "tag",
+      formatType: params => {
+        if (params === "鏃ュ父妫�楠�") {
+          return "success";
+        } else if (params === "鍏ュ満楠屾敹") {
+          return "warning";
+        } else {
+          return null;
+        }
+      },
     },
     {
       label: "鍙栨牱鏃ユ湡",
       prop: "sampleTime",
+      width: 150,
+      className: "date-cell",
     },
     {
       label: "妫�娴嬪崟浣�",
@@ -448,7 +474,7 @@
   });
 </script>
 
-<style scoped>
+<style scoped lang="scss">
   .app-container {
     padding: 20px;
     background-color: #f5f7fa;
@@ -517,6 +543,66 @@
 
   :deep(.el-table .el-table__row) {
     transition: background-color 0.3s ease;
+  }
+
+  /* 琛ㄦ牸鍒楁牱寮� */
+  :deep(.date-cell) {
+    font-family: "Courier New", monospace;
+    color: #606266;
+  }
+
+  :deep(.supplier-cell) {
+    font-weight: 500;
+    color: #303133;
+  }
+
+  :deep(.inspector-cell) {
+    color: #409eff;
+  }
+
+  :deep(.product-cell) {
+    font-weight: 500;
+  }
+
+  :deep(.model-cell) {
+    color: #606266;
+  }
+
+  :deep(.unit-cell) {
+    font-size: 12px;
+    color: #909399;
+  }
+
+  :deep(.quantity-cell) {
+    font-family: "Courier New", monospace;
+    font-weight: 500;
+    color: #303133;
+  }
+
+  :deep(.volume-cell) {
+    font-family: "Courier New", monospace;
+    color: #67c23a;
+    font-weight: 500;
+  }
+
+  :deep(.state-cell) {
+    font-weight: 500;
+  }
+
+  :deep(.nature-cell) {
+    color: #606266;
+  }
+
+  :deep(.company-cell) {
+    color: #606266;
+  }
+
+  :deep(.result-cell) {
+    font-weight: 600;
+  }
+
+  :deep(.status-cell) {
+    font-weight: 500;
   }
 
   /* 鎸夐挳鏍峰紡浼樺寲 */
@@ -710,4 +796,31 @@
       font-size: 12px;
     }
   }
+  :deep(.el-table) {
+    .el-table__body-wrapper {
+      .quantity-cell,
+      .volume-cell,
+      .dimension-cell {
+        font-weight: 600;
+        color: #409eff;
+        font-family: "Courier New", monospace;
+        text-shadow: 0 1px 2px rgba(64, 158, 255, 0.2);
+      }
+      .spec-cell {
+        color: #67c23a;
+        font-weight: 500;
+
+        padding: 4px 8px;
+        border-radius: 4px;
+      }
+
+      .code-cell {
+        color: #e6a23c;
+        font-family: "Courier New", monospace;
+        font-weight: 500;
+        padding: 4px 8px;
+        border-radius: 4px;
+      }
+    }
+  }
 </style>

--
Gitblit v1.9.3