This commit is contained in:
@@ -54,7 +54,7 @@ const BoxesPrint = forwardRef<HTMLDivElement, BoxesPrintProps>(({ boxData, key }
|
||||
}}
|
||||
key={key}
|
||||
>
|
||||
<Box sx={{ border: '1px solid black' }}>
|
||||
<Box sx={{ border: '2px solid black', borderBottom: 'none' }}>
|
||||
<Box sx={{ display: 'flex', justifyContent: 'space-between' }}>
|
||||
<Box
|
||||
sx={{
|
||||
@@ -65,7 +65,7 @@ const BoxesPrint = forwardRef<HTMLDivElement, BoxesPrintProps>(({ boxData, key }
|
||||
gap: '12px',
|
||||
}}
|
||||
>
|
||||
<Image alt='logo' src={Logo} width={30} height={30} priority unoptimized />
|
||||
<Image alt='logo' src={Logo} width={55} height={55} priority unoptimized />
|
||||
<Box
|
||||
sx={{
|
||||
color: '#fff',
|
||||
@@ -75,42 +75,44 @@ const BoxesPrint = forwardRef<HTMLDivElement, BoxesPrintProps>(({ boxData, key }
|
||||
}}
|
||||
>
|
||||
<Typography sx={{ color: 'black', fontSize: '10px' }}>CPOST EXPRESS CARGO</Typography>
|
||||
<Typography sx={{ color: 'black', fontSize: '10px' }}>Reys: {boxData?.partyName}</Typography>
|
||||
<Typography sx={{ color: 'black', fontSize: '10px' }}>{boxData?.client_id}</Typography>
|
||||
<Typography sx={{ color: 'black', fontSize: '10px' }}>
|
||||
Reys: {boxData?.partyName}-{boxData?.client_id}
|
||||
</Typography>
|
||||
<Typography sx={{ color: 'black', fontSize: '10px' }}>TEL: +(998) 90 113 44 77</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
<Box sx={{ display: 'flex', gap: '4px', marginTop: '5px', marginRight: '5px' }}>
|
||||
<Image alt='telegram' src={TelegramChanel} width={15} height={15} priority unoptimized />
|
||||
<Image alt='instagram' src={InstagramChanel} width={15} height={15} priority unoptimized />
|
||||
<Typography sx={{ color: 'black', fontSize: '8px' }}>TEL: +(998) 90 113 44 77</Typography>
|
||||
<Box sx={{ display: 'flex', gap: '10px', marginTop: '5px', marginRight: '5px' }}>
|
||||
<Image alt='telegram' src={TelegramChanel} width={50} height={50} priority unoptimized />
|
||||
<Image alt='instagram' src={InstagramChanel} width={50} height={50} priority unoptimized />
|
||||
</Box>
|
||||
</Box>
|
||||
<Box
|
||||
sx={{
|
||||
borderTop: '1px solid black',
|
||||
textAlign: 'start',
|
||||
width: 'auto',
|
||||
display: 'grid',
|
||||
gridTemplateColumns: 'repeat(3, 1fr)',
|
||||
'@media print': {
|
||||
pageBreakInside: 'avoid',
|
||||
},
|
||||
}}
|
||||
>
|
||||
{boxData?.products_list.map((list, index) => (
|
||||
<Box
|
||||
sx={{
|
||||
borderRight: '1px solid black',
|
||||
textAlign: 'start',
|
||||
width: 'auto',
|
||||
padding: '4px',
|
||||
}}
|
||||
key={index}
|
||||
>
|
||||
<Typography sx={{ fontSize: '12px' }}>{list.trekId}</Typography>
|
||||
</Box>
|
||||
))}
|
||||
</Box>
|
||||
</Box>
|
||||
<Box
|
||||
sx={{
|
||||
border: '1px solid black',
|
||||
borderTop: '1px solid black',
|
||||
textAlign: 'start',
|
||||
width: 'auto',
|
||||
display: 'grid',
|
||||
gridTemplateColumns: 'repeat(3, 1fr)',
|
||||
'@media print': {
|
||||
pageBreakInside: 'avoid',
|
||||
},
|
||||
}}
|
||||
>
|
||||
{boxData?.products_list.map((list, index) => (
|
||||
<Box
|
||||
sx={{
|
||||
border: '1px solid black',
|
||||
textAlign: 'start',
|
||||
width: 'auto',
|
||||
padding: '4px',
|
||||
}}
|
||||
key={index}
|
||||
>
|
||||
<Typography sx={{ fontSize: '12px' }}>{list.trekId}</Typography>
|
||||
</Box>
|
||||
))}
|
||||
</Box>
|
||||
</Box>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user