From a12525f25e2cbbfe1d0de23034ca271114579d2c Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期五, 29 八月 2025 10:02:55 +0800 Subject: [PATCH] yys 入库管理-标红数量少于3 --- 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