From 3eaa7e28218b227bda647f2da21e6d9317832eef Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 15 九月 2025 15:08:15 +0800
Subject: [PATCH] 库存预警修改
---
src/views/warehouseManagement/index.vue | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/views/warehouseManagement/index.vue b/src/views/warehouseManagement/index.vue
index 6183677..1f4bcba 100644
--- a/src/views/warehouseManagement/index.vue
+++ b/src/views/warehouseManagement/index.vue
@@ -68,6 +68,7 @@
style="width: 100%; height: calc(100vh - 30em)"
show-summary
:summary-method="summarizeChildrenTable"
+ :row-class-name="tableRowClassName"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column
@@ -897,6 +898,14 @@
}
});
};
+
+// 娣诲姞鍒ゆ柇琛岀被鍚嶇殑鍑芥暟
+const tableRowClassName = (row) => {
+ if (activeTab.value === 'officialInventory' && row.row.inventoryQuantity < 3) {
+ return 'low-inventory-row';
+ }
+ return '';
+};
// 鍏抽棴瀹℃牳寮规
const cancelReview = () => {
proxy.$refs.formRef.resetFields();
@@ -908,4 +917,8 @@
:deep(.el-table) {
margin: 20px 0;
}
+
+:deep(.low-inventory-row) {
+ background-color: #ffcccc;
+}
</style>
--
Gitblit v1.9.3