| @@ -22,7 +22,7 @@ import { useCallback, useEffect, useState, useRef, useMemo } from "react"; | |||||
| import { useTranslation } from "react-i18next"; | import { useTranslation } from "react-i18next"; | ||||
| import { useRouter } from "next/navigation"; | import { useRouter } from "next/navigation"; | ||||
| import { | import { | ||||
| fetchALLPickOrderLineLotDetails, | |||||
| fetchAllPickOrderLotsHierarchical, | |||||
| updateStockOutLineStatus, | updateStockOutLineStatus, | ||||
| createStockOutLine, | createStockOutLine, | ||||
| recordPickExecutionIssue, | recordPickExecutionIssue, | ||||
| @@ -427,13 +427,13 @@ const fetchFgPickOrdersData = useCallback(async () => { | |||||
| } | } | ||||
| // Use the non-auto-assign endpoint - this only fetches existing data | // 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); | console.log(" All combined lot details:", allLotDetails); | ||||
| setCombinedLotData(allLotDetails); | setCombinedLotData(allLotDetails); | ||||
| setOriginalCombinedData(allLotDetails); | setOriginalCombinedData(allLotDetails); | ||||
| // 计算完成状态并发送事件 | // 计算完成状态并发送事件 | ||||
| const allCompleted = allLotDetails.length > 0 && allLotDetails.every(lot => | |||||
| const allCompleted = allLotDetails.length > 0 && allLotDetails.every((lot: any) => | |||||
| lot.processingStatus === 'completed' | lot.processingStatus === 'completed' | ||||
| ); | ); | ||||