|
|
|
@@ -934,7 +934,7 @@ const PickExecution: React.FC<Props> = ({ filterArgs }) => { |
|
|
|
|
|
|
|
return ( |
|
|
|
<FormProvider {...formProps}> |
|
|
|
<Stack spacing={2}> |
|
|
|
|
|
|
|
{/* Search Box */} |
|
|
|
{/* |
|
|
|
<Box> |
|
|
|
@@ -966,7 +966,30 @@ const PickExecution: React.FC<Props> = ({ filterArgs }) => { |
|
|
|
*/} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Stack spacing={2}> |
|
|
|
{/* DO Header */} |
|
|
|
{fgPickOrdersLoading ? ( |
|
|
|
<Box sx={{ display: 'flex', justifyContent: 'center', p: 2 }}> |
|
|
|
<CircularProgress size={20} /> |
|
|
|
</Box> |
|
|
|
) : ( |
|
|
|
fgPickOrders.length > 0 && ( |
|
|
|
<Paper sx={{ p: 2 }}> |
|
|
|
<Stack direction="row" spacing={4} useFlexGap flexWrap="wrap"> |
|
|
|
<Typography variant="subtitle1"> |
|
|
|
<strong>{t("Shop Name")}:</strong> {fgPickOrders[0].shopName || '-'} |
|
|
|
</Typography> |
|
|
|
<Typography variant="subtitle1"> |
|
|
|
<strong>{t("Delivery Date")}:</strong> {(fgPickOrders[0].deliveryDate || '-').split('T')[0]} |
|
|
|
</Typography> |
|
|
|
<Typography variant="subtitle1"> |
|
|
|
<strong>{t("Departure Time")}:</strong> {fgPickOrders[0].DepartureTime || '-'} |
|
|
|
</Typography> |
|
|
|
</Stack> |
|
|
|
</Paper> |
|
|
|
) |
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
|
{/* Combined Lot Table */} |
|
|
|
<Box> |
|
|
|
@@ -1052,7 +1075,7 @@ const PickExecution: React.FC<Props> = ({ filterArgs }) => { |
|
|
|
</TableCell> |
|
|
|
<TableCell align="center"> |
|
|
|
{/* ✅ QR Scan Button if not scanned, otherwise show TextField + Issue button */} |
|
|
|
{!lot.stockOutLineId ? ( |
|
|
|
{lot.stockOutLineStatus?.toLowerCase() === 'pending' ? ( |
|
|
|
<Button |
|
|
|
variant="outlined" |
|
|
|
size="small" |
|
|
|
|