|
|
@@ -10,6 +10,7 @@ import PoDetail from "./PoDetail"; |
|
|
|
import { QcItemWithChecks } from "@/app/api/qc"; |
|
|
|
import { fetchWarehouseList } from "@/app/api/warehouse"; |
|
|
|
import { fetchQcItemCheck } from "@/app/api/qc/actions"; |
|
|
|
import { fetchEscalationCombo } from "@/app/api/user"; |
|
|
|
|
|
|
|
interface SubComponents { |
|
|
|
Loading: typeof PoDetailLoading; |
|
|
@@ -20,10 +21,16 @@ type Props = { |
|
|
|
}; |
|
|
|
|
|
|
|
const PoDetailWrapper: React.FC<Props> & SubComponents = async ({ id }) => { |
|
|
|
const [poWithStockInLine, warehouse, qc] = await Promise.all([ |
|
|
|
const [ |
|
|
|
poWithStockInLine, |
|
|
|
warehouse, |
|
|
|
qc, |
|
|
|
escalationCombo |
|
|
|
] = await Promise.all([ |
|
|
|
fetchPoWithStockInLines(id), |
|
|
|
fetchWarehouseList(), |
|
|
|
fetchQcItemCheck(), |
|
|
|
fetchEscalationCombo(), |
|
|
|
]); |
|
|
|
// const poWithStockInLine = await fetchPoWithStockInLines(id) |
|
|
|
|
|
|
|