Compare commits

..

No commits in common. "fd5c042196161089ffaab515161fef7770646028" and "b19ce80aee125627f79f8f8bc69173c1df4b17cc" have entirely different histories.

View File

@ -649,18 +649,12 @@ export default function StepUp(props) {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{pcsItem?.serQtyList?.map((item, serQtyIdx) => { {pcsItem.serQtyList.map((item, serQtyIdx) => {
return ( return (
<tr <tr
key={`row-${serQtyIdx}`} key={`row-${serQtyIdx}`}
className={`${item.selected ? 'on' : ''}`} className={`${item.selected ? 'on' : ''}`}
style={{ cursor: allocationType === 'auto' ? 'pointer' : 'default' }} style={{ cursor: allocationType === 'auto' ? 'pointer' : 'default' }}
onClick={() => {
if (stepUp?.pcsItemList.length !== 1) {
return
}
handleRowClick(idx, serQtyIdx, item.paralQty)
}}
> >
<td <td
className="al-r" className="al-r"
@ -673,37 +667,33 @@ export default function StepUp(props) {
<td className="al-r"> <td className="al-r">
{/* 2025.12.04 select 추가 */} {/* 2025.12.04 select 추가 */}
{idx === 0 ? ( {idx === 0 ? (
stepUp?.pcsItemList.length !== 1 ? ( <select
<select className="select-light dark table-select"
className="select-light dark table-select" defaultValue={item.paralQty}
defaultValue={item.paralQty} name=""
name="" id=""
id="" onChange={(e) => {
onChange={(e) => { handleChangeApplyParalQty(idx, serQtyIdx, e.target.value)
handleChangeApplyParalQty(idx, serQtyIdx, e.target.value) }}
}} >
> {item.paralQty === 0 && (
{item.paralQty === 0 && ( <option key="0" value="0">
<option key="0" value="0"> 0
0 </option>
</option> )}
)} {Array.from(
{Array.from( {
{ length: originPcsVoltageStepUpList[index]
length: originPcsVoltageStepUpList[index] ? originPcsVoltageStepUpList[index]?.pcsItemList[idx].serQtyList[serQtyIdx].paralQty
? originPcsVoltageStepUpList[index]?.pcsItemList[idx].serQtyList[serQtyIdx].paralQty : item.paralQty,
: item.paralQty, },
}, (_, i) => i + 1,
(_, i) => i + 1, ).map((num) => (
).map((num) => ( <option key={num} value={num}>
<option key={num} value={num}> {num}
{num} </option>
</option> ))}
))} </select>
</select>
) : (
<>{item.paralQty}</>
)
) : ( ) : (
<>{item.paralQty}</> <>{item.paralQty}</>
)} )}