From f807fcee8273357850193a88037c56b38b006546 Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Mon, 26 Jan 2026 17:03:41 +0800 Subject: [PATCH] update --- src/components/FinishedGoodSearch/GoodPickExecution.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/FinishedGoodSearch/GoodPickExecution.tsx b/src/components/FinishedGoodSearch/GoodPickExecution.tsx index 73ebd76..3c1e14e 100644 --- a/src/components/FinishedGoodSearch/GoodPickExecution.tsx +++ b/src/components/FinishedGoodSearch/GoodPickExecution.tsx @@ -22,7 +22,7 @@ import { useCallback, useEffect, useState, useRef, useMemo } from "react"; import { useTranslation } from "react-i18next"; import { useRouter } from "next/navigation"; import { - fetchALLPickOrderLineLotDetails, + fetchAllPickOrderLotsHierarchical, updateStockOutLineStatus, createStockOutLine, recordPickExecutionIssue, @@ -427,13 +427,13 @@ const fetchFgPickOrdersData = useCallback(async () => { } // Use the non-auto-assign endpoint - this only fetches existing data - const allLotDetails = await fetchALLPickOrderLineLotDetails(userIdToUse); + const allLotDetails = await fetchAllPickOrderLotsHierarchical(userIdToUse); console.log(" All combined lot details:", allLotDetails); setCombinedLotData(allLotDetails); setOriginalCombinedData(allLotDetails); // 计算完成状态并发送事件 - const allCompleted = allLotDetails.length > 0 && allLotDetails.every(lot => + const allCompleted = allLotDetails.length > 0 && allLotDetails.every((lot: any) => lot.processingStatus === 'completed' );