From 62feaa429971245b5837c456ef830e87a75b7a14 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期四, 28 十一月 2024 15:45:24 +0800 Subject: [PATCH] 修改首页 --- src/views/hazardousChemicals/warehouseManage/components/rawDetail.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/views/hazardousChemicals/warehouseManage/components/rawDetail.vue b/src/views/hazardousChemicals/warehouseManage/components/rawDetail.vue index 4878301..77c8fe9 100644 --- a/src/views/hazardousChemicals/warehouseManage/components/rawDetail.vue +++ b/src/views/hazardousChemicals/warehouseManage/components/rawDetail.vue @@ -259,10 +259,14 @@ } for (let i = 0; i <= arr.length; i++) { if (arr[i] == row.basicId) { - if(row.remaining < row.hazmatBasic.metering){ + if(row.state === 3 && row.remaining < row.hazmatBasic.metering){ if (columnIndex === 11 || columnIndex === 10){ return { color:' red' } } + }else if(row.remaining < row.hazmatBasic.metering){ + if (columnIndex === 11 || columnIndex === 10){ + return { color: '#ff9900' } + } } } } -- Gitblit v1.9.2