Compare commits

..

2 Commits

Author SHA1 Message Date
032fb8414f Merge pull request '[1386] 1,2차 수정' (#671) from dev into dev-deploy
Reviewed-on: #671
2026-02-26 16:45:30 +09:00
b81540fe62 [1386] 1,2차 수정 2026-02-26 16:44:00 +09:00

View File

@ -294,8 +294,13 @@ export default function StuffDetail() {
docDownButtonStyle = 'none' docDownButtonStyle = 'none'
} else { } else {
if (params?.data?.createSaleStoreId === 'T01' && session?.storeId !== 'T01') { if (params?.data?.createSaleStoreId === 'T01' && session?.storeId !== 'T01') {
if(session?.storeId !== params?.data?.saleStoreId){
if(session?.storeId !== params?.data?.firstAgentId) {
estimateDetailButtonStyle = 'none' estimateDetailButtonStyle = 'none'
} }
}
}
if (params?.data?.tempFlg === '1' || !params?.data?.docNo) { if (params?.data?.tempFlg === '1' || !params?.data?.docNo) {
docDownButtonStyle = 'none' docDownButtonStyle = 'none'
} }
@ -391,7 +396,15 @@ export default function StuffDetail() {
}) })
} }
if (isNotEmptyArray(res.data.planList)) { 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 { } else {
setPlanGridProps({ ...planGridProps, planGridData: [] }) setPlanGridProps({ ...planGridProps, planGridData: [] })
} }