This commit is contained in:
seb
2026-10-05 15:11:49 +02:00
parent 26bee398a6
commit 81620521e7

View File

@@ -254,20 +254,11 @@ export default class ArticleSupplierTab extends PureComponent {
<Box
sx={{
display: 'flex',
justifyContent: 'space-between',
justifyContent: 'flex-end',
alignItems: 'center',
mb: 2,
}}
>
<Box>
<Typography variant="subtitle1" sx={{ fontWeight: 600 }}>
Zugeordnete Lieferanten ({assignedSuppliers.length})
</Typography>
<Typography variant="caption" color="text.secondary">
Bezugsquellen, Lieferanten-Artikelnr. und Konditionen für diesen Artikel
</Typography>
</Box>
<Button
size="small"
variant="contained"
@@ -279,40 +270,7 @@ export default class ArticleSupplierTab extends PureComponent {
</Button>
</Box>
{/* Content Table or Empty State */}
{assignedSuppliers.length === 0 ? (
<Box
sx={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
py: 6,
px: 2,
borderRadius: 2,
border: `1px dashed ${SORT_GHOST_BG}`,
bgcolor: TINT_FAINT,
textAlign: 'center',
}}
>
<LocalShippingOutlinedIcon sx={{ fontSize: 48, mb: 1.5, color: 'text.secondary', opacity: 0.6 }} />
<Typography variant="subtitle2" sx={{ fontWeight: 600, mb: 0.5 }}>
Noch keine Lieferanten zugewiesen
</Typography>
<Typography variant="body2" color="text.secondary" sx={{ maxWidth: 380, mb: 2 }}>
Weise diesem Artikel Lieferanten zu, um Einkaufspreise, VPE und Artikelnummern für Wareneingänge zu hinterlegen.
</Typography>
<Button
variant="outlined"
startIcon={<AddIcon />}
onClick={this.handleOpenAdd}
size="small"
sx={{ textTransform: 'none' }}
>
Jetzt Lieferant zuweisen
</Button>
</Box>
) : (
{/* Content Table */}
<Table
size="small"
sx={{
@@ -472,7 +430,6 @@ export default class ArticleSupplierTab extends PureComponent {
})}
</TableBody>
</Table>
)}
{/* Add / Edit Dialog */}
<ArticleSupplierDialog