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' }