From 3e8a57f3a767f0751d8029ced4fbd249949cc30c Mon Sep 17 00:00:00 2001 From: basssy Date: Wed, 13 Nov 2024 11:56:03 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AC=BC=EA=B1=B4=EB=AA=A9=EB=A1=9D=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=95=EA=B0=AF=EC=88=98,=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC=EA=B8=B0=EC=A4=80=20=EC=9C=A0=EC=A7=80=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=956?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/management/Stuff.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/management/Stuff.jsx b/src/components/management/Stuff.jsx index 4503591b..b7b0d8d7 100644 --- a/src/components/management/Stuff.jsx +++ b/src/components/management/Stuff.jsx @@ -173,7 +173,8 @@ export default function Stuff() { schFromDt: dayjs(new Date()).add(-1, 'year').format('YYYY-MM-DD'), schToDt: dayjs(new Date()).format('YYYY-MM-DD'), startRow: (pageNo - 1) * pageSize + 1, - endRow: pageNo * pageSize, + // endRow: pageNo * pageSize, + endRow: stuffSearchParams?.endRow, schSelSaleStoreId: stuffSearchParams?.schSelSaleStoreId ? stuffSearchParams.schSelSaleStoreId : '', schOtherSelSaleStoreId: stuffSearchParams?.schOtherSelSaleStoreId ? stuffSearchParams.schOtherSelSaleStoreId : '', schSortType: stuffSearchParams.schSortType, @@ -191,11 +192,7 @@ export default function Stuff() { }) } - //if (session.storeId === 'T01') { fetchData() - //} else if (stuffSearch.schSelSaleStoreId !== '') { - //fetchData() - //} } else if (stuffSearchParams?.code === 'M') { const params = { saleStoreId: session?.storeId, @@ -255,12 +252,15 @@ export default function Stuff() { : stuffSearchParams.schSelSaleStoreId setPageSize(e.target.value) setStuffSearch({ - ...stuffSearchParams, + // ...stuffSearchParams, + ...stuffSearch, + code: 'S', startRow: startRow, endRow: 1 * e.target.value, }) setPageNo(1) + const apiUrl = `/api/object/list?saleStoreId=${session?.storeId}&${queryStringFormatter(stuffSearchParams)}` get({ url: apiUrl }).then((res) => { if (!isEmptyArray(res)) { @@ -346,13 +346,13 @@ export default function Stuff() {
-
-