From 48d5ab35c3fcdc6edca1278d1474a1b54a431191 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期三, 21 八月 2024 16:00:33 +0800
Subject: [PATCH] bug修改

---
 src/views/hazardousChemicals/homePage/index.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/views/hazardousChemicals/homePage/index.vue b/src/views/hazardousChemicals/homePage/index.vue
index 7c6eed3..24cc320 100644
--- a/src/views/hazardousChemicals/homePage/index.vue
+++ b/src/views/hazardousChemicals/homePage/index.vue
@@ -54,6 +54,8 @@
                     <img :src="avator" style="width: 25px;height: 25px" />
                     <div style="display: flex;flex-direction: column;margin-left: 20px">
                       <span style="font-size: 16px;font-weight: 600">{{item.description}}&nbsp;
+                         <span style="color: #03752e;font-weight: 600" v-if="item.num > 0">{{item.stateName}}</span>&nbsp;
+                         <span style="color: #f6828e;font-weight: 600" v-else>{{item.stateName}}</span>&nbsp;
                         <span style="color: #03752e" v-if="item.num > 0">{{item.num >0 ? '+' + item.num: item.num}}{{item.unit}}</span>
                         <span style="color: #f6828e" v-else>{{item.num}}{{item.unit}}</span>
                       </span>
@@ -200,7 +202,8 @@
       return {
         ...item,
         unit:item.hazmatBasic.unit,
-        description: `${item.user.departName ? item.user.departName +'部门' : ''}   ${item.user.name}  进行了  ${item.state ==0?'批量导入': item.state ==1?'取用' :item.state ==2?'归还':item.state ==3?'标签作废' :''} ${item.hazmatBasic.name}`
+        stateName: item.state ==0 ?'入库': item.state ==1 ? '取用' :item.state ==2 ? '归还': item.state ==3 ? '标签作废' : item.state ==4 ? '用尽登记':item.state ==5 ? '销售' : '',
+        description: `${item.user.departName ? item.user.departName +'部门' : ''}   ${item.user.name}  进行了  `
       }
     })
     console.log('data.hazmatData',data.hazmatData)

--
Gitblit v1.9.2