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'
} 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: [] })
}