Bläddra i källkod

update

MergeProblem1
CANCERYS\kw093 1 vecka sedan
förälder
incheckning
be2fdb6a3b
1 ändrade filer med 10 tillägg och 1 borttagningar
  1. +10
    -1
      src/components/FinishedGoodSearch/GoodPickExecutionRecord.tsx

+ 10
- 1
src/components/FinishedGoodSearch/GoodPickExecutionRecord.tsx Visa fil

@@ -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",


Laddar…
Avbryt
Spara