瀏覽代碼

stock ledger

production
CANCERYS\kw093 1 月之前
父節點
當前提交
939d50348f
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. +11
    -1
      src/app/api/stockTake/actions.ts

+ 11
- 1
src/app/api/stockTake/actions.ts 查看文件

@@ -257,7 +257,14 @@ export const getStockTakeRecords = async () => {
export const getStockTakeRecordsPaged = async (
pageNum: number,
pageSize: number,
params?: { sectionDescription?: string; stockTakeSections?: string; status?: string; area?: string; storeId?: string }
params?: {
sectionDescription?: string;
stockTakeSections?: string;
status?: string;
area?: string;
storeId?: string;
onlyLatestRound?: boolean;
}
) => {
const searchParams = new URLSearchParams();
searchParams.set("pageNum", String(pageNum));
@@ -277,6 +284,9 @@ export const getStockTakeRecordsPaged = async (
if (params?.storeId && params.storeId !== "All") {
searchParams.set("storeId", params.storeId);
}
if (params?.onlyLatestRound != null) {
searchParams.set("onlyLatestRound", String(params.onlyLatestRound));
}
const url = `${BASE_API_URL}/stockTakeRecord/AllPickedStockOutRecordList?${searchParams.toString()}`;
const res = await serverFetchJson<RecordsRes<AllPickedStockTakeListReponse>>(url, { method: "GET" });
return res;


Loading…
取消
儲存