| | |
| | | <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}} |
| | | <span style="color: #03752e;font-weight: 600" v-if="item.num > 0">{{item.stateName}}</span> |
| | | <span style="color: #f6828e;font-weight: 600" v-else>{{item.stateName}}</span> |
| | | <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> |
| | |
| | | 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) |