From ae36dc20aea3d2f74d893305d9f94a1845d8fa20 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期五, 06 九月 2024 10:17:50 +0800
Subject: [PATCH] 增加公司编号

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

diff --git a/src/views/hazardousChemicals/homePage/index.vue b/src/views/hazardousChemicals/homePage/index.vue
index 7c6eed3..77daae5 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>
@@ -79,7 +81,7 @@
                   <div style="display: flex;flex-direction: column;margin-left: 20px">
                       <span style="font-size: 16px;font-weight: 600">{{item.description}}
                       </span>
-                    <span style="font-size: 14px;color: #8a8f97;margin-top: 5px">{{item.useTime}}</span>
+                    <span style="font-size: 14px;color: #8a8f97;margin-top: 5px">{{item.createTime}}</span>
                   </div>
                 </div>
                 <el-divider style="margin: 15px 0" v-if="index != data.hazmatData.length-1"></el-divider>
@@ -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