자동 승압 설정인 경우만 handleRowClick 이벤트 실행
This commit is contained in:
parent
102405e25f
commit
4893e78824
@ -288,8 +288,12 @@ export default function StepUp(props) {
|
||||
|
||||
// 행 선택 핸들러 함수 추가
|
||||
const handleRowClick = (mainIdx, subIdx) => {
|
||||
// 자동 승압 설정인 경우만 실행
|
||||
if (allocationType !== 'auto') return
|
||||
|
||||
let tempStepUpListData = [...stepUpListData]
|
||||
let selectedData = {}
|
||||
|
||||
tempStepUpListData[0].pcsItemList[mainIdx].serQtyList.forEach((item, index) => {
|
||||
if (index === subIdx) {
|
||||
selectedData = item
|
||||
@ -449,7 +453,7 @@ export default function StepUp(props) {
|
||||
key={`row-${serQtyIdx}`}
|
||||
className={`${item.selected ? 'on' : ''}`}
|
||||
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.paralQty}</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user