dev #579
@ -649,12 +649,18 @@ 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"
|
||||||
@ -667,33 +673,37 @@ 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 ? (
|
||||||
<select
|
stepUp?.pcsItemList.length !== 1 ? (
|
||||||
className="select-light dark table-select"
|
<select
|
||||||
defaultValue={item.paralQty}
|
className="select-light dark table-select"
|
||||||
name=""
|
defaultValue={item.paralQty}
|
||||||
id=""
|
name=""
|
||||||
onChange={(e) => {
|
id=""
|
||||||
handleChangeApplyParalQty(idx, serQtyIdx, e.target.value)
|
onChange={(e) => {
|
||||||
}}
|
handleChangeApplyParalQty(idx, serQtyIdx, e.target.value)
|
||||||
>
|
}}
|
||||||
{item.paralQty === 0 && (
|
>
|
||||||
<option key="0" value="0">
|
{item.paralQty === 0 && (
|
||||||
0
|
<option key="0" value="0">
|
||||||
</option>
|
0
|
||||||
)}
|
</option>
|
||||||
{Array.from(
|
)}
|
||||||
{
|
{Array.from(
|
||||||
length: originPcsVoltageStepUpList[index]
|
{
|
||||||
? originPcsVoltageStepUpList[index]?.pcsItemList[idx].serQtyList[serQtyIdx].paralQty
|
length: originPcsVoltageStepUpList[index]
|
||||||
: item.paralQty,
|
? originPcsVoltageStepUpList[index]?.pcsItemList[idx].serQtyList[serQtyIdx].paralQty
|
||||||
},
|
: item.paralQty,
|
||||||
(_, i) => i + 1,
|
},
|
||||||
).map((num) => (
|
(_, i) => i + 1,
|
||||||
<option key={num} value={num}>
|
).map((num) => (
|
||||||
{num}
|
<option key={num} value={num}>
|
||||||
</option>
|
{num}
|
||||||
))}
|
</option>
|
||||||
</select>
|
))}
|
||||||
|
</select>
|
||||||
|
) : (
|
||||||
|
<>{item.paralQty}</>
|
||||||
|
)
|
||||||
) : (
|
) : (
|
||||||
<>{item.paralQty}</>
|
<>{item.paralQty}</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user