|
|
|
@@ -32,7 +32,7 @@ import { useCallback, useEffect, useState, useRef, useMemo } from "react"; |
|
|
|
import { useTranslation } from "react-i18next"; |
|
|
|
import { useRouter } from "next/navigation"; |
|
|
|
import { |
|
|
|
fetchALLPickOrderLineLotDetails, |
|
|
|
//fetchALLPickOrderLineLotDetails, |
|
|
|
updateStockOutLineStatus, |
|
|
|
createStockOutLine, |
|
|
|
recordPickExecutionIssue, |
|
|
|
@@ -117,6 +117,7 @@ const GoodPickExecutionRecord: React.FC<Props> = ({ filterArgs, printerCombo, a4 |
|
|
|
const errors = formProps.formState.errors; |
|
|
|
|
|
|
|
const handleDN = useCallback(async (recordId: number) => { |
|
|
|
console.log(" [Print DN] Button clicked for recordId:", recordId); |
|
|
|
if (!a4Printer) { |
|
|
|
Swal.fire({ |
|
|
|
position: "bottom-end", |
|
|
|
@@ -127,6 +128,13 @@ const GoodPickExecutionRecord: React.FC<Props> = ({ filterArgs, printerCombo, a4 |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
console.log(" [Print DN] Selected A4 printer:", { |
|
|
|
id: a4Printer.id, |
|
|
|
name: a4Printer.name, |
|
|
|
type: a4Printer.type, |
|
|
|
ip: a4Printer.ip, |
|
|
|
port: a4Printer.port |
|
|
|
}); |
|
|
|
const askNumofCarton = await Swal.fire({ |
|
|
|
title: t("Enter the number of cartons: "), |
|
|
|
icon: "info", |
|
|
|
@@ -284,6 +292,7 @@ const GoodPickExecutionRecord: React.FC<Props> = ({ filterArgs, printerCombo, a4 |
|
|
|
}, [t, a4Printer, labelPrinter]); |
|
|
|
|
|
|
|
const handleLabel = useCallback(async (recordId: number) => { |
|
|
|
console.log(" [Print Label] Button clicked for recordId:", recordId); |
|
|
|
const askNumofCarton = await Swal.fire({ |
|
|
|
title: t("Enter the number of cartons: "), |
|
|
|
icon: "info", |
|
|
|
|