From 68c31166a5a046b7cf5b3ef0bb4162c7c7b969e3 Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Fri, 14 Feb 2025 11:15:52 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=ED=95=A8=EC=88=98=20=EC=84=A4=EB=AA=85?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EC=88=98=EC=A0=95,=20?= =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=20=EC=BD=94=EB=93=9C=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useEstimate.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/hooks/useEstimate.js b/src/hooks/useEstimate.js index 5192ec0c..a535de49 100644 --- a/src/hooks/useEstimate.js +++ b/src/hooks/useEstimate.js @@ -22,10 +22,10 @@ export function useEstimate() { /** * 도면 견적서 저장 + * + * @param {Object} estimateParam - 견적서 저장 데이터 */ const saveEstimate = async (estimateParam) => { - // 로딩 임시 주석 - // setIsGlobalLoading(true) const userId = loginUserState.userId const saleStoreId = managementStateLoaded.saleStoreId @@ -56,7 +56,7 @@ export function useEstimate() { await promisePost({ url: '/api/estimate/save-estimate', data: saveEstimateData }) .then(async () => { - // 견적서 저장이 완료되면 견적서 페이지로 이동 + /* 견적서 저장이 완료되면 견적서 페이지로 이동 */ moveEstimate(planNo, objectNo) }) .catch((error) => { @@ -67,6 +67,9 @@ export function useEstimate() { /** * 견적서 페이지로 이동 + * + * @param {string} planNo - 플랜번호 + * @param {string} objectNo - 물건번호 */ const moveEstimate = (planNo, objectNo) => { router.push(`/floor-plan/estimate/5?pid=${planNo}&objectNo=${objectNo}`)