|
|
@@ -51,12 +51,16 @@ type QrCodeAnalysisResponse = { |
|
|
stockInLineId: number; |
|
|
stockInLineId: number; |
|
|
lotNo: string; |
|
|
lotNo: string; |
|
|
inventoryLotLineId: number; |
|
|
inventoryLotLineId: number; |
|
|
|
|
|
warehouseCode?: string | null; |
|
|
|
|
|
warehouseName?: string | null; |
|
|
}; |
|
|
}; |
|
|
sameItemLots: Array<{ |
|
|
sameItemLots: Array<{ |
|
|
lotNo: string; |
|
|
lotNo: string; |
|
|
inventoryLotLineId: number; |
|
|
inventoryLotLineId: number; |
|
|
availableQty: number; |
|
|
availableQty: number; |
|
|
uom: string; |
|
|
uom: string; |
|
|
|
|
|
warehouseCode?: string | null; |
|
|
|
|
|
warehouseName?: string | null; |
|
|
}>; |
|
|
}>; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
@@ -513,6 +517,7 @@ const LotLabelPrintModal: React.FC<LotLabelPrintModalProps> = ({ |
|
|
{availableLots.map((lot) => { |
|
|
{availableLots.map((lot) => { |
|
|
const isPrinting = |
|
|
const isPrinting = |
|
|
printingLotLineId === lot.inventoryLotLineId; |
|
|
printingLotLineId === lot.inventoryLotLineId; |
|
|
|
|
|
const loc = String(lot.warehouseCode ?? "").trim(); |
|
|
return ( |
|
|
return ( |
|
|
<Box |
|
|
<Box |
|
|
key={lot.inventoryLotLineId} |
|
|
key={lot.inventoryLotLineId} |
|
|
@@ -537,9 +542,12 @@ const LotLabelPrintModal: React.FC<LotLabelPrintModalProps> = ({ |
|
|
Lot:{lot.lotNo} |
|
|
Lot:{lot.lotNo} |
|
|
{lot._scanned ? "(已掃)" : ""} |
|
|
{lot._scanned ? "(已掃)" : ""} |
|
|
</Typography> |
|
|
</Typography> |
|
|
|
|
|
<Typography variant="body2" color="text.secondary"> |
|
|
|
|
|
位置:{loc || "—"} |
|
|
|
|
|
</Typography> |
|
|
<Typography variant="body2" color="text.secondary"> |
|
|
<Typography variant="body2" color="text.secondary"> |
|
|
可用量:{Number(lot.availableQty).toLocaleString()}{" "} |
|
|
可用量:{Number(lot.availableQty).toLocaleString()}{" "} |
|
|
{lot.uom || ""} |
|
|
|
|
|
|
|
|
單位:{lot.uom || ""} |
|
|
</Typography> |
|
|
</Typography> |
|
|
</Box> |
|
|
</Box> |
|
|
<Box sx={{ ml: "auto" }}> |
|
|
<Box sx={{ ml: "auto" }}> |
|
|
|