자동 승압 설정인 경우만 handleRowClick 이벤트 실행

This commit is contained in:
changkyu choi 2025-02-06 09:54:37 +09:00
parent 102405e25f
commit 4893e78824

View File

@ -288,8 +288,12 @@ export default function StepUp(props) {
// //
const handleRowClick = (mainIdx, subIdx) => { const handleRowClick = (mainIdx, subIdx) => {
//
if (allocationType !== 'auto') return
let tempStepUpListData = [...stepUpListData] let tempStepUpListData = [...stepUpListData]
let selectedData = {} let selectedData = {}
tempStepUpListData[0].pcsItemList[mainIdx].serQtyList.forEach((item, index) => { tempStepUpListData[0].pcsItemList[mainIdx].serQtyList.forEach((item, index) => {
if (index === subIdx) { if (index === subIdx) {
selectedData = item selectedData = item
@ -449,7 +453,7 @@ export default function StepUp(props) {
key={`row-${serQtyIdx}`} key={`row-${serQtyIdx}`}
className={`${item.selected ? 'on' : ''}`} className={`${item.selected ? 'on' : ''}`}
onClick={() => handleRowClick(idx, serQtyIdx)} onClick={() => handleRowClick(idx, serQtyIdx)}
style={{ cursor: 'pointer' }} style={{ cursor: allocationType === 'auto' ? 'pointer' : 'default' }}
> >
<td className="al-r">{item.serQty}</td> <td className="al-r">{item.serQty}</td>
<td className="al-r">{item.paralQty}</td> <td className="al-r">{item.paralQty}</td>