From ce1fab884db622fb240d3c15a358a7cced696bda Mon Sep 17 00:00:00 2001 From: ysCha Date: Tue, 29 Jul 2025 10:04:42 +0900 Subject: [PATCH] =?UTF-8?q?[1191]=20T01=EC=97=90=20=ED=95=9C=EC=A0=95=20?= =?UTF-8?q?=EC=97=91=EC=85=80=EC=97=90=20=EC=98=81=EC=97=85=EC=A0=90=20?= =?UTF-8?q?=EC=A3=BC=EC=86=8C,=20=EC=A0=84=ED=99=94=EB=B2=88=ED=98=B8,=20f?= =?UTF-8?q?ax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/estimate/popup/DocDownOptionPop.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/estimate/popup/DocDownOptionPop.jsx b/src/components/estimate/popup/DocDownOptionPop.jsx index f534fbda..f5a967f1 100644 --- a/src/components/estimate/popup/DocDownOptionPop.jsx +++ b/src/components/estimate/popup/DocDownOptionPop.jsx @@ -6,6 +6,7 @@ import { useRecoilValue } from 'recoil' import { floorPlanObjectState, estimateState } from '@/store/floorPlanObjectAtom' import { usePathname, useSearchParams } from 'next/navigation' import { QcastContext } from '@/app/QcastProvider' +import { sessionStore } from '@/store/commonAtom' export default function DocDownOptionPop({ planNo, setEstimatePopupOpen, docDownPopLockFlg }) { const { setIsGlobalLoading } = useContext(QcastContext) @@ -30,7 +31,7 @@ export default function DocDownOptionPop({ planNo, setEstimatePopupOpen, docDown // recoil 물건번호 const objectRecoil = useRecoilValue(floorPlanObjectState) const estimateRecoilState = useRecoilValue(estimateState) - + const sessionState = useRecoilValue(sessionStore) //문서 다운로드 const handleFileDown = async () => { const url = '/api/estimate/excel-download' @@ -67,6 +68,8 @@ export default function DocDownOptionPop({ planNo, setEstimatePopupOpen, docDown schWeightFlg: schWeightFlg, schDrawingFlg: defaultSchDrawingFlg, pwrGnrSimType: 'D', //default 화면에 안보여줌 + userId: sessionState.userId ? sessionState.userId : "", + saleStoreId: sessionState.storeId ? sessionState.storeId : "", } const options = { responseType: 'blob' }