FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 月之前
2 月之前
3 月之前
2 月之前
3 月之前
2 月之前
3 月之前
123456789101112131415161718192021222324252627282930313233
  1. import "server-only";
  2. import { BASE_API_URL } from "@/config/api";
  3. import { serverFetchJson } from "@/app/utils/fetchUtil";
  4. import { cache } from "react";
  5. export interface StockIssueResult {
  6. action: any;
  7. id: number;
  8. itemId: number;
  9. itemCode: string;
  10. itemDescription: string;
  11. lotId: number;
  12. lotNo: string;
  13. storeLocation: string;
  14. requiredQty: number;
  15. badItemQty: number;
  16. issueRemark: string;
  17. pickerName: string;
  18. handleStatus: string;
  19. handleDate: string;
  20. handledBy: number;
  21. }
  22. export const PreloadList = () => {
  23. fetchList();
  24. };
  25. export const fetchList = cache(async () => {
  26. return serverFetchJson<StockIssueResult[]>(`${BASE_API_URL}/pickExecution/badItemList`, {
  27. next: { tags: ["Bad Item List"] },
  28. });
  29. });