refactor: 更新库位状态标签文本和样式,增强可读性和一致性
This commit is contained in:
parent
3d1055d625
commit
2fc2ed317e
@ -62,19 +62,25 @@ const getStorageStatusTag = (location: StorageLocationInfo) => {
|
||||
if (location.is_occupied) {
|
||||
tags.push({ text: '已占用', color: 'error' });
|
||||
} else {
|
||||
tags.push({ text: '空闲', color: 'success' });
|
||||
tags.push({ text: '未占用', color: 'success' });
|
||||
}
|
||||
|
||||
if (location.is_locked) {
|
||||
tags.push({ text: '已锁定', color: 'warning' });
|
||||
} else {
|
||||
tags.push({ text: '未锁定', color: 'success' });
|
||||
}
|
||||
|
||||
if (location.is_disabled) {
|
||||
tags.push({ text: '已禁用', color: 'error' });
|
||||
} else {
|
||||
tags.push({ text: '未禁用', color: 'success' });
|
||||
}
|
||||
|
||||
if (location.is_empty_tray) {
|
||||
tags.push({ text: '空托盘', color: 'processing' });
|
||||
tags.push({ text: '空托盘', color: 'success' });
|
||||
} else {
|
||||
tags.push({ text: '非空托盘', color: 'warning' });
|
||||
}
|
||||
|
||||
return tags;
|
||||
@ -185,9 +191,8 @@ const getStorageStatusTag = (location: StorageLocationInfo) => {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 8px;
|
||||
padding: 8px;
|
||||
padding: 16px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid get-color(border1);
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user