From a340018a320cfe9a089bf0d8015eaa00997cd7a4 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 03 二月 2026 09:17:02 +0800
Subject: [PATCH] 根据是否发货,展示销售台账,生产订单列表表格颜色
---
src/views/productionManagement/productionOrder/index.vue | 28 ++++++++++++++++++----------
1 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index b1d5ab1..9a4620f 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -239,13 +239,17 @@
// 娣诲姞琛ㄨ绫诲悕鏂规硶
const tableRowClassName = ({ row }) => {
- switch (row.deliveryDaysDiff) {
- case 15:
- return 'yellow'
- case 10:
- return 'red'
- case 2:
- return 'purple'
+ if (row.isFh) return '';
+
+ const diff = row.deliveryDaysDiff;
+ if (diff === 15) {
+ return 'yellow';
+ } else if (diff === 10) {
+ return 'pink';
+ } else if (diff === 2) {
+ return 'purple';
+ } else if (diff < 2) {
+ return 'red';
}
};
@@ -410,14 +414,18 @@
}
::v-deep .yellow {
- background-color: #e8b183;
+ background-color: #FAF0DE;
+}
+
+::v-deep .pink {
+ background-color: #FAE1DE;
}
::v-deep .red {
- background-color: #e35050;
+ background-color: #f80202;
}
::v-deep .purple{
- background-color: #c484dd;
+ background-color: #F4DEFA;
}
</style>
--
Gitblit v1.9.3