From b81540fe62973699634b9b1d61332b69639efeb5 Mon Sep 17 00:00:00 2001 From: ysCha Date: Thu, 26 Feb 2026 16:44:00 +0900 Subject: [PATCH] =?UTF-8?q?[1386]=201,2=EC=B0=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/management/StuffDetail.jsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/management/StuffDetail.jsx b/src/components/management/StuffDetail.jsx index ed998dc6..fa852d71 100644 --- a/src/components/management/StuffDetail.jsx +++ b/src/components/management/StuffDetail.jsx @@ -294,8 +294,13 @@ export default function StuffDetail() { docDownButtonStyle = 'none' } else { if (params?.data?.createSaleStoreId === 'T01' && session?.storeId !== 'T01') { - estimateDetailButtonStyle = 'none' + if(session?.storeId !== params?.data?.saleStoreId){ + if(session?.storeId !== params?.data?.firstAgentId) { + estimateDetailButtonStyle = 'none' + } + } } + if (params?.data?.tempFlg === '1' || !params?.data?.docNo) { docDownButtonStyle = 'none' } @@ -391,7 +396,15 @@ export default function StuffDetail() { }) } if (isNotEmptyArray(res.data.planList)) { - setPlanGridProps({ ...planGridProps, planGridData: res.data.planList }) + + const planGridData = res.data.planList.map(plan => ({ + ...plan, + createSaleStoreId: res.data.createSaleStoreId, + saleStoreId: res.data.saleStoreId, + firstAgentId: res.data.firstAgentId + })) + + setPlanGridProps({ ...planGridProps, planGridData }) } else { setPlanGridProps({ ...planGridProps, planGridData: [] }) }