zhouwx
2024-08-21 48d5ab35c3fcdc6edca1278d1474a1b54a431191
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)